nightscout / cgm-remote-monitor

nightscout web monitor
GNU Affero General Public License v3.0
2.38k stars 71.59k forks source link

Temporary basal adjustments reflected in Insulin Onboard #8087

Open ChiSoxDev opened 1 year ago

ChiSoxDev commented 1 year ago

If you need support for Nightscout, PLEASE DO NOT FILE A TICKET HERE For support, please post a question to the "CGM in The Cloud" group in Facebook (https://www.facebook.com/groups/cgminthecloud) or visit the WeAreNotWaiting Discord at https://discord.gg/zg7CvCQ

Is your feature request related to a problem? Please describe. There are a lot of variables that go into making treatment decisions. A few pump manufacturers have a "Hybrid" closed loop systems such as Tandem's ControlIQ where basal rates can be raised or lowered based on predictions 30 minutes in the future based on current trends. The issue with these systems today is that they do not take into account Carbs on Board. In practice, what that means is that if you BG is already elevated and you give a proper correction bolus or carbs, then your blood sugar drops. As it should. The problem is that ControlIQ sees the dropping BG and lowers the basal rate despite you giving the proper amount of insulin. That then results in BG remaining higher than it should because you didn't get the basal you should have while your BG was dropping. The same type of issue occurs in reverse causing lows.

Describe the solution you'd like I think the Nightscout solution should be two fold. First, hovering over the area of the temp basal on the graph should show the "Total" net positive or negative basal received during that time frame. This data is already present in reporting spread across the whole day. Second, a toggle option allowing the net positive or negative basal to be added to the Insulin on Board calculations.

Describe alternatives you've considered The only way to have this type of data included in treatment recommendations is to use a closed loop system such as Loop or OpenAPS. Closed loops are not an option or of interest to people for various reasons. Including this into Nightscout allows for additional treatment information for not closed loop people.

Additional context Add any other context or screenshots about the feature request here.

bewest commented 10 months ago

Nightscout uses the IOB as reported by automated insulin delivery systems such as Loop and AAPS, when they are available. A recent change in Loop allows it to report the predictions as influenced by pending dosing, which will help make things match better. AAPS and Loop, to my knowledge, use pending insulin doses as well as carb impacts to influence the predictions. The IOB as a result can be viewed in the reports on by watching the IOB pill while scrubbing the user interface in retrospective mode. Does this do what you expect?/