This page is part of the FHIR Specification (v3.0.2: STU 3). The current version which supercedes this version is 5.0.0. For a full list of available versions, see the Directory of published versions . Page versions: R5 R4B R4 R3
FHIR Infrastructure Work Group | Maturity Level: N/A | Ballot Status: Informative | Compartments: Device, Encounter, Patient, Practitioner, RelatedPerson |
R2 : R3 Converson maps for QuestionnaireResponse.
Functional status for this map: 6 tests that all execute ok. 1 fail round-trip testing and 6 r3 resources are invalid (19 errors). (see documentation)
map "http://hl7.org/fhir/StructureMap/QuestionnaireResponse2to3" = "R2 to R3 Conversions for QuestionnaireResponse" uses "http://hl7.org/fhir/DSTU2/StructureDefinition/QuestionnaireResponse" alias QuestionnaireResponseR2 as source uses "http://hl7.org/fhir/StructureDefinition/QuestionnaireResponse" alias QuestionnaireResponse as target imports "http://hl7.org/fhir/StructureMap/*2to3" group for type+types QuestionnaireResponse extends DomainResource input src : QuestionnaireResponseR2 as source input tgt : QuestionnaireResponse as target "QuestionnaireResponse-identifier" : for src.identifier make tgt.identifier "QuestionnaireResponse-questionnaire" : for src.questionnaire make tgt.questionnaire "QuestionnaireResponse-status" : for src.status make tgt.status "QuestionnaireResponse-subject" : for src.subject make tgt.subject "QuestionnaireResponse-author" : for src.author make tgt.author "QuestionnaireResponse-authored" : for src.authored make tgt.authored "QuestionnaireResponse-source" : for src.source make tgt.source "QuestionnaireResponse-encounter" : for src.encounter make tgt.context "QuestionnaireResponse-item" : for src.group as vs0 make tgt.item as vt0 then qrGroup(vs0, vt0) endgroup group qrGroup extends BackboneElement input src as source input tgt as target "QuestionnaireResponse.group-linkId" : for src.linkId make tgt.linkId "QuestionnaireResponse.group-title" : for src.title where src.text.empty() make tgt.text "QuestionnaireResponse.group-text" : for src.text make tgt.text "QuestionnaireResponse.group-subject" : for src.subject make tgt.subject "QuestionnaireResponse.group-group" : for src.group as vs0 make tgt.item as vt0 then qrGroup(vs0, vt0) "QuestionnaireResponse.group-question" : for src.question as vs0 make tgt.item as vt0 then qrQuestion(vs0, vt0) endgroup group qrQuestion extends BackboneElement input src as source input tgt as target "QuestionnaireResponse.group.question-linkId" : for src.linkId make tgt.linkId // drop title "QuestionnaireResponse.group.question-text" : for src.text make tgt.text "QuestionnaireResponse.group.question-answer" : for src.answer as vs0 make tgt.answer as vt0 then qrAnswer(vs0, vt0) endgroup group qrAnswer extends BackboneElement input src as source input tgt as target "QuestionnaireResponse.group.question.answer-value" : for src.value make tgt.value "QuestionnaireResponse.group.question.answer-group" : for src.group as vs0 make tgt.item as vt0 then qrGroup(vs0, vt0) endgroup
map "http://hl7.org/fhir/StructureMap/QuestionnaireResponse3to2" = "R3 to R2 Conversion for QuestionnaireResponse" uses "http://hl7.org/fhir/StructureDefinition/QuestionnaireResponse" alias QuestionnaireResponse as source uses "http://hl7.org/fhir/DSTU2/StructureDefinition/QuestionnaireResponse" alias QuestionnaireResponseR2 as target imports "http://hl7.org/fhir/StructureMap/*3to2" group for type+types QuestionnaireResponse extends DomainResource input src : QuestionnaireResponse as source input tgt : QuestionnaireResponseR2 as target "QuestionnaireResponse-identifier" : for src.identifier make tgt.identifier "QuestionnaireResponse-questionnaire" : for src.questionnaire make tgt.questionnaire "QuestionnaireResponse-status" : for src.status make tgt.status "QuestionnaireResponse-subject" : for src.subject make tgt.subject "QuestionnaireResponse-author" : for src.author make tgt.author "QuestionnaireResponse-authored" : for src.authored make tgt.authored "QuestionnaireResponse-source" : for src.source make tgt.source "QuestionnaireResponse-encounter" : for src.context make tgt.encounter "QuestionnaireResponse-item" : for src.item as vs0 make tgt.group as vt0 then qrGroup(vs0, vt0) endgroup group qrGroup extends BackboneElement input src as source input tgt as target "QuestionnaireResponse.group-linkId" : for src.linkId make tgt.linkId "QuestionnaireResponse.group-text" : for src.text where item.answer.empty() make tgt.title "QuestionnaireResponse.group-text" : for src.text where item.answer.exists() make tgt.text "QuestionnaireResponse.group-subject" : for src.subject make tgt.subject "QuestionnaireResponse.group-group" : for src.item as vs0 where answer.empty() make tgt.group as vt0 then qrGroup(vs0, vt0) "QuestionnaireResponse.group-question" : for src.item as vs0 where answer.exists() make tgt.question as vt0 then qrQuestion(vs0, vt0) endgroup group qrQuestion extends BackboneElement input src as source input tgt as target "QuestionnaireResponse.group.question-linkId" : for src.linkId make tgt.linkId "QuestionnaireResponse.group.question-text" : for src.text make tgt.text "QuestionnaireResponse.group.question-answer" : for src.answer as vs0 make tgt.answer as vt0 then qrAnswer(vs0, vt0) endgroup group qrAnswer extends BackboneElement input src as source input tgt as target "QuestionnaireResponse.group.question.answer-value" : for src.value make tgt.value "QuestionnaireResponse.group.question.answer-group" : for src.item as vs0 check answer.empty() make tgt.group as vt0 then qrGroup(vs0, vt0) endgroup
3141 |
|
bb |
|
f201 |
|
gcs |
|
questionnaireresponse-sdc-example-ussg-fht-answers |
|
questionnaireresponse-sdc-profile-example |
|