dsnallfot / LoopFollowiAPS

A general Follow app for parents of T1D Loop Users
GNU Affero General Public License v3.0
3 stars 0 forks source link

Bolus calculations in meal view? (Prospect, maybe not suitable to ever implement) #63

Closed dsnallfot closed 2 months ago

dsnallfot commented 7 months ago

Bolus calculator/recommendations:

dsnallfot commented 6 months ago

Implemented rudimentary functionality in special branch. (Use CR from device status, and show warning triangle if the lowest predicted BG is lower than set "chart low line" threshold BG in loop follow.

Example in screenshot, Min BG (2,2) in mmol/L Simulator Screenshot - iPhone 13 - 2024-04-26 at 17 07 14

dsnallfot commented 6 months ago

New implementation in special branch, improved flow when "standard-bolusing" amount calculated by CR. (UI not final design yet).

  1. Enter carbs (and fat, protein, notes optional)

  2. Bolus gets calculated ("Beräkning" in swedish) (Carbs/CR)

  3. If any prediction is below low threshold, warning triangle and Min BG value is visible to alert that this might not be a good time to bolus - (the warning is shown already when you enter the remote meal view). If all predictions are above low threshold, no warning is shown.

  4. If satisfied with the calculated bolus amount, tap on it and the bolus amount entry field will auto populate with the same amount.

  5. If regretting the tap/autopopulate, tap again and bolus entry field gets back to 0 again

  6. Or if not satisfied with the calculated amount, enter any other manual bolus amount or leave at 0.

  7. The send button gets disabled and explicitly tells you why if any of the user defined security guardrails are exceeded (maxbolus, maxCarbs, maxFatOrProtein)

  8. Send (and accept the confirmation alert + sign with faceid if bolus is part of the command)

https://github.com/dsnallfot/LoopFollowiAPS/assets/72826201/f0ca7677-ed08-4d8f-81c6-558b9e36a3ac