diff --git a/services/alert_service.py b/services/alert_service.py index 93dab53f..96e0896c 100644 --- a/services/alert_service.py +++ b/services/alert_service.py @@ -262,7 +262,7 @@ def _alert_ira( if drug and "vanco" in drug.name.lower(): expireDay = prescription_expire_date.day if prescription_expire_date else 0 idDrugAgg = str(prescription_drug.idDrug) + "_" + str(expireDay) - maxdose = dose_total[idDrugAgg]["value"] + maxdose = dose_total[idDrugAgg]["value"] if idDrugAgg in dose_total else None ckd = ( exams["ckd"]["value"] if "ckd" in exams and exams["ckd"]["value"] else None )