Skip to content

Commit

Permalink
Rename externalID to identifier in patientResource
Browse files Browse the repository at this point in the history
  • Loading branch information
shermanlo77 committed Jan 10, 2024
1 parent 9836993 commit 017b886
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/script/GA4GHFHIRConverter.js
Original file line number Diff line number Diff line change
Expand Up @@ -603,10 +603,10 @@ GA4GHFHIRConverter.extractDataFromPatient = function (patientResource,
properties.gender = 'F';
}

if (patientResource.externalID) {
if (patientResource.externalID.system ===
if (patientResource.identifier) {
if (patientResource.identifier.system ===
'https://github.com/phenotips/open-pedigree?externalID') {
properties.externalID = patientResource.externalID.value;
properties.externalID = patientResource.identifier.value;
}
}

Expand Down Expand Up @@ -1290,7 +1290,7 @@ GA4GHFHIRConverter.buildPedigreeIndividual = function (containedId, nodeProperti
}

if (nodeProperties.externalID) {
patientResource.externalID = {
patientResource.identifier = {
'system': 'https://github.com/phenotips/open-pedigree?externalID',
'value': nodeProperties.externalID
};
Expand Down

0 comments on commit 017b886

Please sign in to comment.