FHIR Cross-Version Mapping Pack
0.1.0 - Ballot for Release 5.1.0 International flag

FHIR Cross-Version Mapping Pack, published by HL7 International / FHIR Infrastructure. This guide is not an authorized publication; it is the continuous build for version 0.1.0 built by the FHIR (HL7® FHIR® Standard) CI Build. This version is based on the current content of https://github.com/HL7/fhir-cross-version/ and changes regularly. See the Directory of published versions

StructureMap: Composition Transforms: R2 to R3

Official URL: http://hl7.org/fhir/StructureMap/Composition2to3 Version: 0.1.0
Standards status: Draft Maturity Level: 1 Computable Name: Composition2to3

CompositionTransformsR2toR3

/// url = 'http://hl7.org/fhir/StructureMap/Composition2to3'
/// name = 'Composition2to3'
/// title = 'Composition Transforms: R2 to R3'
/// status = 'active'

uses "http://hl7.org/fhir/1.0/Composition" alias CompositionR2 as source
uses "http://hl7.org/fhir/3.0/Composition" alias Composition as target

imports "http://hl7.org/fhir/StructureMap/*2to3"

group Composition(source src : CompositionR2, target tgt : Composition) extends DomainResource <<type+>> {
  src.identifier -> tgt.identifier "Composition-identifier";
  src.date -> tgt.date "Composition-date";
  src.type -> tgt.type "Composition-type";
  src.class -> tgt.class "Composition-class";
  src.title -> tgt.title "Composition-title";
  src.status -> tgt.status "Composition-status";
  src.confidentiality -> tgt.confidentiality "Composition-confidentiality";
  src.subject -> tgt.subject "Composition-subject";
  src.author -> tgt.author "Composition-author";
  src.attester as vs0 -> tgt.attester as vt0 then cmpAttester(vs0, vt0) "Composition-attester";
  src.custodian -> tgt.custodian "Composition-custodian";
  src.event as vs0 -> tgt.event as vt0 then cmpEvent(vs0, vt0) "Composition-event";
  src.section as vs0 -> tgt.section as vt0 then cmpSection(vs0, vt0) "Composition-section";
  src.encounter -> tgt.encounter "Composition-encounter";
}

group cmpAttester(source src, target tgt) extends BackboneElement {
  src.mode -> tgt.mode "attester-mode";
  src.time -> tgt.time "attester-time";
  src.party -> tgt.party "attester-party";
}

group cmpEvent(source src, target tgt) extends BackboneElement {
  src.code -> tgt.code "event-code";
  src.period -> tgt.period "event-period";
  src.detail -> tgt.detail "event-detail";
}

group cmpSection(source src, target tgt) extends BackboneElement {
  src.title -> tgt.title "section-title";
  src.code -> tgt.code "section-code";
  src.text -> tgt.text "section-text";
  src.mode -> tgt.mode "section-mode";
  src.orderedBy -> tgt.orderedBy "section-orderedBy";
  src.entry -> tgt.entry "section-entry";
  src.emptyReason -> tgt.emptyReason "section-emptyReason";
  src.section as vs0 -> tgt.section as vt0 then cmpSection(vs0, vt0) "section-section";
}