Skip to content

Commit

Permalink
WIP: fixing bool
Browse files Browse the repository at this point in the history
  • Loading branch information
Filienko committed Dec 13, 2023
1 parent 45ea7e9 commit 1e3c201
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
3 changes: 1 addition & 2 deletions isacc_messaging/api/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -214,10 +214,9 @@ def update_patient_params():
patient = Patient(json_patient)
patient.reinstate()
audit_entry(
f"Patient ID{patient.id}",
f"Patient with id {patient.id} reinstated",
level='info'
)
patient.persist()


@base_blueprint.cli.command("deactivate_patient")
Expand Down
1 change: 1 addition & 0 deletions isacc_messaging/models/isacc_patient.py
Original file line number Diff line number Diff line change
Expand Up @@ -233,6 +233,7 @@ def reinstate(self):
"""Persist self state to FHIR store"""
self_json = self.as_json()
self_json["active"] = True
"""Persist self state to FHIR store"""
response = HAPI_request(
method="PUT",
resource_type=self.resource_type,
Expand Down

0 comments on commit 1e3c201

Please sign in to comment.