Feature request: Menu setting "Enable simple bolus calculator"

Open
#2,289 5 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
40/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
android, kotlin
Domain
mobile

Research direction

Start by tracing the Preferences > Overview > Advanced settings entry point and the bolus calculator menu behavior. Verify how the current tick selections are initialized and persisted, then make the requested toggle open the calculator with all ticks off without remembering those selections; done means the existing default remains unchanged when the toggle is off.

Written by the indexing model from the issue text.

Description

enhancement

TL;DR Add an optional setting "Enable simple bolus calculator" to have the bolus calculator open without any ticks (BG, Trend, IOB, COB) set by default

Problem description:

Many people have day-to-day varying insulin needs (e.g. growth periods, hormonal, sickness) that are not well captured by current sensitivity detection. One way out is to adapt the profile manually as soon as a pattern appears. This is often not possible, in particular for children with less experienced caregivers during most of the day.

One consequence of a badly matched profile is an accumulation of IOB (positive in the case of insulin resistance or negative in the case of increased sensitivity). When using the bolus calculator in such a situation, the wrongly accumulated IOB/COB makes matters worse when bolusing more insulin is given at times of sensitivity and less is given at times of resistance. A practical solution is to manually remove all ticks of the bolus calculator and only consider carb input for bolusing.

While experienced users can do this easily, we have found it impossible to teach this to our 8 year old or her caregivers. This has repeatedly caused hypos or hypers. To make things worse - after removing ticks once, the bolus calculator currently defaults to opening with only an IOB tick that is not matched with a BG and COB tick. In the case of resistance, this makes the bolus suggestion too small by an even bigger margin and contributes to lasting highs.

Proposed solution:

A “simple bolus calculator” option in the bolus calculator menu settings that makes the bolus calculator open with all ticks OFF by default. This, in many situations would be a better and safer option than the current default behavior, at least for children in an out-of-home-setting and others with frequently varying insulin needs who rely on the bolus calculator.

Proposed implementation:

Menu:
In the menu Preferences > Overview > Advanced settings add the following toggle switch:

Enable simple bolus calculator
Use this setting to open the bolus calculator with all ticks OFF by default. Default bolus suggestions will only be based on carb input. BG, trend, IOB and COB information can be added into the bolus suggestion manually.

Behavior:
When setting is off (default): ticks in calculator have current behavior
When setting is checked: calculator opens with no ticks checked. Any ticks placed will not be remembered for the next use of the bolus calculator

Additional comment:

I cannot help with the implementation in the code, but I would be happy to contribute in any other way. It’s a feature that would make our life easier and having our kid in school considerably safer, and enable bigger independence from the “master caregiver”. Thank you for considering!

Magdalena ( discord Magdalena#1674 , using dev & dynISF + so grateful it exists!)

Dominant language
Kotlin
Stars
1.2k
Forks
6.4k
Avg merge
2d 7h
Merged PRs (30d)
19

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from nightscout/AndroidAPS

All issues in nightscout/AndroidAPS

Similar issues

More Kotlin issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.