Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Align temp target guardrails with Trio #340

Merged
merged 1 commit into from
Dec 8, 2024
Merged

Conversation

bjorkert
Copy link
Contributor

@bjorkert bjorkert commented Dec 7, 2024

This PR aligns the temp target guardrails with trio 80-200 (4,5-11,1).

@bjorkert bjorkert requested a review from marionbarker December 7, 2024 19:51
@marionbarker
Copy link
Collaborator

Status

LGTM

Test

The oref algorithm has hard limits of 80 to 200 for TempTarget ranges. Previously these could be set from 60 to 300 in LoopFollow. Modify the guardrails to 80 to 200 for LoopFollow. Test both mg/dL and mmol/L settings.

Test before

  • Confirmed that a TT with a target of 60 could be issued.

    • shows up in NS
    • see the 60 on the Trio plot, but the banner says no active adjustment
    • cancel it from LF, shortened bar on NS / LF / Trio
  • Confirmed that a TT with a target of 300 could be issued.

    • shows up in NS
    • see the 300 on the Trio plot, but the banner says no active adjustment
    • cancel it from LF, shortened bar on NS / LF / Trio
  • Repeat with TT of 180 mg/dL

Test with PR

  • Attempt to exceed guardrails and get alert message at 300 mg/dL and 60 mg/dL. 200 and 80 are successful. 79 and 201 show an alert message and will not be accepted.
  • Switch units to mmol/L. Low level is now 4.5 mmol/L. High level is 11.1 mmol/L.

@marionbarker marionbarker merged commit b2538ef into dev Dec 8, 2024
@marionbarker marionbarker deleted the tt-guardrails-update branch December 13, 2024 21:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants