Loop icon indicating copy to clipboard operation
Loop copied to clipboard

Custom Presets - Manual input field for Target Range is unconstrained and allows 0mg/dL or 400mg/dL to be set

Open kellyisworking opened this issue 1 year ago • 6 comments

Describe the bug During Custom Preset configuration, for both Saved and Custom (single use) Presets, the Target Range uses manual input for setting the low and high value. Low value can be entered as low as 0 mg/dL and high value can be raised as high as 400mg (at least).

Given the low value is unconstrained, it is unclear if the dose will still be constrained by Glucose Safety Limit. Note: this should be investigated.

Additionally the UI should introduce picker interactions rather than manual inputs consistent to Correction Range in Therapy Settings to mitigate against use error. See below.

To Reproduce Steps to reproduce the behavior:

  1. Go to 'Custom Presets'
  2. Click on '+' to create a new saved preset or 'Custom' to create a temporary preset
  3. Scroll down to 'Target Range'
  4. Tap into input fields, enter 0 or 400 into lower and upper bound.

Expected behavior The UI should introduce picker interactions rather than manual inputs consistent to Correction Range in Therapy Settings to mitigate against use error.


Minimum Low Warning High Warning Maximum
87 or Glucose Safety Limit     250 mg/dL.

Additionally, two recommendations to increase consistency:

  1. Change Target Range to Correction Range across the Preset interface

  2. Display warning message as user’s selection approaches high and low limits

    • Trigger a low range value warning and verify the following copy:
“A value you have entered is lower than what is typically recommended for most people.”
    • Trigger a high range value warning and verify the following copy:
“A value you have entered is higher than what is typically recommended for most people.”
    • Trigger a high and low range value warning and verify the following copy
“Some of the values you have entered are outside of what is typically recommended for most people.”

Screenshots

IMG_7661

kellyisworking avatar Feb 06 '24 01:02 kellyisworking

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

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

Bump

marionbarker avatar Mar 08 '24 03:03 marionbarker

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

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

Bump

marionbarker avatar Apr 08 '24 05:04 marionbarker

I confirmed that the glucose target guardrails are not respected when override values exceed the guardrail. Actually - I don't think this is a problem on the higher end. Next test will be low glucose end. Using a test phone:

  • set override to be 0 to 800 mg/dL
  • set CGM to constant value of 510 with noise, Loop autobolus issued a bolus with glucose at 519 mg/dL

marionbarker avatar Sep 25 '24 20:09 marionbarker

The glucose safety limit is respected. So I think this is a cosmetic issue for the min target, but should be resolved. The upper limit of the target is used as entered. Not sure if we want to enforce guardrails on that value.

Using a test phone

  • set override 0 to 800 mg/dL, this is displayed on the glucose graph as target range.
  • set CGM to constant value of 40 with noise
    • Glucose Safety limit set to 80 mg/dL
      • Loop does not autobolus or recommend bolus because glucose is below safety limit, even though glucose is within override target range and glucose forecast is 332 mg/dL
      • Loop issues 0 U/hr TempBasal rate
  • set CGM to constant value of 70 with noise
    • Glucose Safety limit still at to 80 mg/dL
      • Loop does not autobolus or recommend bolus because glucose is below safety limit
      • Loop issues 0 U/hr TempBasal rate
    • Glucose Safety limit set to 70 mg/dL
      • Loop restores basal to scheduled value
      • Loop does not recommend bolus or autobolus because forecast is below top of target
  • Modify override target range to 0 to 400, so that top level (800) is below forecast (457)
    • Glucose Safety limit still at 70 mg/dL, Glucose still around 75 mg/dL
    • Loop recommends bolus and autoboluses

marionbarker avatar Sep 25 '24 21:09 marionbarker