FHIR Chat · requiredExpression ? · questionnaire

Stream: questionnaire

Topic: requiredExpression ?


view this post on Zulip 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?

view this post on Zulip Lloyd McKenzie (Feb 12 2021 at 21:38):

The StructuredDataCapture IG allows defining invariants on Questionnaire that allow exactly this sort of logic.

view this post on Zulip Brian Kaney (Feb 12 2021 at 21:42):

I see the constraint feature. I will try to use this, thanks!

view this post on Zulip 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

view this post on Zulip Brian Kaney (Feb 12 2021 at 21:52):

Also is there any binding for severity or do we make up our own codes?

view this post on Zulip 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