You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Just to open the discussion, because I know that the impact of this proposal can be significant for the data structure, the interface and even for NS data exchanges).
=> Note: I can work on it (not alone), but only if you think it's a good idea (or tell me and close it if you think it's too complicated...)
I have always found strange to manage insulin settings in 2 different places:
Peak in several insulin plugins (depending on the type of insulin)
DIA inside the profile
And when we change the type of insulin, I don't think the “insulin switches” are memorized in history.
I think it might be better if we manage insulin within a single plugin (like for example the profile plugin which can handle multiple profiles or automation with several rules), and consider the current insulin plugins as templates for creating insulin used (with default name, Peak and DIA values which could be adjusted within certain limits):
If I want to use a new Lyumjev insulin, I open Insulin plugin and I create the new insulin from the Lyumjev template and I can keep default name and slightly adjust if necessary peak and dia)
Just for example, templates could be (defaults values and limits)
Lyumjev: Peak 45min (+/- 5min) and DIA 5h (5h-7h or 4h-6h)
Fiasp: Peak 55min (+/- 5min) and DIA 7h (6h-8h)
Rapid-Acting: Peak 75min (+/- 10min) and DIA 6h (5h-7h)
Free peak for a full custom insulin: peak 65min (35min-120min) DIA 6h (5h-8h)
Mix of 2 insulins: x% insulin 1 (pic1 dia1) and (100-x)% insulin2 (pic2 dia2)
=> we could define in this Insulin plugin all the different insulins we want to use (for example a Mix lyumjev / rapid-Acting 70% / 30% for my pump and pens with rapid-acting insulin in case of emergency ...)
Then in each Profile, instead of selecting DIA value, we select among the available insulin (s), the “insulin used in the pump” (= default insulin attached in all treatments given by AAPS with the pump).
And finally, I think the right place to record insulin is attached inside each treatment for the IOB/Activity calculation, (if I change insulin, I just need to set the new insulin in the insulin plugin and update my profile with the new "default" insulin), but that way each given treatment keep information of insulin used (of course recorded in NS if possible).
In the Insulin layout (in overview), we could add an insulin selector but only when we check "Do not bolus, record only", to be able to select another insulin if it is delivered externally, for example by a pen.
The text was updated successfully, but these errors were encountered:
that is the plan. insulin, peak and DIA will be part of ProfileSwitch and of Treatment (to cover boluses with other kind of insulin).
but not is this database ..... we can work on this once we move to Room
Philoul
changed the title
[Improvement, I hope...] Insulin management
[Improvement] Insulin management
Jan 27, 2021
Just to open the discussion, because I know that the impact of this proposal can be significant for the data structure, the interface and even for NS data exchanges).
=> Note: I can work on it (not alone), but only if you think it's a good idea (or tell me and close it if you think it's too complicated...)
I have always found strange to manage insulin settings in 2 different places:
And when we change the type of insulin, I don't think the “insulin switches” are memorized in history.
I think it might be better if we manage insulin within a single plugin (like for example the profile plugin which can handle multiple profiles or automation with several rules), and consider the current insulin plugins as templates for creating insulin used (with default name, Peak and DIA values which could be adjusted within certain limits):
If I want to use a new Lyumjev insulin, I open Insulin plugin and I create the new insulin from the Lyumjev template and I can keep default name and slightly adjust if necessary peak and dia)
Just for example, templates could be (defaults values and limits)
=> we could define in this Insulin plugin all the different insulins we want to use (for example a Mix lyumjev / rapid-Acting 70% / 30% for my pump and pens with rapid-acting insulin in case of emergency ...)
Then in each Profile, instead of selecting DIA value, we select among the available insulin (s), the “insulin used in the pump” (= default insulin attached in all treatments given by AAPS with the pump).
And finally, I think the right place to record insulin is attached inside each treatment for the IOB/Activity calculation, (if I change insulin, I just need to set the new insulin in the insulin plugin and update my profile with the new "default" insulin), but that way each given treatment keep information of insulin used (of course recorded in NS if possible).
In the Insulin layout (in overview), we could add an insulin selector but only when we check "Do not bolus, record only", to be able to select another insulin if it is delivered externally, for example by a pen.
The text was updated successfully, but these errors were encountered: