Skip to content

Commit

Permalink
Revert "Add fallback if medication name missing"
Browse files Browse the repository at this point in the history
This reverts commit 57b95ce.
  • Loading branch information
ivan-c committed Nov 14, 2024
1 parent 669dcf4 commit a1c88ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sof_wrapper/rxnav.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ def add_drug_classes(med, rxnav_url):
return med

meds = []
med_text = med.get("medicationCodeableConcept", {}).get("text", "")
med_text = med["medicationCodeableConcept"]["text"]

for med_code in med["medicationCodeableConcept"]["coding"]:
meds.append(f"{med_code['system']}|{med_code['code']}")
Expand Down

0 comments on commit a1c88ce

Please sign in to comment.