Fix bug picking correct slice on fixed value

This commit is contained in:
Grahame Grieve 2020-03-20 05:23:55 +11:00
parent 1ad12a4396
commit 427d8ef0ab
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}