Stream: questionnaire
Topic: requiredExpression ?
Brian Kaney (Feb 12 2021 at 21:34):
Hi! We have what I think would be easily solved with a requiredExpression
. For example, if A is something and B is something else, then C is required. Has anyone else had this situation? If so, how did you solve it?
Lloyd McKenzie (Feb 12 2021 at 21:38):
The StructuredDataCapture IG allows defining invariants on Questionnaire that allow exactly this sort of logic.
Brian Kaney (Feb 12 2021 at 21:42):
I see the constraint feature. I will try to use this, thanks!
Brian Kaney (Feb 12 2021 at 21:51):
@Lloyd McKenzie why is expression
a string
and not Expression
datatype? http://hl7.org/fhir/R4/extension-questionnaire-constraint.html
Brian Kaney (Feb 12 2021 at 21:52):
Also is there any binding for severity
or do we make up our own codes?
Lloyd McKenzie (Feb 12 2021 at 22:24):
The expression must be a FHIRPath. It works exactly the same as constraint on ElementDefinition. And yes, there should be a binding. Can you submit a change request?
Last updated: Apr 12 2022 at 19:14 UTC