nightscout / nightscout/AndroidAPS

Request: Split bolus as bolus + ecarbs

Open
#2,148 4 comments 7 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

Hey!

As far as I am aware, this feature is not implemented and I couldnt find a similar request. I think it would be of great help (at least for how I use AAPS).

My "workflow" when eating is to enter a bolus and then enter E-Carbs seperately, which the SMB will deal with. I think that is how most people use it.

The thing is, for almost all foods you would need to enter E-Carbs when using SMB (unless you eat candy all day and just need a fast bolus). At least for me, it doesnt work without. You need to enter bolus and E-Carbs seperately, in a different menu. Its inconvenient and therefor I often forget to enter E-Carbs.

It would be nice to be able to input a direct bolus and E-Carbs at the same time, much like a split bolus.
If would be very straightforward and only needs 4 inputs:

  • amount of carbs/KH/BE
  • % of carbs/KH/BE to be given directly
  • Timespan of E-Carbs
  • Delay of bolus/E-Carbs

Here are a few examples:

  • You eat Pizza and bolus 40g carbs after 15 minutes. 40 E-Carbs will be input over 4 hours. Your input: 80g carbs, 50% direct, 4h timespan, 15min delay
  • You eat sugar and bolus 24 carbs after 0 minutes, 0 E-Carbs will be input over 0 hours. Input: 24g carbs, 100% direct
  • You eat a chicken filet and bolus 0 carbs after 0 minutes. 12 E-Carbs will be input over 4 hours. Input: 12g carbs, 0% direct, 4h delay.

On top of that, the input could easily be done with 4 sliders and the distribution could be shown as a very simple graph.

What do you think of the idea? Maybe this function could be activated in settings, just like the SuperBolus, and shown as a seperate button at the bottom. Or the feature could be added to the already existing bolus calculator? I could not be of much help with the implementation, I think. I could refine the concept and write some java/kotlin.

Thanks a lot :) Nils

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.

Research direction

Start by examining the existing bolus calculator and SuperBolus settings or button, which the issue proposes as integration points. Clarify the four inputs, their timing and carbohydrate distribution behavior, then define tests covering direct bolus, extended E-Carbs, delays, and zero-duration cases.

Written by the indexing model from the issue text.

Assessment

Tech stack
kotlin
Domain
mobile
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.