From 0940795ea241e4452ee0616ff0a5b3bc18291df7 Mon Sep 17 00:00:00 2001 From: vladd-bit Date: Sat, 6 Jul 2024 09:47:46 +0100 Subject: [PATCH] NiFi: cohort script parse fix. --- nifi/user-scripts/cogstack_cohort_generate_data.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nifi/user-scripts/cogstack_cohort_generate_data.py b/nifi/user-scripts/cogstack_cohort_generate_data.py index 690483e9..bb71191d 100644 --- a/nifi/user-scripts/cogstack_cohort_generate_data.py +++ b/nifi/user-scripts/cogstack_cohort_generate_data.py @@ -106,7 +106,7 @@ def _process_patient_records(patient_records: list): _ptt2sex[_PATIENT_ID] = _tmp_gender dob = patient_record[PATIENT_BIRTH_DATE_FIELD_NAME] if PATIENT_BIRTH_DATE_FIELD_NAME in patient_record.keys() else 0 - dod = patient_record[PATIENT_DEATH_DATE_FIELD_NAME] if PATIENT_DEATH_DATE_FIELD_NAME in patient_record.keys() else None + dod = patient_record[PATIENT_DEATH_DATE_FIELD_NAME] if PATIENT_DEATH_DATE_FIELD_NAME in patient_record.keys() else 0 try: dob = int(dob)