Structured Data Capture
3.0.0 - STU 3 International flag

This page is part of the Structured Data Capture FHIR IG (v3.0.0: STU 3) based on FHIR R4. This is the current published version. For a full list of available versions, see the Directory of published versions

StructureMap: SDC Map population StructureMap example (Experimental)

Official URL: http://hl7.org/fhir/uv/sdc/StructureMap/questionnaire-population-transform Version: 3.0.0
Standards status: Informative Computable Name: QuestionnairePopulationTransform

Sample stricture map showing process for auto-populating a QuestionnaireResponse from a query bundle

Generated Narrative

Resource "questionnaire-population-transform"

url: http://hl7.org/fhir/uv/sdc/StructureMap/questionnaire-population-transform

version: 3.0.0

name: QuestionnairePopulationTransform

title: Questionnaire Population Transform

status: draft

experimental: true

date: 2022-03-08 06:37:19+0000

publisher: HL7 International - FHIR Infrastructure Work Group

contact: http://hl7.org/Special/committees/fiwg

description: Sample stricture map showing process for auto-populating a QuestionnaireResponse from a query bundle

jurisdiction: World (m49.htm#001)

structure

url: Bundle

mode: source

structure

url: QuestionnaireResponse

mode: target

group

name: main

typeMode: none

input

name: src

type: Bundle

mode: source

input

name: qr

type: QuestionnaireResponse

mode: target

rule

name: questionnaire

Sources

-Context
*src

target

context: qr

contextType: variable

element: questionnaire

transform: copy

Parameters

-Value[x]
*http://hl7.org/fhir/uv/sdc/Questionnaire/questionnaire-sdc-test-fhirpath-prepop-source-query

rule

name: status

Sources

-Context
*src

target

context: qr

contextType: variable

element: status

transform: copy

Parameters

-Value[x]
*in-progress

rule

name: authored

Sources

-Context
*src

target

context: qr

contextType: variable

element: authored

transform: evaluate

Parameters

-Value[x]
*now()

rule

name: subject

Sources

-ContextElementListModeVariable
*srcentryfirstpatient

target

context: qr

contextType: variable

element: subject

variable: subject

target

context: subject

contextType: variable

element: reference

transform: evaluate

Parameters

-Value[x]
*patient.resource.entry.fullUrl

rule

name: grp

Sources

-Context
*src

target

context: qr

contextType: variable

element: item

variable: grp

target

context: grp

contextType: variable

element: linkId

transform: copy

Parameters

-Value[x]
*grp

rule

name: part-details

rule

name: meds