This page is part of the FHIR Specification (v3.3.0: R4 Ballot 2). 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
Structured Documents Work Group | Maturity Level: N/A | Ballot Status: Informative | Compartments: Device, Encounter, Patient, Practitioner, RelatedPerson |
R2 : R3 Conversion maps for Composition.
Functional status for this map: 1 test that all execute ok. All tests pass round-trip testing and all r3 resources are valid. (see documentation)
map "http://hl7.org/fhir/StructureMap/Composition2to3" = "R2 to R3 Conversions for Composition" uses "http://hl7.org/fhir/DSTU2/StructureDefinition/Composition" alias CompositionR2 as source uses "http://hl7.org/fhir/StructureDefinition/Composition" alias Composition as target imports "http://hl7.org/fhir/StructureMap/*2to3" group for type+types Composition extends DomainResource input src : CompositionR2 as source input tgt : Composition as target "Composition-identifier" : for src.identifier make tgt.identifier "Composition-date" : for src.date make tgt.date "Composition-type" : for src.type make tgt.type "Composition-class" : for src.class make tgt.class "Composition-title" : for src.title make tgt.title "Composition-status" : for src.status make tgt.status "Composition-confidentiality" : for src.confidentiality make tgt.confidentiality "Composition-subject" : for src.subject make tgt.subject "Composition-author" : for src.author make tgt.author "Composition-attester" : for src.attester as vs0 make tgt.attester as vt0 then cmpAttester(vs0, vt0) "Composition-custodian" : for src.custodian make tgt.custodian "Composition-event" : for src.event as vs0 make tgt.event as vt0 then cmpEvent(vs0, vt0) "Composition-section" : for src.section as vs0 make tgt.section as vt0 then cmpSection(vs0, vt0) "Composition-encounter" : for src.encounter make tgt.encounter endgroup group cmpAttester extends BackboneElement input src as source input tgt as target "Composition.attester-mode" : for src.mode make tgt.mode "Composition.attester-time" : for src.time make tgt.time "Composition.attester-party" : for src.party make tgt.party endgroup group cmpEvent extends BackboneElement input src as source input tgt as target "Composition.event-code" : for src.code make tgt.code "Composition.event-period" : for src.period make tgt.period "Composition.event-detail" : for src.detail make tgt.detail endgroup group cmpSection extends BackboneElement input src as source input tgt as target "Composition.section-title" : for src.title make tgt.title "Composition.section-code" : for src.code make tgt.code "Composition.section-text" : for src.text make tgt.text "Composition.section-mode" : for src.mode make tgt.mode "Composition.section-orderedBy" : for src.orderedBy make tgt.orderedBy "Composition.section-entry" : for src.entry make tgt.entry "Composition.section-emptyReason" : for src.emptyReason make tgt.emptyReason "Composition.section-section" : for src.section as vs0 make tgt.section as vt0 then cmpSection(vs0, vt0) endgroup
map "http://hl7.org/fhir/StructureMap/Composition3to2" = "R3 to R2 Conversion for Composition" uses "http://hl7.org/fhir/StructureDefinition/Composition" alias Composition as source uses "http://hl7.org/fhir/DSTU2/StructureDefinition/Composition" alias CompositionR2 as target imports "http://hl7.org/fhir/StructureMap/*3to2" group for type+types Composition extends DomainResource input src : Composition as source input tgt : CompositionR2 as target "Composition-identifier" : for src.identifier make tgt.identifier "Composition-date" : for src.date make tgt.date "Composition-type" : for src.type make tgt.type "Composition-class" : for src.class make tgt.class "Composition-title" : for src.title make tgt.title "Composition-status" : for src.status make tgt.status "Composition-confidentiality" : for src.confidentiality make tgt.confidentiality "Composition-subject" : for src.subject make tgt.subject "Composition-author" : for src.author make tgt.author "Composition-attester" : for src.attester as vs0 make tgt.attester as vt0 then cmpAttester(vs0, vt0) "Composition-custodian" : for src.custodian make tgt.custodian "Composition-event" : for src.event as vs0 make tgt.event as vt0 then cmpEvent(vs0, vt0) "Composition-section" : for src.section as vs0 make tgt.section as vt0 then cmpSection(vs0, vt0) "Composition-encounter" : for src.encounter make tgt.encounter endgroup group cmpAttester extends BackboneElement input src as source input tgt as target "Composition.attester-mode" : for src.mode make tgt.mode "Composition.attester-time" : for src.time make tgt.time "Composition.attester-party" : for src.party make tgt.party endgroup group cmpEvent extends BackboneElement input src as source input tgt as target "Composition.event-code" : for src.code make tgt.code "Composition.event-period" : for src.period make tgt.period "Composition.event-detail" : for src.detail make tgt.detail endgroup group cmpSection extends BackboneElement input src as source input tgt as target "Composition.section-title" : for src.title make tgt.title "Composition.section-code" : for src.code make tgt.code "Composition.section-text" : for src.text make tgt.text "Composition.section-mode" : for src.mode make tgt.mode "Composition.section-orderedBy" : for src.orderedBy make tgt.orderedBy "Composition.section-entry" : for src.entry make tgt.entry "Composition.section-emptyReason" : for src.emptyReason make tgt.emptyReason "Composition.section-section" : for src.section as vs0 make tgt.section as vt0 then cmpSection(vs0, vt0) endgroup