Skip to content

The active insulin (IOB) is not correctly reported #2319

@sarusso

Description

@sarusso

Describe the bug
The active insulin (IOB) reported by the UI is not the actual amount, but includes the planned one over the next 30 minutes (of basal insulin). This can be misleading, because:

  1. in temp basal only mode, the reported active insulin can be much higher than the actual value; and
  2. in both temp basal and automatic bolus modes, when the basal is reduced to prevent going below target, the reported active insulin is less than the actual value.

To Reproduce
Steps to reproduce the behavior:

  1. Cause Loop to reduce the basal insulin when there is already some active insulin, for example by bolusign some units without any carb intake (in a simulator)
  2. Wait for Loop to reduce the basal insulin and check the reported active insulin

Expected behavior
Loop should report as active insulin the insulin which is actually active "right now".

Loop Version

  • 3.6.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions