OHSUCMP / htnu18ig

Repository for Hypertension U18 grant's Implementation Guide
Apache License 2.0
2 stars 0 forks source link

Patient with recent success may still need NonPharma recommendations #120

Closed aeyates closed 2 years ago

aeyates commented 2 years ago

While testing in production, we encountered a patient who was getting a Monitoring recommendation indicating they had not achieved their goal but not getting any of the Non-Medicinal recommendations. After digging into their record, I found that their most recent BP set had met their overall goal, but when you considered their average over the previous 2 years, it was above 140/90 qualifying for HTN Stage 2 and resulting in recommendation 14.a in the monitoring workflow. 14.a should flow to NonPharma, so some of the logic needs to change when determining whether the goal has been "met". The goal should only be met if their most recent is below their goal AND their average over the last 2 years does not qualify for HTN Stage 2.

aeyates commented 2 years ago

I've deployed these changes to production and confirmed that the patient now gets NonPharma recommendations.