Skip to content

Commit

Permalink
fix alert dup count
Browse files Browse the repository at this point in the history
  • Loading branch information
marceloarocha committed Jun 11, 2024
1 parent 04aca62 commit ba8a24d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions routes/drugList.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,12 @@ def sumAlerts(self):
self.alertStats[_get_legacy_alert(k)] = v
self.alertStats["interactions"][k] = v

# keep legacy data
self.alertStats["dup"] = (
self.alertStats["interactions"]["dm"]
+ self.alertStats["interactions"]["dt"]
)

self.alertStats["exams"] = (
self.alertStats["exams"]
+ self.alertStats["kidney"]
Expand Down

0 comments on commit ba8a24d

Please sign in to comment.