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

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

DeviceUseRequestTransformsR3toR2

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

uses "http://hl7.org/fhir/3.0/DeviceRequest" alias DeviceRequest as source
uses "http://hl7.org/fhir/1.0/DeviceUseRequest" alias DeviceUseRequestR2 as target

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

group DeviceRequest(source src : DeviceRequest, target tgt : DeviceUseRequestR2) extends DomainResource <<type+>> {
  src.status as v check src.status != 'entered-in-error' -> tgt.status = translate(v, 'http://hl7.org/fhir/ConceptMap/DeviceRequest.status-R3toR2', 'code') "DeviceRequest-status";
  src.device -> tgt.device "DeviceRequest-device";
  src.context -> tgt.encounter "DeviceRequest-context";
  src.identifier -> tgt.identifier "DeviceRequest-identifier";
  src.reasonCode -> tgt.indication "DeviceRequest-reasonCode";
  src.note -> tgt.notes "DeviceRequest-notes";
  src.authored -> tgt.orderedOn "DeviceRequest-authored";
  src.subject -> tgt.subject "DeviceRequest-subject";
  src.occurrence -> tgt.timing "DeviceRequest-Timing";
}