@tidepool/viz@0.8.1 apidocs /Users/jebeck/Tidepool/viz jsdoc2md "src/utils/bolus.js"
- fixFloatingPoint(numeric) ⇒
Number
fixFloatingPoint
- getBolusFromInsulinEvent(insulinEvent) ⇒
Object
getBolusFromInsulinEvent
- getCarbs(insulinEvent) ⇒
Number
getCarbs
- getProgrammed(insulinEvent) ⇒
Number
getProgrammed
- getRecommended(insulinEvent) ⇒
Number
getRecommended
- getDelivered(insulinEvent) ⇒
Number
getDelivered
- getDuration(insulinEvent) ⇒
Number
getDuration
- getExtended(insulinEvent) ⇒
Number
getExtended
- getExtendedPercentage(insulinEvent) ⇒
String
getExtendedPercentage
- getMaxDuration(insulinEvent) ⇒
Number
getMaxDuration
- getMaxValue(insulinEvent) ⇒
Number
getMaxValue
- getNormalPercentage(insulinEvent) ⇒
String
getNormalPercentage
- getTotalBolus(insulinEvents) ⇒
Number
getTotalBolus
- hasExtended(insulinEvent) ⇒
Boolean
hasExtended
- isInterruptedBolus(insulinEvent) ⇒
Boolean
isInterruptedBolus
- isOverride(insulinEvent) ⇒
Boolean
isOverride
- isUnderride(insulinEvent) ⇒
Boolean
isUnderride
fixFloatingPoint
Kind: global function
Returns: Number
- numeric value rounded to 3 decimal places
Param | Type | Description |
---|---|---|
numeric | Number |
value |
getBolusFromInsulinEvent
Kind: global function
Returns: Object
- a Tidepool bolus object
Param | Type | Description |
---|---|---|
insulinEvent | Object |
a Tidepool wizard or bolus object |
getCarbs
Kind: global function
Returns: Number
- grams of carbs input into bolus calculator
NaN if bolus calculator not used; null if no carbInput
Param | Type | Description |
---|---|---|
insulinEvent | Object |
a Tidepool wizard or bolus object |
getProgrammed
Kind: global function
Returns: Number
- value of insulin programmed for delivery in the given insulinEvent
Param | Type | Description |
---|---|---|
insulinEvent | Object |
a Tidepool bolus or wizard object |
getRecommended
Kind: global function
Returns: Number
- total recommended insulin dose
Param | Type | Description |
---|---|---|
insulinEvent | Object |
a Tidepool bolus or wizard object |
getDelivered
Kind: global function
Returns: Number
- units of insulin delivered in this insulinEvent
Param | Type | Description |
---|---|---|
insulinEvent | Object |
a Tidepool bolus or wizard object |
getDuration
Kind: global function
Returns: Number
- duration value in milliseconds
Param | Type | Description |
---|---|---|
insulinEvent | Object |
a Tidepool bolus or wizard object |
getExtended
Kind: global function
Returns: Number
- units of insulin delivered over an extended duration
Param | Type | Description |
---|---|---|
insulinEvent | Object |
a Tidepool wizard or bolus object |
getExtendedPercentage
Kind: global function
Returns: String
- percentage of combo bolus delivered later
Param | Type | Description |
---|---|---|
insulinEvent | Object |
a Tidepool bolus or wizard object |
getMaxDuration
Kind: global function
Returns: Number
- duration value in milliseconds
Param | Type | Description |
---|---|---|
insulinEvent | Object |
a Tidepool bolus or wizard object |
getMaxValue
Kind: global function
Returns: Number
- max programmed or recommended value wrt the insulinEvent
Param | Type | Description |
---|---|---|
insulinEvent | Object |
a Tidepool bolus or wizard object |
getNormalPercentage
Kind: global function
Returns: String
- percentage of combo bolus delivered immediately
Param | Type | Description |
---|---|---|
insulinEvent | Object |
a Tidepool bolus or wizard object |
getTotalBolus
Kind: global function
Returns: Number
- total bolus insulin in units
Param | Type | Description |
---|---|---|
insulinEvents | Array |
Array of Tidepool bolus or wizard objects |
hasExtended
Kind: global function
Returns: Boolean
- whether the bolus has an extended delivery portion
Param | Type | Description |
---|---|---|
insulinEvent | Object |
a Tidepool bolus or wizard object |
isInterruptedBolus
Kind: global function
Returns: Boolean
- whether the bolus was interrupted or not
Param | Type | Description |
---|---|---|
insulinEvent | Object |
a Tidepool bolus or wizard object |
isOverride
Kind: global function
Returns: Boolean
- whether the bolus programmed was larger than the calculated recommendation
Param | Type | Description |
---|---|---|
insulinEvent | Object |
a Tidepool bolus or wizard object |
isUnderride
Kind: global function
Returns: Boolean
- whether the bolus programmed was smaller than the calculated recommendation
Param | Type | Description |
---|---|---|
insulinEvent | Object |
a Tidepool bolus or wizard object |