From 427d8ef0ab29aaf827e22a98e8d488d291902db7 Mon Sep 17 00:00:00 2001 From: Grahame Grieve Date: Fri, 20 Mar 2020 05:23:55 +1100 Subject: [PATCH] Fix bug picking correct slice on fixed value --- .../src/main/java/org/hl7/fhir/r5/utils/FHIRPathEngine.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/utils/FHIRPathEngine.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/utils/FHIRPathEngine.java index 626edada1..02e1fa403 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/utils/FHIRPathEngine.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/utils/FHIRPathEngine.java @@ -4228,7 +4228,7 @@ public class FHIRPathEngine { childDefinitions = profileUtilities.getChildMap(sd, sd.getSnapshot().getElementFirstRep()); } for (ElementDefinition t : childDefinitions) { - if (tailMatches(t, expr.getName())) { + if (tailMatches(t, expr.getName()) && !t.hasSlicing()) { // GG: slicing is a problem here. This is for an exetnsion with a fixed value (type slicing) focus = t; break; }