OHSUCMP / coach

web application frontend for OHSU HTN U18 grant
2 stars 0 forks source link

Stoplight not showing in some cases #134

Closed aeyates closed 9 months ago

aeyates commented 9 months ago

The patient Pharmacology Advancing Treatment in the sandbox gets the enhanced view and recommendations, but the stoplight is not showing:

Screen Shot 2023-12-14 at 1 00 38 PM
aeyates commented 9 months ago

Several records in REDCap have gotten in a weird state where the randomization form is marked complete and has a date but does not have any randomization value. This caused some strange behavior in the application. While this likely won't happen in production, I've added some guardrails to check that a value is present. If for some reason, we can't determine what the randomization value is, we set it to ENHANCED and log an error to the coach logs warning that this occurred.