Glucommander Initial Dosing Module
- Since:
-
- v1.3.1
- Source:
Requires
Members
(inner, constant) MODULE_DELAY
Length of timeout (in ms) for event handlers that use elements from other modules
- Source:
(inner) PTA_PCT_BASAL :number
Percent as basal of PTA regimen (0 to 100)
- Source:
(inner) PTA_TDD :number
Total daily dose of PTA regimen.
- Source:
Methods
(inner) calculateDoses(c)
Calculate all parameters given a TDD and percent basal. TDD is returned unchanged; percentBasal will be adjusted if needed, so all doses are an round number of units
Parameters:
Name | Type | Description |
---|---|---|
c |
GlucommanderParams |
- Source:
(inner) checkDirection(c)
Check the arrow direction for the current row and update if it has changed
Parameters:
Name | Type | Description |
---|---|---|
c |
GlucommanderParams |
- Source:
(inner) customFromDose(i)
Calculate custom dosing when dose is provided
Parameters:
Name | Type | Description |
---|---|---|
i |
Number |
Index of custom dose row that was changed |
- Source:
(inner) customFromParams(i)
Calculate custom dosing when parameters are provided
Parameters:
Name | Type | Description |
---|---|---|
i |
Number |
Index of custom dose row that was changed |
- Source:
(inner) distributeBolus(total) → {Array.<Number>}
Distributes a total daily bolus dose between 3 meals with the largest at dinner, then breakfast, then lunch.
Parameters:
Name | Type | Description |
---|---|---|
total |
Number |
Total bolus dose to distribute |
- Source:
(inner) updateBackgroundColor(selector)
Changes the background color of the specified element based on its value
Parameters:
Name | Type | Description |
---|---|---|
selector |
String |
JQuery selector for either an output div or an input |
- Source: