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

Provide a way to force resource creation in extract

    XMLWordPrintableJSON

Details

    • Icon: Change Request Change Request
    • Resolution: Persuasive
    • Icon: Medium Medium
    • Structured Data Capture (SDC) (FHIR)
    • current
    • FHIR Infrastructure
    • Questionnaire response extract to resource(s)
    • Form Data Extraction
    • Hide

      We will revise the itemExtractionContext to allow the type to be Expression (as it is already) plus code (new) with a binding of ResourceType (or whatever the value set is that contains the codes for all resources) and will add guidance that indicates that if you specify a code, then the extraction is always the creation of a new resource of the specified type.

      Show
      We will revise the itemExtractionContext to allow the type to be Expression (as it is already) plus code (new) with a binding of ResourceType (or whatever the value set is that contains the codes for all resources) and will add guidance that indicates that if you specify a code, then the extraction is always the creation of a new resource of the specified type.
    • Paul Lynch/Joee Garcia: 4-0-0
    • Enhancement
    • Compatible, substantive

    Description

       

      http://build.fhir.org/ig/HL7/sdc/extraction.html says:

      Include the questionnaire-itemExtractionContext extension either on the Questionnaire root or on 'group' items within the Questionnaire to identify the resource that will serve as the context for any extraction. The itemExtractionContext is used to set the context for the item.definition paths. If the itemExtractionContext is empty, then the Questionnaire is being used to create a resource. If the itemExtractionContext has a resource (or set of resources), then the Questionnaire is being used to update the resource(s).

      However, it is not clear how to specify that new resource should be created regardless. For example, what should be specified in this extension when the purpose of the questionnaire is to create a new "Patient" resource?

      Based on FHIR chat, the answer is to use query that will never return anything at all, like "Patient?_id=<nonexistent id>", however, this looks suboptimal.

       

      See https://chat.fhir.org/#narrow/stream/179255-questionnaire/topic/SDC.3A.20extracting.20into.20a.20new.20resource for the context.

       

      Attachments

        Activity

          People

            Unassigned Unassigned
            idubrov Ivan Dubrov (Inactive)
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: