Skip to content

Commit 85d3d31

Browse files
committed
filter in form_json2
1 parent 35e575b commit 85d3d31

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

backend/src/fhir_service.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,6 @@ def get_immunization_by_identifier(
6767
imms_resp = self.immunization_repo.get_immunization_by_identifier(
6868
identifier_pk, imms_vax_type_perms
6969
)
70-
7170
if not imms_resp:
7271
base_url = f"{get_service_url()}/Immunization"
7372
response = form_json(imms_resp, None, None, base_url)

backend/src/models/utils/generic_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ def form_json(response, _element, identifier, baseurl):
153153
if identifier and not _element:
154154
resource = response["resource"]
155155
resource.pop("contained", None)
156-
if "use" not in response["identifier"][0]:
156+
if "use" not in resource["identifier"][0]:
157157
resource["identifier"][0]["use"] = "official"
158158

159159
elif identifier and _element:

0 commit comments

Comments
 (0)