From 813a8507305ddb9258fb15178dc457c2a3ea4ee0 Mon Sep 17 00:00:00 2001 From: Grahame Grieve Date: Sun, 19 Mar 2023 08:52:37 +1100 Subject: [PATCH] adjust mappings handling code generating diffs --- .../org/hl7/fhir/r5/conformance/profile/ProfileUtilities.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/conformance/profile/ProfileUtilities.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/conformance/profile/ProfileUtilities.java index 9b216e802..be4e6a328 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/conformance/profile/ProfileUtilities.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/conformance/profile/ProfileUtilities.java @@ -2350,7 +2350,9 @@ public class ProfileUtilities extends TranslatingUtilities { if (d.getIdentity().equals(s.getIdentity())) { switch (mappingMergeMode) { case APPEND: - d.setMap(d.getMap()+";"+s.getMap()); + if (!Utilities.splitStrings(d.getMap(), "\\,").contains(s.getMap())) { + d.setMap(d.getMap()+","+s.getMap()); + } return true; case DUPLICATE: return false;