-
Notifications
You must be signed in to change notification settings - Fork 11
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
Validate code belongs to the provided system #97
Comments
Please describe the requested feature in more detail. |
Signature Checks if the Code provided in
Consider
I doubt this is a common use case, but consider whether such functionality is valuable performance-wise (it saves multiple repeated function calls) or for usability/readability.
|
To align with the overall philosophy of Jsonata functions, this function should not return coded values as you suggested, but a boolean or undefined. True if the code is valid, false if it's invalid, undefined if it cannot be validated due to expansion issues. In the last case, a warning message should be printed to console/log saying that the VS could not be expanded due to X. Some more questions:
|
Regarding multiple codes - if you want to validate a CodeableConcept, that has an array of codings, the appropriate behavior is that if at least one of the is in the VS than the entire CodeableConcept is valid. That's the meaning of required bindings. So I'm not sure validating all of them and giving back a complex structure that the user needs to analyze is the best option. |
As a user, I want to check if a code belongs to the declared system before writing to output.
I should be able to turn on/off this feature so I can use it for select inputs.
Consider doing so programmatically to validate only codes from specific systems (say local ones) or on particular scenarios.
The text was updated successfully, but these errors were encountered: