Skip to content

Commit

Permalink
fix exception
Browse files Browse the repository at this point in the history
  • Loading branch information
marceloarocha committed Jul 10, 2024
1 parent 90cfdb4 commit 5fa1316
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion services/alert_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
)
Expand Down

0 comments on commit 5fa1316

Please sign in to comment.