Skip to content

Commit a6bf66e

Browse files
committed
configure new headers for automatic bolus cases
1 parent 1025629 commit a6bf66e

File tree

2 files changed

+32
-19
lines changed

2 files changed

+32
-19
lines changed

docs/operation/algorithm/bolus.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
## Loop Manual Bolus
22

3-
Loop will recommend bolus insulin corrections when the eventual blood glucose is greater than the correction target and the active insulin plus any active 30-minute temporary basal will not be sufficient to cover the predicted excursion above correction target.
3+
Loop will recommend bolus insulin corrections when the eventual glucose is greater than the correction target and the active insulin plus any active 30-minute temporary basal will not be sufficient to cover the predicted excursion above correction target.
44

55
These recommendations are not proactively sent to the Loop user through any notification or banner alert; the recommendation is only viewable when the user clicks on the bolus tool. Note that Loop never issues a bolus command automatically while using the default Temp Basal [Dosing Strategy](../../loop-3/settings.md#dosing-strategy); all boluses are initiated by the user unless the [Automatic Bolus](../../loop-3/settings.md#automatic-bolus) dosing strategy is enabled. With automatic bolus enabled, each automatic bolus is limited to 40% of the recommended amount or the maximum bolus setting, whichever is smaller.
66

7-
The bolus dose calculation is identical to the dose equation given in the [Determine the Temporary Basal Rate section](temp-basal.md#determine-the-temporary-basal-rate){: target="_blank" }, with these exceptions:
7+
The recommended bolus calculation is described in [Determine the Recommended Dose](temp-basal.md#determine-the-recommended-bolus){: target="_blank" }, with these exceptions:
88

99
* the insulin contribution from the currently running temporary basal set by Loop is removed or subtracted from the recommended bolus amount, and
1010
* the delta is calculated for the top of the correction range, rather than the average of the correction range.
@@ -13,7 +13,7 @@ The bolus dose calculation is identical to the dose equation given in the [Deter
1313

1414
For recently saved carbohydrates with longer absorption time, e.g., very slow-digesting meals like pizza or pasta, Loop’s algorithm provides an initial meal bolus less than the simple grams divided by carbohydrate ratio calculation for [Carbohydrate Effect](prediction.md#carbohydrate-effect){: target="_blank" }.
1515

16-
The *Loop* algorithm computes the recommended bolus such that predicted glucose will not dip below the Glucose Safety Limit. This may result in future blood glucose levels predicted above correction range, but will prevent a hypoglycemia event shortly after the meal.
16+
The *Loop* algorithm computes the recommended bolus such that predicted glucose will not dip below the Glucose Safety Limit. This may result in future glucose levels predicted above correction range, but will prevent a hypoglycemia event shortly after the meal.
1717

1818
* As time progresses after the meal, when appropriate, *Loop* modifies insulin delivery
1919
* A decrease in recommended insulin amount is always provided as a decreased Temporary Basal rate
@@ -26,7 +26,7 @@ Finally, Loop checks that the result of the calculations is below the maximum si
2626

2727
!!! info "Bolusing safety feature"
2828

29-
If the current blood glucose, or any predicted blood glucose, falls below the Glucose Safety Limit, Loop will not return a recommended bolus. When the minimum blood glucose rises above the Glucose Safety Limit, the bolus tool will provide a recommended bolus.
29+
If the current glucose, or any predicted glucose, falls below the Glucose Safety Limit, Loop will not return a recommended bolus. When the minimum glucose rises above the Glucose Safety Limit, the bolus tool will provide a recommended bolus.
3030

3131
## Algorithm Section Menu
3232

docs/operation/algorithm/temp-basal.md

Lines changed: 28 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
## Calculated Dose
22

3-
The Loop algorithm takes one of four actions depending upon the eventual blood glucose, predicted glucose, target range and glucose safety threshold when Closed Loop operation is enabled.
3+
The Loop algorithm takes one of four actions depending upon the eventual glucose, predicted glucose, target range and glucose safety threshold when Closed Loop operation is enabled.
44

55
The recommended insulin dose (positive or negative) is calculated first, then the Temp Basal or Automatic Bolus to be enacted is modified based on the recommended dose, dosing strategy, maximum Temp Basal and maximum Bolus settings. The automated dosing (increase or decrease) is updated with every CGM value - typically every 5 minutes.
66

@@ -20,7 +20,7 @@ The Pre-Meal button or a named override can be configured with a correction rang
2020

2121
## Four Possible Actions
2222

23-
Loop implements one of four possible temporary basal actions: **decrease**, **increase**, **suspend**, or **resume** a scheduled basal rate.
23+
With each new glucose reading, Loop implements one of four possible actions: [**decrease** basal rate](#decrease-basal-rate), [**increase** basal rate](#increase-basal-rate) or [**bolus automatically**](#deliver-automatic-bolus-with-scheduled-basal), [set **zero** basal rate](#zero-the-basal-rate), or [**resume** scheduled basal rate](#resume-basal-rate).
2424

2525
!!! info "Automatic Bolus"
2626

@@ -30,61 +30,74 @@ Loop implements one of four possible temporary basal actions: **decrease**, **in
3030

3131
### Decrease Basal Rate
3232

33-
If the eventual blood glucose is less than the correction range and all of the predicted glucose values are above the suspend threshold, then Loop will issue a temporary basal rate that is lower than the current scheduled basal rate to bring the eventual blood glucose up to the correction target.
33+
If the eventual glucose is less than the correction range and all of the predicted glucose values are above the suspend threshold, then Loop will issue a temporary basal rate that is lower than the current scheduled basal rate to bring the eventual glucose up to the correction target.
3434

3535
![decrease basal rate example](img/decrease.png)
3636

3737
### Increase Basal Rate
3838

39-
If the eventual blood glucose is greater than the correction range and all of the predicted glucose values are both above the suspend threshold and equal to or above the correction range, then Loop will issue a temporary basal rate that is higher than the current basal rate to bring the eventual blood glucose down to the correction target.
39+
or
4040

41-
![increase basal rate example](img/increase.png)
41+
### Deliver Automatic Bolus with Scheduled Basal
42+
43+
If the eventual glucose is greater than the correction range and all of the predicted glucose values are both above the suspend threshold and equal to or above the correction range, then the *Loop* app takes action to safely bring the eventual glucose down to the correction target. Refer to [Dosing Strategy](../../loop-3/settings.md#dosing-strategy){: target="_blank" }.
44+
45+
* Temp Basal Only Dosing Stategy: Loop will issue a temporary basal rate that is higher than the current basal rate
46+
* Automatic Bolus Dosing Stategy: Loop will restore the pump to scheduled basal rate if a current temp basal is running and issue an automatic bolus
47+
48+
![increase basal rate or AB example](img/increase.png)
4249

4350
### Zero the Basal Rate
4451

45-
If the minimum predicted blood glucose goes below the suspend threshold, then Loop will issue a temporary basal rate of zero units per hour, regardless of the eventual blood glucose.
52+
If the minimum predicted glucose goes below the suspend threshold, then Loop will issue a temporary basal rate of zero units per hour, regardless of the eventual glucose.
4653

4754
![suspend basal rate example](img/suspend.png)
4855

4956
### Resume Basal Rate
5057

5158
There are three situations where the Loop algorithm will resume the current scheduled basal rate.
5259

53-
If the eventual blood glucose is within the correction range, and all of the predicted glucose values are above the suspend threshold, then Loop will resume the current scheduled basal rate.
60+
If the eventual glucose is within the correction range, and all of the predicted glucose values are above the suspend threshold, then Loop will resume the current scheduled basal rate.
5461

5562
![first resume basal rate example](img/resume2.png)
5663

57-
If the eventual blood glucose is above the correction range, and the predicted glucose values have a temporary excursion below the correction range but still above the suspend threshold, then Loop will resume the current scheduled basal rate.
64+
If the eventual glucose is above the correction range, and the predicted glucose values have a temporary excursion below the correction range but still above the suspend threshold, then Loop will resume the current scheduled basal rate.
5865

5966
![second resume basal rate example](img/resume.png)
6067

6168
If the Loop algorithm does not have ALL of the data it needs to make a prediction, it will let the remaining temporary basal rate run its duration (maximum of 30 minutes), and then the basal rate will default back to the current scheduled basal rate, thus returning to the same therapy pattern that they would receive using a traditional insulin pump.
6269

63-
## Determine the Temporary Basal Rate
70+
## Determine the Recommended Bolus
6471

65-
To determine the corrective temporary basal rate to implement, Loop calculates a “dose” in the same way doses are calculated in both open-loop and traditional insulin pump therapy. It's also the same math many people on multiple-daily injection therapy use. The benefit of Loop (and all other close-loop algorithms) is that it does this math every 5 minutes, and is far less prone to error than humans doing the math. Loop also does its math based on predicting into the future, which traditional pumps and humans, do not always have the time or inclination to do.
72+
In the scenario where Loop will either increase basal rate or issue an automatic bolus, Loop calculates a “dose” in the same way doses are calculated in both open-loop and traditional insulin pump therapy. It's also the same math many people on multiple-daily injection therapy use. The benefit of Loop (and all other close-loop algorithms) is that it does this math every 5 minutes, and is far less prone to error than humans doing the math. Loop also does its math based on predicting into the future, which traditional pumps and humans, do not always have the time or inclination to do.
6673

67-
The amount of insulin needed, or dose, is calculated using the desired reduction in blood glucose and the user’s ISF. For the Loop algorithm, the desired reduction in blood glucose is the delta between the eventual blood glucose and the correction target:
74+
The amount of insulin needed, or dose, is calculated using the desired reduction in glucose and the user’s ISF. For the Loop algorithm, the desired reduction in glucose is the delta between the eventual glucose and the correction target:
6875

6976
$$ \mathit{dose} = \frac{\mathit{BG_{eventual}} - \mathit{BG_{target}}}{\mathit{ISF}} $$
7077

7178
!!! info "Loop Dose Calculation"
7279

73-
A major difference between traditional pump therapy and how the Loop calculates dose is that in pump therapy the current blood glucose is used to estimate the dose, whereas in the Loop algorithm the eventual and minimum blood glucose predictions are also used in determining dosing decisions.
80+
A major difference between traditional pump therapy and how the Loop calculates dose is that in pump therapy the current glucose is used to estimate the dose, whereas in the Loop algorithm the eventual and minimum glucose predictions are also used in determining dosing decisions.
81+
82+
83+
* Temp Basal Only Dosing Stategy: see [Determine the Temporary Basal Rate](#determine-the-temporary-basal-rate)
84+
* Automatic Bolus Dosing Stategy: the amount of the automatic bolus is reduced from the recommended dose as explained in [Automatic Bolus](../../loop-3/settings.md#automatic-bolus){: target="_blank" }
85+
86+
## Determine the Temporary Basal Rate
7487

75-
Loop then converts the dose into a basal rate using the Loop’s temporary basal rate duration of 30 minutes:
88+
When a recommended dose is calculated, Loop converts the dose into a basal rate using the Loop’s temporary basal rate duration of 30 minutes:
7689

7790
$$ \mathit{BR_correction} = \frac{\mathit{dose}}{30 \mathrm{min}} = \frac{\mathit{dose}}{\frac{1}{2} \mathrm{hr}} = \frac{2 \times \mathit{dose}}{\mathrm{hr}} $$
7891

79-
where $\mathit{BR_correction}$ is the basal rate ( $\mathrm{\frac{U}{hr}}$ ), which is the amount of insulin needed over the next 30 minutes to bring the eventual blood glucose to the correction target. The basal rate, however, is the amount of basal rate needed beyond the user’s scheduled basal rate. As such, the required basal rate can be determined by:
92+
where $\mathit{BR_correction}$ is the basal rate ( $\mathrm{\frac{U}{hr}}$ ), which is the amount of insulin needed over the next 30 minutes to bring the eventual glucose to the correction target. The basal rate, however, is the amount of basal rate needed beyond the user’s scheduled basal rate. As such, the required basal rate can be determined by:
8093

8194
$$ \mathit{BR_required} = \mathit{BR_scheduled} + \mathit{BR_correction} $$
8295

8396
Finally, Loop compares the $BR_{required}$ with the user-specified maximum temporary basal rate $BR_{max}$ setting to determine the temporary basal to issue:
8497

8598
$$ \mathit{BR_temp} = \max(\min( \mathit{BR_required}, \mathit{BR_max} ), 0) $$
8699

87-
After running the temporary basal calculation described above, Loop checks whether there is already an appropriate basal running with at least 10 minutes remaining. If so, Loop will not reissue the temporary basal. However, if the recommended temporary basal differs from the currently running temporary basal — or the current scheduled basal if no temporary is running — then Loop will replace the current basal rate with the recommended temporary basal rate.
100+
After running the temporary basal calculation described above, Loop checks whether there is already an appropriate basal running with at least 10 minutes remaining. If so, Loop will not reissue the temporary basal. However, if the recommended temporary basal differs from the currently running temporary basal — or the current scheduled basal, when no temporary basal is running — then Loop will replace the current basal rate with the recommended temporary basal rate.
88101

89102
As mentioned at the beginning of this section, the process of determining whether a temporary basal should be issued is repeated every 5 minutes.
90103

0 commit comments

Comments
 (0)