Skip to content

Commit

Permalink
NiFi: cohort script parse fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
vladd-bit committed Jul 6, 2024
1 parent 1039938 commit 0940795
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nifi/user-scripts/cogstack_cohort_generate_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 0940795

Please sign in to comment.