LoopKit / Loop

An automated insulin delivery app for iOS, built on LoopKit
https://loopdocs.org
Other
1.49k stars 1.29k forks source link

Remote Service Basal Totals exceed that reported in Apple Health #2095

Closed marionbarker closed 9 months ago

marionbarker commented 10 months ago

Describe the bug The reported basal total for each day exceeds that reported in Apple Health for both Tidepool and Nightscout.

Comment:

Additional context This was discovered when demonstrating that the Tidepool data does not include non-pump insulin. (See #2024).

This spreadsheet compares reported values in Apple Health, Tidepool and Nightscout.

In addition to the Tidepool website not including the non-pump insulin, both remote services do not agree with Apple Health regarding daily basal. The discrepancy is the same for (almost) every day and the sign is always the same - indicating a systematic offset.

Remote and AH Records

The build commit is: 6b7bba6, running on an iOS 17.1.1 phone using DASH, G6, uploading to Tidepool and Nightscout from Loop

github-actions[bot] commented 9 months ago

This issue is stale because it has been open for 30 days with no activity.

github-actions[bot] commented 9 months ago

This issue was closed because it has been inactive for 14 days since being marked as stale.

marionbarker commented 9 months ago

This should be reopened.

marionbarker commented 9 months ago

I repeated this test where I recorded daily amounts for basal and bolus as reported in these sources and updated the spreadsheet Remote and AH Records with a new tab ("Jan 2024 dev AH TP NS Pods"):

  1. Apple Health (fed by Loop)
  2. Tidepool (remote upload by Loop, client that displays results)
  3. Nightscout (remote upload, client that displays results)
  4. Pod 0x1d message to extract total daily insulin (this is "truth" for what pod delivered)

In summary: