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

BUG : Bolus interrupted on empty pod / COB lost #3358

Open
robertrub opened this issue May 31, 2024 · 8 comments
Open

BUG : Bolus interrupted on empty pod / COB lost #3358

robertrub opened this issue May 31, 2024 · 8 comments
Labels

Comments

@robertrub
Copy link

Tested with Medtrum Nano.

Only 3U are left. I use bolus calculator for 40gr carbs thus 5.2U.

Nano started bolusing without any alerts (not normal)

Bolus stopped at 3U with screaming alerts (normal)

Carbs were NOT added !!! IOB said 3U but COB was at 0 (not normal).

When new pod was activated, bolus didn't continue with the missing units (normal I suppose).

@Philoul
Copy link
Contributor

Philoul commented Jun 1, 2024

If I remember well pump driver should return to bolus calculator a "successful result" on Bolus delivery to record Carbs correctly (even if bolus was only partially delivered).

So here on 5.2U request you should get a "true" result (but with only 3U recorded in database...

What happen if during bolus delivery you cancel delivery to not inject all what was calculated?

@MilosKozak
Copy link
Contributor

exactly. carbs are recorded only on bolus success to prevent overdosing on next bolus wzard attempt

@robertrub
Copy link
Author

robertrub commented Jun 1, 2024

In this case, partial success ;)

As carbs and bolus are not physically connected, I think that the carbs should be added to the COB even if the bolus was not given (for any reason).

I start eating and use calculator to enter 40g and is says 6U to bolus. Even if the pump is unreachable or has 0U left or ..., I'll eat the 40g. Thus the need to add carbs to COB even before starting to inject (thus, separating carbs and bolus actions).

@Philoul
Copy link
Contributor

Philoul commented Jun 1, 2024

@robertrub if I compare with insight driver, when I send a bolus with not enough insulin. it's ok without alarm (I think it should work like that)
When reservoir is empty then I get alarm from pump (and Carbs + partial bolus is recorded)
Then after reservoir change if bolus is resumed, then bolus amount is updated, if not, then only delivered insulin is recorded.
The most important point is to get the alarm from pump to be aware of the error and let you check evrrything (for ex launch again calculator to calculate missing insulin after patch pump change).

@jbr7rr
Copy link

jbr7rr commented Jun 1, 2024

exactly. carbs are recorded only on bolus success to prevent overdosing on next bolus wizard attempt

I find this logic not really intuivite, the user already added the carbs? Also this is only when using the bolus wizard not when recording carbs separately ?

What is the desired outcome when only part of the bolus was delivered? (carbs recorded or not?)

I will have a look into how other drivers handle this as well

@robertrub
Copy link
Author

User can either add the carbs first and use the calculator (without carbs of course) or use only the calculator and enter carbs there.
In both cases, the carbs should be added to the COB counter (insulin delivered or not).

In my exemple, I ended with 3U but no carbs. If I hadn't added carbs again, then AAPS would be "lost" with high IOB, no COB and BGs raising...

@emilisev
Copy link

emilisev commented Jun 2, 2024

I experienced similar issue when using the calculator and then the connection to the pump (medtrum also) was lost during injection : carbs were not recorded. Bolus was administered in full but AAPS did not get confirmation so it was not recorded. But I found it confusing that carbs were also not recorded in this case.

@jbr7rr
Copy link

jbr7rr commented Jul 13, 2024

@MilosKozak

This is the code that determines the behavior:

result.success = connectionOK && abs(detailedBolusInfo.insulin - t.insulin) < pumpDescription.bolusStep

This is the same for dana:

result.success = connectionOK && abs(detailedBolusInfo.insulin - t.insulin) < pumpDescription.bolusStep

So can we conclude that this is desired behavoir? As seen in this issue, users do get confused by this, but it also makes the user alert and force them to check delivered insulin.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants