Skip to content

Commit

Permalink
NiFi: cohort script update.
Browse files Browse the repository at this point in the history
  • Loading branch information
vladd-bit committed Jul 8, 2024
1 parent 5460622 commit e087951
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 @@ -173,7 +173,7 @@ def _process_annotation_records(annotation_records: list):
annotation_entity = annotation_record["_source"]
docid = annotation_entity[ANNOTATION_DOCUMENT_ID_FIELD_NAME]

if str(docid) in unique_doc_ids.keys():
if str(docid) in unique_doc_ids:
patient_id = global_doc2ptt[str(docid)]
cui = annotation_entity["nlp.cui"]

Expand Down

0 comments on commit e087951

Please sign in to comment.