Skip to content

Commit

Permalink
EA-204: Extra Patient Identifier Metadata Set and It's Mapping can en…
Browse files Browse the repository at this point in the history
…d up with different uuids (#245)
  • Loading branch information
mogoodrich authored Oct 17, 2024
1 parent e4d459a commit 4b2056e
Showing 1 changed file with 0 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -238,15 +238,6 @@ private void createExtraPatientIdTypesSetIfMissing(MetadataSource emrapiMetadata
extraPatientIdTypesMapping = new MetadataTermMapping(emrapiMetadataSource, EmrApiConstants.GP_EXTRA_PATIENT_IDENTIFIER_TYPES, extraPatientIdTypesSet);
extraPatientIdTypesMapping.setName(EmrApiConstants.GP_EXTRA_PATIENT_IDENTIFIER_TYPES);
metadataMappingService.saveMetadataTermMapping(extraPatientIdTypesMapping);
} else {
if (!EmrApiConstants.MM_EXTRA_PIT_SET_UUID.equalsIgnoreCase(extraPatientIdTypesMapping.getMetadataUuid())) {
MetadataSet extraPatientIdTypesSet = metadataMappingService.getMetadataSetByUuid(extraPatientIdTypesMapping.getMetadataUuid());
extraPatientIdTypesSet.setUuid(EmrApiConstants.MM_EXTRA_PIT_SET_UUID);
metadataMappingService.saveMetadataSet(extraPatientIdTypesSet);

extraPatientIdTypesMapping.setMetadataUuid(EmrApiConstants.MM_EXTRA_PIT_SET_UUID);
metadataMappingService.saveMetadataTermMapping(extraPatientIdTypesMapping);
}
}
}

Expand Down

0 comments on commit 4b2056e

Please sign in to comment.