-
Notifications
You must be signed in to change notification settings - Fork 157
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
FHIRPath evaluator should throw when string function is invoked on non-string #3805
Comments
Signed-off-by: Prasanna Hegde <prasanna.hegde1@ibm.com>
Signed-off-by: Prasanna Hegde <prasanna.hegde1@ibm.com>
Signed-off-by: Prasanna Hegde <prasanna.hegde1@ibm.com>
issue #3805 - fix FHIRPath evaluator string function error handling
I tried the happy path on various data types including:
Interestingly, I found that the implementation for oid and uuid also match values with the prefix (e.g. "id" will always match the "oid" or "uuid" in the prefix, regardless of the actual unique values). I also confirmed the negative cases for
|
Describe the bug
http://hl7.org/fhirpath/N1/#string-manipulation says this about the String functions in this section:
However, users report that our engine returns empty in this case instead of throwing.
Environment
4.11.1
To Reproduce
See https://chat.fhir.org/#narrow/stream/179266-fhirpath/topic/error.20handling
Expected behavior
"the evaluation of the expression will end and signal an error to the calling environment"
Additional context
The text was updated successfully, but these errors were encountered: