In coordination with Tidepool’s medical advisors, Tidepool established guardrails, warnings and default values for Tidepool Loop therapy settings. Default values within the prescription flow for pediatric and adult users were established.
This ticket adds a facility to capture date of birth for the user, and based on date of birth display default values appropriately.
Reference: Guardrails analysis presentation deck
Set the following default values if empty on load and form elements have not been interacted with:
Defaults for pediatrics:
Max Basal Delivery Limit: 3x hSBR
Suspend Threshold: 80
Correction Range: 100-115
Defaults for adults:
Max Basal Delivery Limit: 3.5x hSBR
Suspend Threshold: 75
Correction Range: 100-105
Two additional default values for both pediatric and adult users
Default values for Pre-Meal Mode: 80-100
Default values for Workout Mode: 150-170
. Note we are no longer distinguishing between upper and lower bound per the screenshot of the slide above. I’m adding a reference to the deck in the description.
FINAL DEFAULTS:
Defaults for pediatrics:
Max Basal Delivery Limit: 3x hSBR
Suspend Threshold: 80
Correction Range: 100-115
Defaults for adults:
Max Basal Delivery Limit: 3.5x hSBR
Suspend Threshold: 75
Correction Range: 100-105
Note there are two final additional default values that are for both users - pediatric and adult users. I’m going to add these to a separate ticket.
Default values for Pre-Meal Mode: 80-100
Default values for Workout Mode: 150-170
Updated description and done criteria to expand beyond pediatric defaults per slack with . Let me know if there are any other questions.
Ready for PR review
PR approved
To be tested as part of the final prescription flow.