Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Recommendation Bolus Breakdown #2148

Open
wants to merge 62 commits into
base: dev
Choose a base branch
from

Conversation

motinis
Copy link

@motinis motinis commented Mar 27, 2024

This provides a breakdown of the recommendation bolus to Carbs, COB and BG Corrections, to enable users to better decide how much bolus to manually give. For the case when Loop predicts one would go below the suspend threshold it includes an entry for Glucose Safety Limit which can be manually unchecked in order to give the insulin that Loop would have recommended when ignoring the suspend threshold.

See this discussion in zulipchat

The available entries to be displayed can be seen in this image

Update: Auto-Bolus Carbs (ABC) Experiment was added. When Enabled and Active, each Loop cycle, Loop will correct COB fully (but no positive BG corrections will be made) if this is greater than the usual automatic recommendation (note: to simplify the calculation for temp basal a surrogate auto-bolus recommendation is used for PBAF representing giving 1/6th of the dose when comparing). Link to screenshots for ABC

ps2 and others added 30 commits March 17, 2023 10:22
Merge dev into main for 3.2.1 release.
Backport cyclic dependency fixes from dev for building on Xcode 15
Fixup breakdown logic and add support for max bolus in breakdown
Moti Nisenson-Ken added 9 commits January 6, 2025 21:18
Avoid calculating BG correction for ABC as it's not needed.
Needed e.g. when changing ABC Active by Default
By definition missing insulin always participates in exclusion calculation. Therefore, if there is an exclusion row, this means that the missing insulin was completely used up and should be marked as excluded.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants