Add facility to accommodate adult and pediatric default values

Description

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

Business/Product Success Criteria

None

Done Criteria

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

Design Specifications:

None

Accessibility Specifications

None

Test Strategy

None

Environment

None

New Fields for Analytics/Export Configuration (if needed)

None

Activity

Show:
Kelly Watson
7 days ago

. 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

Kelly Watson
7 days ago

Updated description and done criteria to expand beyond pediatric defaults per slack with . Let me know if there are any other questions.

Clint Beacock
7 days ago

Ready for PR review

Chris McGee
6 days ago

PR approved

Clint Beacock
5 days ago

To be tested as part of the final prescription flow.

Done

Priority

None

Assignee

Clint Beacock

QA Assignee

None

Reporter

Kelly Watson

Requested By (External)

None

Fix versions

None

T-Shirt Size

S: 2-3 days

Risk Level

None

User Experience Assessment Level

None

UEA: Issue Volume

None

UEA: Category

None

Components

None

Design Review Required?

No

Design Approved By:

None

QA done during validation of another ticket?

None

Accessibility Review Required?

None

Accessibility Review Approved By

None

Approved for Production By:

None

Marketing Comms

None

Support Follow Up

None

KB Update

None

Resolved Build #

None

Change completion date

None

Pull Request Needed

None

Story Points

3

Dev Documentation

No

KissMetrics Events Implemented?

No

Data Model Updates Required by Analytics/Export?

No

Epic Link

Sprint

None
Configure