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

Introduce proper guardrails for bolus entries (pump bolus and external insulin) #45

Closed
bjornoleh opened this issue Apr 4, 2024 · 4 comments
Assignees
Labels
enhancement New feature or request

Comments

@bjornoleh
Copy link
Contributor

There is currently no guardrail / max limit for logging of external insulin ("Bolus without actually bolusing"). This can cause issues with dISF, since even after deleting an erroneous entry, the bolus dose will still linger in the TDD storage in CoreData, and there is no way to reset this except by deleting the app.

Suggestion: Introduce max limit for external bolus. Possibly based on the pump setting for max bolus. @

Please note that some might set a low max bolus for the pump to reduce the risk of large doses causing "tunneling". Some also combine this strategy by taking the bulk of the meal bolus by pen/syringe. In this case, limiting external bolus to the max pump bolus will be inconvenient. Possibly 3 - 10 x max pump bolus would be appropriate? Otherwise, we need a separate setting for max external bolus.

This has been discussed at length in the iAPS project, but I can't find the discussion right now.

@bjornoleh bjornoleh added this to Trio Apr 4, 2024
@bjornoleh bjornoleh added the enhancement New feature or request label Apr 4, 2024
@bjornoleh bjornoleh moved this to Backlog in Trio Apr 4, 2024
@bjornoleh
Copy link
Contributor Author

bjornoleh commented May 10, 2024

This was fixed in some recent PR.

But I notice now that the max bolus limit is imposed when bolus = max bolus. I would expect to be allowed to bolus up to the max limit. @MikePlante1 ?
image

We might want to include the localised units to the max bolus amount as well.

@MikePlante1
Copy link
Contributor

Thanks, @bjornoleh. I'll take another look at this. It looks like that warning is improperly displayed when amount==max, but it will still let you bolus until amount>max

@bjornoleh
Copy link
Contributor Author

Thanks, yes I notice now that I can bolus the full Max bolus amount, despite the warning. If above, the enact bolus button is greyed out.

@bjornoleh
Copy link
Contributor Author

Fixed in #100 and #172 🥳

@github-project-automation github-project-automation bot moved this from Backlog to Done in Trio May 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: Done
Development

No branches or pull requests

3 participants