From 906c7dea453d0c9de3650c8312bd17053ab33386 Mon Sep 17 00:00:00 2001 From: Grahame Grieve Date: Thu, 14 Sep 2023 19:29:50 -0700 Subject: [PATCH] fix bug processing CDA snapshots --- .../hl7/fhir/r5/conformance/profile/ProfilePathProcessor.java | 2 +- pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/conformance/profile/ProfilePathProcessor.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/conformance/profile/ProfilePathProcessor.java index 499049837..cc183f65d 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/conformance/profile/ProfilePathProcessor.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/conformance/profile/ProfilePathProcessor.java @@ -1160,7 +1160,7 @@ public class ProfilePathProcessor { throw new DefinitionException(profileUtilities.getContext().formatMessage(I18nConstants._HAS_CHILDREN__AND_MULTIPLE_TYPES__IN_PROFILE_, diffMatches.get(0).getPath(), getDifferential().getElement().get(cursors.diffCursor).getPath(), profileUtilities.typeCode(outcome.getType()), getProfileName())); } ElementDefinition.TypeRefComponent t = outcome.getType().get(0); - if (t.getCode().equals("BackboneElement")) { + if (Utilities.existsInList(t.getCode(), "Base", "Element", "BackboneElement")) { int baseStart = cursors.base.getElement().indexOf(currentBase) + 1; int baseMax = baseStart + 1; while (baseMax < cursors.base.getElement().size() && cursors.base.getElement().get(baseMax).getPath().startsWith(currentBase.getPath() + ".")) diff --git a/pom.xml b/pom.xml index 6820426ea..a8f63263c 100644 --- a/pom.xml +++ b/pom.xml @@ -20,7 +20,7 @@ 32.0.1-jre 6.4.1 - 1.4.3 + 1.4.4-SNAPSHOT 2.15.2 5.9.2 1.8.2