Bolus insuline stats empty #20

Closed
opened 2026-08-01 18:53:58 +00:00 by willemjan · 1 comment
Owner

Bolus stats empty. When the treatments stuff is fixed have a look at the calculation of these stats as well. Profile could be obtained from nightscout to have a standard calculation, but the user is running loop mode in SMB on android aps so microboluses are given instead of basal sometimes so have a good thought on this how to calculate. It would at some point nice to see, how many insuline was given in the following categories: basal, food bolus, correction bolus, super micro bolus.

Bolus stats empty. When the treatments stuff is fixed have a look at the calculation of these stats as well. Profile could be obtained from nightscout to have a standard calculation, but the user is running loop mode in SMB on android aps so microboluses are given instead of basal sometimes so have a good thought on this how to calculate. It would at some point nice to see, how many insuline was given in the following categories: basal, food bolus, correction bolus, super micro bolus.
Author
Owner

Shipped in PR #24 (merged, deployed and verified live). Root cause was mislabeling, not missing data: AndroidAPS records an SMB micro-bolus as eventType "Correction Bolus" with type "SMB", not a separate eventType, so bolus_stats() was silently lumping every automatic SMB under manual corrections. Verified against production: 100% of Correction Bolus treatments over 90 days were type=SMB. Also added basal_stats() computing delivered basal directly from Temp Basal rate x duration, no pump profile needed. Trends page now shows Basaal/Meal Bolus/SMB as separate categories.

Shipped in PR #24 (merged, deployed and verified live). Root cause was mislabeling, not missing data: AndroidAPS records an SMB micro-bolus as eventType "Correction Bolus" with type "SMB", not a separate eventType, so bolus_stats() was silently lumping every automatic SMB under manual corrections. Verified against production: 100% of Correction Bolus treatments over 90 days were type=SMB. Also added basal_stats() computing delivered basal directly from Temp Basal rate x duration, no pump profile needed. Trends page now shows Basaal/Meal Bolus/SMB as separate categories.
Sign in to join this conversation.
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: willemjan/glucose-dashboard#20