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: RequestOrchestration Transforms: R4B to R5

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

RequestOrchestrationTransformsR4BtoR5

/// url = 'http://hl7.org/fhir/StructureMap/RequestOrchestration4Bto5'
/// name = 'RequestOrchestration4Bto5'
/// title = 'RequestOrchestration Transforms: R4B to R5'
/// status = 'active'

uses "http://hl7.org/fhir/4.3/RequestGroup" alias RequestGroupR4B as source
uses "http://hl7.org/fhir/5.0/RequestOrchestration" alias RequestOrchestrationR5 as target

imports "http://hl7.org/fhir/StructureMap/*4Bto5"

group RequestOrchestration(source src : RequestGroupR4B, target tgt : RequestOrchestrationR5) extends DomainResource <<type+>> {
  src.identifier -> tgt.identifier;
  src.instantiatesCanonical -> tgt.instantiatesCanonical;
  src.instantiatesUri -> tgt.instantiatesUri;
  src.basedOn -> tgt.basedOn;
  src.replaces -> tgt.replaces;
  src.groupIdentifier -> tgt.groupIdentifier;
  src.status as v -> tgt.status = translate(v, 'http://hl7.org/fhir/ConceptMap/RequestGroupB.status-R4BtoR5', 'code');
  src.intent as v -> tgt.intent = translate(v, 'http://hl7.org/fhir/ConceptMap/RequestGroupB.intent-R4BtoR5', 'code');
  src.priority as v -> tgt.priority = translate(v, 'http://hl7.org/fhir/ConceptMap/RequestGroupB.priority-R4BtoR5', 'code');
  src.code -> tgt.code;
  src.subject -> tgt.subject;
  src.encounter -> tgt.encounter;
  src.authoredOn -> tgt.authoredOn;
  src.author -> tgt.author;
  src.reasonCode : CodeableConcept -> tgt.reason;
  src.reasonReference : Reference -> tgt.reason;
  src.note -> tgt.note;
  src.action as s -> tgt.action as t then RequestOrchestrationAction(s, t);
}

group RequestOrchestrationAction(source src, target tgt) extends BackboneElement {
  src.prefix -> tgt.prefix;
  src.title -> tgt.title;
  src.description -> tgt.description;
  src.textEquivalent -> tgt.textEquivalent;
  src.priority as v -> tgt.priority = translate(v, 'http://hl7.org/fhir/ConceptMap/RequestGroupB.action.priority-R4BtoR5', 'code');
  src.code -> tgt.code;
  src.documentation -> tgt.documentation;
  src.condition as s -> tgt.condition as t then RequestOrchestrationActionCondition(s, t);
  src.relatedAction as s -> tgt.relatedAction as t then RequestOrchestrationActionRelatedAction(s, t);
  src.timing : dateTime -> tgt.timing;
  src.timing : Age -> tgt.timing;
  src.timing : Period -> tgt.timing;
  src.timing : Duration -> tgt.timing;
  src.timing : Range -> tgt.timing;
  src.timing : Timing -> tgt.timing;
  src.participant : Reference as s ->  tgt.participant as t,  t.actor = s;
  src.type -> tgt.type;
  src.groupingBehavior as v -> tgt.groupingBehavior = translate(v, 'http://hl7.org/fhir/ConceptMap/RequestGroupB.action.groupingBehavior-R4BtoR5', 'code');
  src.selectionBehavior as v -> tgt.selectionBehavior = translate(v, 'http://hl7.org/fhir/ConceptMap/RequestGroupB.action.selectionBehavior-R4BtoR5', 'code');
  src.requiredBehavior as v -> tgt.requiredBehavior = translate(v, 'http://hl7.org/fhir/ConceptMap/RequestGroupB.action.requiredBehavior-R4BtoR5', 'code');
  src.precheckBehavior as v -> tgt.precheckBehavior = translate(v, 'http://hl7.org/fhir/ConceptMap/RequestGroupB.action.precheckBehavior-R4BtoR5', 'code');
  src.cardinalityBehavior as v -> tgt.cardinalityBehavior = translate(v, 'http://hl7.org/fhir/ConceptMap/RequestGroupB.action.cardinalityBehavior-R4BtoR5', 'code');
  src.resource -> tgt.resource;
}

group RequestOrchestrationActionCondition(source src, target tgt) extends BackboneElement {
  src.kind as v -> tgt.kind = translate(v, 'http://hl7.org/fhir/ConceptMap/RequestGroupB.action.condition.kind-R4BtoR5', 'code');
  src.expression -> tgt.expression;
}

// group RequestOrchestrationActionInput(source src, target tgt) extends BackboneElement {
// src.title -> tgt.title;
// src.requirement -> tgt.requirement;
// src.relatedData -> tgt.relatedData;
// }
// group RequestOrchestrationActionOutput(source src, target tgt) extends BackboneElement {
// src.title -> tgt.title;
// src.requirement -> tgt.requirement;
// src.relatedData -> tgt.relatedData;
// }
group RequestOrchestrationActionRelatedAction(source src, target tgt) extends BackboneElement {
  src.actionId -> tgt.targetId;
  src.relationship as v -> tgt.relationship = translate(v, 'http://hl7.org/fhir/ConceptMap/RequestGroupB.action.relatedAction.relationship-R4BtoR5', 'code');
  src.offset : Duration -> tgt.offset;
  src.offset : Range -> tgt.offset;
}