Some of the schemata in the hapi-fhir-validation-resources-r4 module are not valid.
When trying to use them the following error can be seen:
{{Bad assert: XPath syntax error. Unclosed parenthesis. Suggestion: add ')'.
f:type/@value=('choice','open-choice','decimal','integer','date','dateTime','time','string','quantity',') or not(f:answerOption or f:answerValueSet)}}
As a result the schemata validation is not happening at all.
As can already be seen by the error message there is a trailing ,' in the expression.
The fix is thus simple: just remove the trailing ,' - unless of course there is something supposed to be after the comma
An associated issue has been raised for the hapi-fhir project:
[https://github.com/hapifhir/hapi-fhir/issues/2414
]
An simple fix is proposed in: