Skip to content

Commit 479bc50

Browse files
committed
VED-736: remove contained and add use official3
1 parent d0f753e commit 479bc50

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

backend/src/models/utils/generic_utils.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,9 @@ def form_json(response, _element, identifier, baseurl):
152152
# Full Immunization payload to be returned if only the identifier parameter was provided
153153
if identifier and not _element:
154154
resource = response["resource"]
155+
resource.pop("contained", None)
156+
if "use" not in response["identifier"][0]:
157+
resource["identifier"][0]["use"] = "official"
155158

156159
elif identifier and _element:
157160
element = {e.strip().lower() for e in _element.split(",") if e.strip()}

0 commit comments

Comments
 (0)