Don't check FHIRPaths on differentials - not enough type info to test reliably
This commit is contained in:
parent
ce44ab27fe
commit
6350d9743e
|
@ -471,11 +471,13 @@ public class StructureDefinitionValidator extends BaseValidator {
|
||||||
}
|
}
|
||||||
// if we see fixed[x] or pattern[x] applied to a repeating element, we'll give the user a hint
|
// if we see fixed[x] or pattern[x] applied to a repeating element, we'll give the user a hint
|
||||||
}
|
}
|
||||||
List<Element> constraints = element.getChildrenByName("constraint");
|
if (snapshot) { // we just don't have enough information to figure out the context in a differential
|
||||||
int cc = 0;
|
List<Element> constraints = element.getChildrenByName("constraint");
|
||||||
for (Element invariant : constraints) {
|
int cc = 0;
|
||||||
ok = validateElementDefinitionInvariant(errors, invariant, stack.push(invariant, cc, null, null), invariantMap, elements, element, element.getNamedChildValue("path"), rootPath, profileUrl) && ok;
|
for (Element invariant : constraints) {
|
||||||
cc++;
|
ok = validateElementDefinitionInvariant(errors, invariant, stack.push(invariant, cc, null, null), invariantMap, elements, element, element.getNamedChildValue("path"), rootPath, profileUrl) && ok;
|
||||||
|
cc++;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return ok;
|
return ok;
|
||||||
}
|
}
|
||||||
|
@ -504,7 +506,7 @@ public class StructureDefinitionValidator extends BaseValidator {
|
||||||
Element oldte = te;
|
Element oldte = te;
|
||||||
te = getParent(elements, te);
|
te = getParent(elements, te);
|
||||||
if (te != null) {
|
if (te != null) {
|
||||||
exp = tail(oldte, te)+"."+exp;
|
exp = tail(oldte, te)+".all("+exp+")";
|
||||||
types = getTypesForElement(elements, te);
|
types = getTypesForElement(elements, te);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue