Closed oliveregger closed 3 weeks ago
This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 5 days if no further activity occurs. Thank you for your contributions.
this is still an issue, at least it can be reproduced with FhirPathTester
This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 5 days if no further activity occurs. Thank you for your contributions.
The following FHIRPath expression gives an error in IG Publisher:
original: status in ('registered'|'cancelled') or value.exists() or hasMember.exists() or component.exists() or dataAbsentReason.exists()
HAPI-0389: Failed to call access method: org.hl7.fhir.exceptions.PathEngineException: Unable to evaluate as a boolean: registered,cancelled (@char 11)
according to operator precedence in should be before or and ('registered'|'cancelled') should not be evaulated to boolean.
making it explicit (status in ('registered'|'cancelled')) or value.exists() or hasMember.exists() or component.exists() or dataAbsentReason.exists()
it returns no errors.
see also https://github.com/hl7-eu/laboratory/issues/51, qa
javascript.js. Java (IBM) and the .NET (Firely) implementation are working with the original as expected in FHIRpath Lab:
resource to test: