-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Insulin concentration v2 #4248
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?
Insulin concentration v2 #4248
Conversation
|
My proposal is to put layers between this way we can change the behavior and only hardly touch the original code We must clearly specify what data is stored and used where like: this must be documented on interfaces |
|
@Philoul read the code if you understand my ideas pls |
|
Proposed Vocabulary:
Proposal of answer on my point of view:
Additional opened topic to be decided:
|
|
I changed VU to CU ...... hard to think about it like about "virtual" when they are "real" |
|
Thinking about to create something like: and use it where we have
|
|
I hope you didn't remove previous code. We will re-use most of it :) |
|
regarding pump history I'd keep only CU. Pump driver should not be aware of concentration at all. It will simplify pump drivers development |
|
regarding storing to DB I'd utilize
Do you agree? Do you see some sideeffects or something I missed? |
|
I always keep everything ;-) (at least for a long time)... and I'm currrently use it for my loop so no risk to remove it before final architecture...). |
On my PR, (after code refactoring), I created a ConcentrationHelper Interface to group maximum of calculation within a unique class... |
Yes, following this idea, I had in mind to also update ICfg with a new concentration property. (ICfg is already included within EPS class and is miroring InsulinConfiguration). |
Modifying concentration should be synchronized with a Reservoir Change event.
But, Yes, create new ProfileSwitch if concentration change make sense if we include within ProfileSwitch dialog the selection of Profile AND the selection of Insulin (ICfg with Peak, DIA and concentration...)
Do you think we should rework both topics together? |
|
May it would be not necessary to popup ProfileSwitch. We can do it on background. |
|
Regarding insulin management: yes, we should cover both in this preparation and make code ready for that some clean way |



No description provided.