-
Type:
Change Request
-
Resolution: Persuasive
-
Priority:
Medium
-
FHIR Core (FHIR)
-
R4
-
FHIR Infrastructure
-
Questionnaire
-
-
Paul Lynch/Stoyan Halkeliev: 6-0-0
-
Clarification
-
Non-substantive
The current documentation of `Questionnaire.item.enableWhen` includes the following:
>If multiple repetitions of this extension are present, the item should be enabled when the condition for any of the repetitions is true. I.e. treat "enableWhen"s as being joined by an "or" clause.
It is very easy to misread this as saying that if you have multiple enableWhen conditions, they will always be joined with an OR (whereas, in fact, this behavior is controlled by `enableBehavior`). As a concrete example of incorrect understanding of the current wording, I offer this Zulip thread started by myself (which also discusses the potential for confusion):
I propose that the documentation be updated to make clear
- The difference between - and relevant behavior for - the case of (a) an `enableWhen` clause with multiple conditions, and (b) an `enableWhen` clause applied to a question that may have multiple answers.
- The link to `enableBehavior`