Define explicit behavior for enableWhen at QuestionnaireResponse

XMLWordPrintableJSON

    • Type: Change Request
    • Resolution: Persuasive with Modification
    • Priority: Medium
    • Structured Data Capture (SDC) (FHIR)
    • current
    • FHIR Infrastructure
    • SDC Standard Questionnaire Response
    • Hide

      Will revise this text: "

      • When a QuestionnaireResponse references a Questionnaire, all the items in the questionnaire SHOULD be included in the QuestionnaireResponse if they are relevant to the interpretation of the answers, including items of type = display. This might also include items that were >not enabled when the Questionnaire was answered, though of course these will not have answers"

      to

      "

      • When a QuestionnaireResponse references a Questionnaire, all the items in the questionnaire SHOULD be included in the QuestionnaireResponse if they are relevant to the interpretation of the answers, including items of type = display. When the QuestionnaireResponse is not yet marked as 'completed', this might also include items that are not "enabled" based on what answers are currently present.  However, once a QuestionnaireResponse is marked as "completed", the QuestionnaireResponse SHALL only include items that are 'enabled'.  I.e. stuff that was perhaps answered through populate or user-action but subsequently got disabled due to other answers must not be included in a final QuestionnaireResponse."
      Show
      Will revise this text: " When a QuestionnaireResponse references a Questionnaire, all the items in the questionnaire SHOULD be included in the QuestionnaireResponse if they are relevant to the interpretation of the answers, including items of type =  display . This might also include items that were  >not enabled  when the Questionnaire was answered, though of course these will not have answers" to " When a QuestionnaireResponse references a Questionnaire, all the items in the questionnaire SHOULD be included in the QuestionnaireResponse if they are relevant to the interpretation of the answers, including items of type =  display . When the QuestionnaireResponse is not yet marked as 'completed', this might also include items that are not " enabled " based on what answers are currently present.  However, once a QuestionnaireResponse is marked as "completed", the QuestionnaireResponse SHALL only include items that are 'enabled'.  I.e. stuff that was perhaps answered through populate or user-action but subsequently got disabled due to other answers must not be included in a final QuestionnaireResponse."
    • Clem McDonald/Paul Lynch: 11-0-0
    • Correction
    • Non-compatible

      Based on this note https://www.hl7.org/fhir/questionnaireresponse.html#link 

      When a QuestionnaireResponse references a Questionnaire, all the items in the questionnaire SHOULD be included in the QuestionnaireResponse if they are relevant to the interpretation of the answers, including items of type = display. This might also include items that were >not enabled when the Questionnaire was answered, though of course these will not have answers

      I think that this behaviour should be  ** explicitly defined as QuestionnaireResponse constraint https://www.hl7.org/fhir/questionnaireresponse.html#invs

      id Level Location Description Expression
      qrs-2   QuestionnaireResponse.item.answer QuestionnaireResponse ** should not has answers for items that don't conform enableWhen on Questionnaire level.  

       

      The same constraint make sense for http://hl7.org/fhir/uv/sdc/2019May/behavior.html#enableWhenExpression 

      QuestionnaireResponse ** should not has answers for items that don't conform enableWhenExpression on Questionnaire level.

       

       

       

            Assignee:
            Unassigned
            Reporter:
            ilyabeda
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: