Draft single InsulinPlugin proposal, with Insulin selection within Profile plugin #3782
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Draft PR, to propose a new unique Insulin plugin (to replace the 4 existing one)
Be carefull, this is a draft working branch not stable (to only install on a dev environment, frequent crashes, DON'T use on a real LOOP)
This has been done with a lot of back and forth to help me structure a proposal... So just to start discussion and illustrate the result (I will re-write all the code step by step if idea is accepted...)
To explain the proposal:
One Insulin plugin to manage the default insulin (used within active profile), and allow management of additional insulin (manual bolus with pen for example)
My idea is when an insulin is created, no profiles used this insulin, but if an insulin used within profiles is modified, then all profiles are updated. (but application is applied with a required Profile Switch after the update)
Note that profile tab is just an empty slot in this draft proposal ;-)
Rules I imagine on Insulin and profile management:
I included several screenshots to illustrate some views... Fell free to comment!
In screenshot below, first row show Insulin Creation within insulin Plugin (only one most of the time ;-) )
In second row example of Manual bolus within Insulin selection
In third row View Within profile Plugin (selection of Insulin), and example of about 20 profiles, but only the 3 first in the list updated with Lyumjev insulin. First one is active profile, so only the updated with the same insulin can be selected from overView...