Uploaded image for project: 'FHIR Specification Feedback'
  1. FHIR Specification Feedback
  2. FHIR-32677

Clarify that launchContext variables can be used by any Expression

    XMLWordPrintableJSON

Details

    • Icon: Change Request Change Request
    • Resolution: Persuasive
    • Icon: Medium Medium
    • Structured Data Capture (SDC) (FHIR)
    • current
    • FHIR Infrastructure
    • Form Population
    • Hide

      On the launchContext extension documentation, add the following:

      Variables made available by launch context may be used by any expression within the Questionnaire, however they are most safely used within initialExpression.  Because the launch context might vary each time the QuestionnaireResponse is opened or edited, by populating launchContext into the values of (possibly hidden) questions via iniitalExpression, the 'original' context in which the QuestionnaireResponse was created can be retained.

      Show
      On the launchContext extension documentation, add the following: Variables made available by launch context may be used by any expression within the Questionnaire, however they are most safely used within initialExpression.  Because the launch context might vary each time the QuestionnaireResponse is opened or edited, by populating launchContext into the values of (possibly hidden) questions via iniitalExpression, the 'original' context in which the QuestionnaireResponse was created can be retained.
    • Paul Lynch/Jose Costa Teixeira: 2-0-0
    • Clarification
    • Non-substantive

    Description

      A question was raised during the 2021-05 Connectathon as to whether launchContext variables were available for use in only initialExpression or whether they stuck around for use in other expressions like calculatedExpression. It is my opinion that they should be available to whatever expression chooses to use them, though Lloyd suggests a warning that if the QR is later reopened, the launchContext might change.

      Attachments

        Activity

          People

            Unassigned Unassigned
            plynch Paul Lynch
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: