Skip to content

Commit

Permalink
Merge pull request #644 from kids-first/dx-ox-px-external_id
Browse files Browse the repository at this point in the history
✨ specify external IDs for clinical markers
  • Loading branch information
chris-s-friedman authored Jan 20, 2022
2 parents 87f5cdf + 14ea938 commit c1f6c1c
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -264,6 +264,7 @@ def build_entity(cls, record, get_target_id_from_record):
),
"diagnosis_category": record.get(CONCEPT.DIAGNOSIS.CATEGORY),
"visible": record.get(CONCEPT.DIAGNOSIS.VISIBLE),
"external_id": record.get(CONCEPT.DIAGNOSIS.ID),
}
return {
**cls.get_key_components(record, get_target_id_from_record),
Expand Down Expand Up @@ -307,6 +308,7 @@ def build_entity(cls, record, get_target_id_from_record):
"hpo_id_phenotype": record.get(CONCEPT.PHENOTYPE.HPO_ID),
"snomed_id_phenotype": record.get(CONCEPT.PHENOTYPE.SNOMED_ID),
"visible": record.get(CONCEPT.PHENOTYPE.VISIBLE),
"external_id": record.get(CONCEPT.PHENOTYPE.ID),
}
return {
**cls.get_key_components(record, get_target_id_from_record),
Expand Down Expand Up @@ -379,6 +381,7 @@ def build_entity(cls, record, get_target_id_from_record):
CONCEPT.OUTCOME.EVENT_AGE,
),
"vital_status": not_none(record[CONCEPT.OUTCOME.VITAL_STATUS]),
"external_id": record.get(CONCEPT.OUTCOME.ID),
}
return {
**cls.get_key_components(record, get_target_id_from_record),
Expand Down

0 comments on commit c1f6c1c

Please sign in to comment.