Loop icon indicating copy to clipboard operation
Loop copied to clipboard

Minimed: Detect manual temp basals entered in pump UI

Open ps2 opened this issue 3 years ago • 18 comments

We should be able to update loop state to recognize a manual temp basal issued from the pump, and put Loop into the same open loop manual temp basal state that Omnipod and DASH are implementing in dev. Placeholder code:

            // Look for ongoing pump UI started temp basal
            if let ongoingTempbasal = result.remainingEvents.first(where: { (event) -> Bool in
                if let dose = event.dose,
                    dose.type == .tempBasal,
                    dose.endDate > Date()
                {
                    return true
                }
                return false
            }), let dose = ongoingTempbasal.dose {
                state.unfinalizedTempBasal = UnfinalizedDose(tempBasalRate: dose.unitsPerHour, startTime: dose.startDate, duration: dose.endDate.timeIntervalSince(dose.startDate), insulinType: insulinType, automatic: false)
            }

ps2 avatar Jun 13 '22 17:06 ps2

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

github-actions[bot] avatar Aug 10 '23 02:08 github-actions[bot]

Should placeholder ideas like this just expire automatically?

elnjensen avatar Aug 10 '23 07:08 elnjensen

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

github-actions[bot] avatar Sep 10 '23 02:09 github-actions[bot]

If this has not been added, I believe this should stay open.

marionbarker avatar Sep 10 '23 02:09 marionbarker

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

github-actions[bot] avatar Oct 11 '23 02:10 github-actions[bot]

If this has not been added, I believe this should stay open.

marionbarker avatar Oct 11 '23 04:10 marionbarker

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

github-actions[bot] avatar Nov 11 '23 02:11 github-actions[bot]

Bump

marionbarker avatar Nov 11 '23 03:11 marionbarker

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

github-actions[bot] avatar Dec 12 '23 02:12 github-actions[bot]

Bump

marionbarker avatar Dec 12 '23 04:12 marionbarker

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

github-actions[bot] avatar Jan 12 '24 02:01 github-actions[bot]

Bump

marionbarker avatar Jan 12 '24 02:01 marionbarker

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

github-actions[bot] avatar Feb 13 '24 02:02 github-actions[bot]

Bump

marionbarker avatar Feb 13 '24 05:02 marionbarker

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

github-actions[bot] avatar Mar 15 '24 02:03 github-actions[bot]

Still desired.

marionbarker avatar Mar 15 '24 02:03 marionbarker

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

github-actions[bot] avatar Apr 15 '24 04:04 github-actions[bot]

Keeping this open.

elnjensen avatar Apr 15 '24 11:04 elnjensen