-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Management Insulin Concentration (from U10 to U200) #4198
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
base: dev
Are you sure you want to change the base?
Conversation
# Conflicts: # implementation/src/main/kotlin/app/aaps/implementation/instantiator/InstantiatorImpl.kt # implementation/src/main/kotlin/app/aaps/implementation/pump/PumpEnactResultObject.kt # pump/omnipod/dash/src/main/kotlin/app/aaps/pump/omnipod/dash/OmnipodDashPumpPlugin.kt # pump/omnipod/dash/src/main/kotlin/app/aaps/pump/omnipod/dash/ui/wizard/activation/viewmodel/action/DashInsertCannulaViewModel.kt # pump/omnipod/eros/src/main/java/app/aaps/pump/omnipod/eros/OmnipodErosPumpPlugin.kt # pump/omnipod/eros/src/main/java/app/aaps/pump/omnipod/eros/ui/wizard/activation/viewmodel/action/ErosInsertCannulaViewModel.kt # pump/virtual/src/main/kotlin/app/aaps/pump/virtual/VirtualPumpPlugin.kt
|
Also remaining in my Todo list a dedicated wiki page with all explains, warnings risks using other insulin concentration (Current link included within my PR should be replaced and this dedicated wiki page writen...) |
|
Priming has an edge case to consider, as priming needs a certain amount, rather than concentration. |
|
@jotomo good comment! If priming is managed within pump driver (for ex in patch pumps) nothing to do. My proposal to manage prime/fill dialog in action tab is:
We can use these checkboxes to keep the right volume of insulin delivered to prime or fill without convertion on user side:
BTW this will have to be explained in the dedicated wiki page required for this feature... |
|
@jotomo I updated the FillDialog in my latest commit and included a warning message (did it quickly so message/colors can probably be improved): Correction is applied (with additional warning) only if one of the 2 checkboxes has been checked.
|
…U200_Management # Conflicts: # ui/src/main/kotlin/app/aaps/ui/dialogs/FillDialog.kt # ui/src/main/res/values/strings.xml
# Conflicts: # database/persistence/src/main/kotlin/app/aaps/database/persistence/converters/ValueWithUnitsExtension.kt # implementation/src/main/kotlin/app/aaps/implementation/userEntry/UserEntryPresentationHelperImpl.kt
|
Nice updates! |
|
I'm currently refactoring the code to include a ConcentrationHelper to centralize and manage concentration like String convertion for UI with single or double values (Boluses/Rates/Reservoir level in Pump fragment), and convertion toPump and fromPump. Within Pump fragment, my idea was to show both values (like within Bolus Progress) each time another concentration is used:
My idea behind ConcentrationHelper is to see exactly the same information when insulin U100 is put within Pump (no visual change for end User), and show both values within Bolus Progress and Pump fragment when other concentration is put within pump... |
|
@jotomo what do you think of this UI for Bolus Progress? |
# Conflicts: # plugins/sync/src/main/kotlin/app/aaps/plugins/sync/wear/wearintegration/DataHandlerMobile.kt # ui/src/main/kotlin/app/aaps/ui/dialogs/FillDialog.kt
|
Well I understand there is a push to have this feature implemented but ... |
Not a push, but I saw so many users (even very skilled) make mistakes with U200 and profile 50%, especially managing external boluses with wrong or missing convertion, so I'm convinced we cannot ignore these risks and mistakes...
Fully agree! I tried to keep it centralized within |
|
Linked to #4248 Reopened to keep initial proposal visible |
|







Current Implementation is with an advanced setting included into all insulin Plugins:
Because this parameter has safety impact, on each reservoir change, user should confirm explicitly the value of "non U100 concentration" to enable close loop:
All values managed within AAPS and database are with "official units"
All values managed within pump drivers are with "Converted Unit" (for ex if U200 is selected, when the user select a bolus of 10U, PumSync send a bolus of 5U within the pump driver).
I tested with my Insight pump all these features:
Remaining topics:
My big question concern the overall Target Architecture (this PR is not consistent with my other PR #3952)