Clarify enableWhen and repeating elements

XMLWordPrintableJSON

    • Type: Change Request
    • Resolution: Persuasive with Modification
    • Priority: Medium
    • FHIR Core (FHIR)
    • R4
    • FHIR Infrastructure
    • Questionnaire
    • Hide

      We will note in the description of enableWhen that it's not permitted to have a reference to a question such that the reference could refer to more than one item (e.g. an item within a repeating group).  Will also clarify that if we're dealing with a single item that permits multiple answers (i.e. a question item with repeats=true), that the condition is satisfied if any of the answer values match the enableWhen value. That documentation will indicate that the enableWhenExpression extension should be used in these cases to allow the author to differentiate whether the rule should be triggered based on the value of the first repetition, all answers having the specified value, any answers having the specified value, etc.

      Show
      We will note in the description of enableWhen that it's not permitted to have a reference to a question such that the reference could refer to more than one item (e.g. an item within a repeating group).  Will also clarify that if we're dealing with a single item that permits multiple answers (i.e. a question item with repeats=true), that the condition is satisfied if any of the answer values match the enableWhen value. That documentation will indicate that the enableWhenExpression extension should be used in these cases to allow the author to differentiate whether the rule should be triggered based on the value of the first repetition, all answers having the specified value, any answers having the specified value, etc.
    • Paul Lynch/Yunwei Wang: 8-0-0
    • Clarification
    • Non-substantive

      Can a question outside a repeating group have an enableWhen referring a linkId within that repeating group? The definition at http://hl7.org/fhir/questionnaire-definitions.html#Questionnaire.item.enableWhen.question seems not to handle this case.

       

      Our suggestion is to isolate the repeating groups such that an enableWhen can only refer to items within the repeating group, if itself is within that group. Thereby disallowing a question outside a repeating group to have an enableWhen referring a linkId within that repeating group. 

      Question raised here: https://chat.fhir.org/#narrow/stream/179255-questionnaire/topic/enableWhen.20and.20repeating.20elements/near/188385182

            Assignee:
            Lloyd McKenzie
            Reporter:
            kennethmyhra
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: