Skip to content

Commit 6bd38f5

Browse files
committed
debug
1 parent 0740614 commit 6bd38f5

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

backend/src/fhir_service.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -317,6 +317,9 @@ def search_immunizations(
317317
imms_patient_record = get_contained_patient(resources[-1]) if resources else None
318318

319319
logger.info("SAW: filter resources for search")
320+
# log pretty resources for debug
321+
logger.debug("SAW: resources: %s", [r.json(indent=2) for r in resources])
322+
logger.info("SAW: filtered resources: %d", len(resources_filtered_for_search))
320323
# Filter and amend the immunization resources for the SEARCH response
321324
resources_filtered_for_search = [Filter.search(imms, patient_full_url) for imms in resources]
322325
logger.info("SAW: no of items in filtered resources: %d", len(resources_filtered_for_search))

0 commit comments

Comments
 (0)