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: CommunicationRequest Transforms: R3 to R2

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

CommunicationRequestTransformsR3toR2

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

uses "http://hl7.org/fhir/3.0/CommunicationRequest" alias CommunicationRequest as source
uses "http://hl7.org/fhir/1.0/CommunicationRequest" alias CommunicationRequestR2 as target

imports "http://hl7.org/fhir/StructureMap/*3to2"

group CommunicationRequest(source src : CommunicationRequest, target tgt : CommunicationRequestR2) extends DomainResource <<type+>> {
  src.identifier -> tgt.identifier "CommunicationRequest-identifier";
  src.category -> tgt.category "CommunicationRequest-category";
  src.sender -> tgt.sender "CommunicationRequest-sender";
  src.recipient -> tgt.recipient "CommunicationRequest-recipient";
  src.payload as vs0 -> tgt.payload as vt0 then cmrPayload(vs0, vt0) "CommunicationRequest-payload";
  src.medium -> tgt.medium "CommunicationRequest-medium";
  src.requester -> tgt.requester "CommunicationRequest-requester";
  src.status -> tgt.status "CommunicationRequest-status";
  src.context -> tgt.encounter "CommunicationRequest-context";
  src.occurrence -> tgt.scheduled "CommunicationRequest-scheduled";
  src.reasonCode -> tgt.reason "CommunicationRequest-reason";
  src.authoredOn -> tgt.requestedOn "CommunicationRequest-requestedOn";
  src.subject -> tgt.subject "CommunicationRequest-subject";
  src.priority -> tgt.priority "CommunicationRequest-priority";
}

group cmrPayload(source src, target tgt) {
  vs0.content -> vt0.content "payload-content";
}