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

launchContext limitations

    XMLWordPrintableJSON

Details

    • Icon: Change Request Change Request
    • Resolution: Persuasive with Modification
    • Icon: Medium Medium
    • Structured Data Capture (SDC) (FHIR)
    • current
    • FHIR Infrastructure
    • Populatable Questionnaire [deprecated]
    • Hide

      Will change data type for launchContext to be Coding

      Will document that the Coding.code will be used for the variable name and that (at present) there is no support for Questionnaires that use multiple launch contexts which share a common code but different code systems.  Will also note that all launch context codes must meet the requirements to be a valid FHIRPath name.

      Will make the binding extensible rather than required

      Will update the $populate operation to allow launch contexts to be passed in.

      Show
      Will change data type for launchContext to be Coding Will document that the Coding.code will be used for the variable name and that (at present) there is no support for Questionnaires that use multiple launch contexts which share a common code but different code systems.  Will also note that all launch context codes must meet the requirements to be a valid FHIRPath name. Will make the binding extensible rather than required Will update the $populate operation to allow launch contexts to be passed in.
    • Ilya Beda/Paul Lynch: 8-0-0
    • Enhancement
    • Non-compatible

    Description

      Launch context type has required binding to http://build.fhir.org/ig/HL7/sdc/ValueSet-launchContext.html So, there are only  4 options for launchContext type. 

      For the past two years, I realized that more flexibility for the launch context type is required. Launch context item may be any of https://www.hl7.org/fhir/datatypes.html or any of FHIR resources.

      There was a decision to make the binding "Extensible"  but this change was not applied. https://jira.hl7.org/browse/FHIR-29664  It may cause some issues with understanding the meaning of the name.

      The next issue is how to pass launchContext to $populate operation.
      There is no explicit description of how it should work. If SMART on FHIR is used launchContext usually uses SMART context to get Questionnaire launchContext.

      There is no straightforward way to pass launch context to $populate operation if SMART on FHIR doesn't use. https://build.fhir.org/ig/HL7/sdc/OperationDefinition-Questionnaire-populate.html 

      My proposal is:
      1. The name is a text that defines a variable name. The meaning of launch context is defined by the type. It may be any of https://www.hl7.org/fhir/datatypes.html or any of FHIR resources.

      2. Change the valueset https://build.fhir.org/ig/HL7/sdc/ValueSet-launchContext.html  for launchContext.type It should consist of all FHIR resource names and FHIR data types https://www.hl7.org/fhir/datatypes.html .

      3. Add launchContext of type https://www.hl7.org/fhir/parameters.html to $populate operation parameters.

      Here https://github.com/beda-software/aidbox-sdc/blob/master/tests/sdc/test_populate.py#L297 you can see how this approach works.

      Attachments

        Activity

          People

            Unassigned Unassigned
            ilyabeda Ilya Beda
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: