From 4b2056ee21f200e3b9447bee96d7ec3483112857 Mon Sep 17 00:00:00 2001 From: Mark Goodrich Date: Wed, 16 Oct 2024 20:23:54 -0400 Subject: [PATCH] EA-204: Extra Patient Identifier Metadata Set and It's Mapping can end up with different uuids (#245) --- .../java/org/openmrs/module/emrapi/EmrApiActivator.java | 9 --------- 1 file changed, 9 deletions(-) diff --git a/api/src/main/java/org/openmrs/module/emrapi/EmrApiActivator.java b/api/src/main/java/org/openmrs/module/emrapi/EmrApiActivator.java index 21353e984..2f749c00f 100644 --- a/api/src/main/java/org/openmrs/module/emrapi/EmrApiActivator.java +++ b/api/src/main/java/org/openmrs/module/emrapi/EmrApiActivator.java @@ -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); - } } }