Skip to content

Commit

Permalink
WIP: Fixing CLI
Browse files Browse the repository at this point in the history
  • Loading branch information
Filienko committed Dec 8, 2023
1 parent e608ea7 commit 5faecf2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions isacc_messaging/api/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -222,10 +222,10 @@ def deactivate_patient(patient_id):
"""Iterate through all patients, update any the parameter values for all of them"""
from isacc_messaging.models.fhir import next_in_bundle
from isacc_messaging.models.isacc_patient import IsaccPatient as Patient
active_patients = Patient.active_patients()
active_patients = Patient.all_patients()
for json_patient in next_in_bundle(active_patients):
patient = Patient(json_patient)
if patient.id == "52":
if patient.id == 52:
patient.active = False
patient.persist()
audit_entry(
Expand Down

0 comments on commit 5faecf2

Please sign in to comment.