Skip to content

Commit 19ba44d

Browse files
committed
debug all returns
1 parent 2148722 commit 19ba44d

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

backend/src/fhir_repository.py

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -414,7 +414,16 @@ def find_immunizations(self, patient_identifier: str, vaccine_types: list):
414414

415415
logger.info("SAW fi...2.1: is_not_deleted condition str: %s", str(is_not_deleted))
416416
logger.info("SAW fi...2.1: is_not_deleted condition dir: %s", dir(is_not_deleted))
417-
logger.info("SAW fi...3: executing DynamoDB query on PatientGSI index")
417+
logger.info("SAW fi...3: check all patientpk %s", patient_pk)
418+
logger.info("SAW fi...3: check all condition %s", condition)
419+
420+
# check response without filter
421+
response = self.table.query(
422+
IndexName="PatientGSI",
423+
KeyConditionExpression=condition
424+
)
425+
426+
logger.info("SAW fi...3.1: Initial DynamoDB query Count: %s, ScannedCount: %s", response.get("Count", 0), response.get("ScannedCount", 0))
418427

419428
response = self.table.query(
420429
IndexName="PatientGSI",

0 commit comments

Comments
 (0)