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
Official URL: http://hl7.org/fhir/StructureMap/StructureMap5to4B | Version: 0.1.0 | |||
Standards status: Draft | Maturity Level: 1 | Computable Name: StructureMap5to4B |
StructureMapTransformsR5toR4B
/// url = 'http://hl7.org/fhir/StructureMap/StructureMap5to4B' /// name = 'StructureMap5to4B' /// title = 'StructureMap Transforms: R5 to R4B' /// status = 'active' uses "http://hl7.org/fhir/5.0/StructureMap" alias StructureMapR5 as source uses "http://hl7.org/fhir/4.0/StructureMap" alias StructureMapR4B as target imports "http://hl7.org/fhir/StructureMap/*5to4B" group StructureMap(source src : StructureMapR5, target tgt : StructureMapR4B) extends DomainResource <<type+>> { src.url -> tgt.url; src.identifier -> tgt.identifier; src.version -> tgt.version; src.name -> tgt.name; src.title -> tgt.title; src.status as v -> tgt.status = translate(v, 'http://hl7.org/fhir/ConceptMap/StructureMap.status-R5toR4', 'code'); src.experimental -> tgt.experimental; src.date -> tgt.date; src.publisher -> tgt.publisher; src.contact -> tgt.contact; src.description -> tgt.description; src.useContext -> tgt.useContext; src.jurisdiction -> tgt.jurisdiction; src.purpose -> tgt.purpose; src.copyright -> tgt.copyright; src.structure as s -> tgt.structure as t then StructureMapStructure(s, t); src.import -> tgt.import; src.group as s -> tgt.group as t then StructureMapGroup(s, t); } group StructureMapStructure(source src, target tgt) extends BackboneElement { src.url -> tgt.url; src.mode as v -> tgt.mode = translate(v, 'http://hl7.org/fhir/ConceptMap/StructureMap.structure.mode-R5toR4', 'code'); src.alias -> tgt.alias; src.documentation -> tgt.documentation; } group StructureMapGroup(source src, target tgt) extends BackboneElement { src.name -> tgt.name; src.extends -> tgt.extends; src.typeMode as v -> tgt.typeMode = translate(v, 'http://hl7.org/fhir/ConceptMap/StructureMap.group.typeMode-R5toR4', 'code'); src.documentation -> tgt.documentation; src.input as s -> tgt.input as t then StructureMapGroupInput(s, t); src.rule as s -> tgt.rule as t then StructureMapGroupRule(s, t); } group StructureMapGroupInput(source src, target tgt) extends BackboneElement { src.name -> tgt.name; src.type -> tgt.type; src.mode as v -> tgt.mode = translate(v, 'http://hl7.org/fhir/ConceptMap/StructureMap.group.input.mode-R5toR4', 'code'); src.documentation -> tgt.documentation; } group StructureMapGroupRule(source src, target tgt) extends BackboneElement { src.name -> tgt.name; src.source as s -> tgt.source as t then StructureMapGroupRuleSource(s, t); src.target as s -> tgt.target as t then StructureMapGroupRuleTarget(s, t); src.dependent as s -> tgt.dependent as t then StructureMapGroupRuleDependent(s, t); src.documentation -> tgt.documentation; } group StructureMapGroupRuleSource(source src, target tgt) extends BackboneElement { src.context -> tgt.context; src.min -> tgt.min; src.max -> tgt.max; src.type -> tgt.type; src.defaultValue -> tgt.defaultValue; src.element -> tgt.element; src.listMode as v -> tgt.listMode = translate(v, 'http://hl7.org/fhir/ConceptMap/StructureMap.group.rule.source.listMode-R5toR4', 'code'); src.variable -> tgt.variable; src.condition -> tgt.condition; src.check -> tgt.check; src.logMessage -> tgt.logMessage; } group StructureMapGroupRuleTarget(source src, target tgt) extends BackboneElement { src.context -> tgt.context; src.element -> tgt.element; src.variable -> tgt.variable; src.listMode as v -> tgt.listMode = translate(v, 'http://hl7.org/fhir/ConceptMap/StructureMap.group.rule.target.listMode-R5toR4', 'code'); src.listRuleId -> tgt.listRuleId; src.transform as v -> tgt.transform = translate(v, 'http://hl7.org/fhir/ConceptMap/StructureMap.group.rule.target.transform-R5toR4', 'code'); src.parameter as s -> tgt.parameter as t then StructureMapGroupRuleTargetParameter(s, t); } group StructureMapGroupRuleTargetParameter(source src, target tgt) extends BackboneElement { src.value : id -> tgt.value; src.value : string -> tgt.value; src.value : boolean -> tgt.value; src.value : integer -> tgt.value; src.value : decimal -> tgt.value; } group StructureMapGroupRuleDependent(source src, target tgt) extends BackboneElement { src.name -> tgt.name; }