Skip to content

Latest commit

 

History

History
265 lines (193 loc) · 7.83 KB

bolus.md

File metadata and controls

265 lines (193 loc) · 7.83 KB

@tidepool/viz@0.8.1 apidocs /Users/jebeck/Tidepool/viz jsdoc2md "src/utils/bolus.js"

Functions

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(numeric) ⇒ Number

fixFloatingPoint

Kind: global function Returns: Number - numeric value rounded to 3 decimal places

Param Type Description
numeric Number value

getBolusFromInsulinEvent(insulinEvent) ⇒ Object

getBolusFromInsulinEvent

Kind: global function Returns: Object - a Tidepool bolus object

Param Type Description
insulinEvent Object a Tidepool wizard or bolus object

getCarbs(insulinEvent) ⇒ Number

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(insulinEvent) ⇒ Number

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(insulinEvent) ⇒ Number

getRecommended

Kind: global function Returns: Number - total recommended insulin dose

Param Type Description
insulinEvent Object a Tidepool bolus or wizard object

getDelivered(insulinEvent) ⇒ Number

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(insulinEvent) ⇒ Number

getDuration

Kind: global function Returns: Number - duration value in milliseconds

Param Type Description
insulinEvent Object a Tidepool bolus or wizard object

getExtended(insulinEvent) ⇒ Number

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(insulinEvent) ⇒ String

getExtendedPercentage

Kind: global function Returns: String - percentage of combo bolus delivered later

Param Type Description
insulinEvent Object a Tidepool bolus or wizard object

getMaxDuration(insulinEvent) ⇒ Number

getMaxDuration

Kind: global function Returns: Number - duration value in milliseconds

Param Type Description
insulinEvent Object a Tidepool bolus or wizard object

getMaxValue(insulinEvent) ⇒ Number

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(insulinEvent) ⇒ String

getNormalPercentage

Kind: global function Returns: String - percentage of combo bolus delivered immediately

Param Type Description
insulinEvent Object a Tidepool bolus or wizard object

getTotalBolus(insulinEvents) ⇒ Number

getTotalBolus

Kind: global function Returns: Number - total bolus insulin in units

Param Type Description
insulinEvents Array Array of Tidepool bolus or wizard objects

hasExtended(insulinEvent) ⇒ Boolean

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(insulinEvent) ⇒ Boolean

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(insulinEvent) ⇒ Boolean

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(insulinEvent) ⇒ Boolean

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