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
Page standards status: Draft | Maturity Level: 1 |
{
"resourceType" : "StructureMap",
"id" : "MedicationAdministration2to3",
"text" : {
"status" : "generated",
"div" : "<div xmlns=\"http://www.w3.org/1999/xhtml\"><pre class=\"fml\">\r\n<span style=\"color: #cc00cc\">/// <b>url</b> = </span><span style=\"color: blue\">'http://hl7.org/fhir/StructureMap/MedicationAdministration2to3'</span>\r\n<span style=\"color: #cc00cc\">/// <b>name</b> = </span><span style=\"color: blue\">'MedicationAdministration2to3'</span>\r\n<span style=\"color: #cc00cc\">/// <b>title</b> = </span><span style=\"color: blue\">'MedicationAdministration Transforms: R2 to R3'</span>\r\n<span style=\"color: #cc00cc\">/// <b>status</b> = </span><span style=\"color: blue\">'active'</span>\r\n\r\n<b>uses</b><span style=\"color: navy\"> "</span>http://hl7.org/fhir/1.0/MedicationAdministration<span style=\"color: navy\">" </span><b>alias </b>MedicationAdministrationR2 <b>as </b><b>source</b>\r\n<b>uses</b><span style=\"color: navy\"> "</span>http://hl7.org/fhir/1.0/MedicationAdministration<span style=\"color: navy\">" </span><b>alias </b>RatioR2 <b>as </b><b>source</b>\r\n<b>uses</b><span style=\"color: navy\"> "</span>http://hl7.org/fhir/3.0/MedicationAdministration<span style=\"color: navy\">" </span><b>alias </b>MedicationAdministration <b>as </b><b>target</b>\r\n\r\n<b>imports</b><span style=\"color: navy\"> "</span>http://hl7.org/fhir/StructureMap/*2to3<span style=\"color: navy\">"\r\n</span>\r\n<b>group </b>MedicationAdministration<span style=\"color: navy\">(</span><b>source</b> <span style=\"color: maroon\">src</span><span style=\"color: navy\"> : </span>MedicationAdministrationR2, <b>target</b> <span style=\"color: maroon\">tgt</span><span style=\"color: navy\"> : </span>MedicationAdministration<span style=\"color: navy\">)</span><b> extends </b>DomainResource<b> <<type+>></b><span style=\"color: navy\"> {\r\n</span> src.identifier<span style=\"color: navy\"><b> -> </b></span>tgt.identifier <i>"MedicationAdministration-identifier"</i><span style=\"color: navy\">;</span>\r\n src.status<span style=\"color: navy\"><b> -> </b></span>tgt.status <i>"MedicationAdministration-status"</i><span style=\"color: navy\">;</span>\r\n src.patient<span style=\"color: navy\"><b> -> </b></span>tgt.subject <i>"MedicationAdministration-patient"</i><span style=\"color: navy\">;</span>\r\n src.practitioner<b> as </b><span style=\"color: maroon\">v</span><span style=\"color: navy\"><b> -> </b></span> tgt.performer<b> as </b><span style=\"color: maroon\">vd</span><span style=\"color: navy\">, </span> vd.actor = <span style=\"color: maroon\">v</span> <i>"MedicationAdministration-practitioner"</i><span style=\"color: navy\">;</span>\r\n src.encounter<span style=\"color: navy\"><b> -> </b></span>tgt.context <i>"MedicationAdministration-encounter"</i><span style=\"color: navy\">;</span>\r\n src.prescription<span style=\"color: navy\"><b> -> </b></span>tgt.prescription <i>"MedicationAdministration-prescription"</i><span style=\"color: navy\">;</span>\r\n src.wasNotGiven<span style=\"color: navy\"><b> -> </b></span>tgt.notGiven <i>"MedicationAdministration-notGiven"</i><span style=\"color: navy\">;</span>\r\n src.reasonNotGiven<span style=\"color: navy\"><b> -> </b></span>tgt.reasonNotGiven <i>"MedicationAdministration-reasonNotGiven"</i><span style=\"color: navy\">;</span>\r\n src.effectiveTime<span style=\"color: navy\"><b> -> </b></span>tgt.effective <i>"MedicationAdministration-effectiveTime"</i><span style=\"color: navy\">;</span>\r\n src.medication<span style=\"color: navy\"><b> -> </b></span>tgt.medication <i>"MedicationAdministration-medication"</i><span style=\"color: navy\">;</span>\r\n src.device<span style=\"color: navy\"><b> -> </b></span>tgt.device <i>"MedicationAdministration-device"</i><span style=\"color: navy\">;</span>\r\n src.note<span style=\"color: navy\"><b> -> </b></span>tgt.note <i>"MedicationAdministration-note"</i><span style=\"color: navy\">;</span>\r\n src.dosage<b> as </b><span style=\"color: maroon\">vs0</span><span style=\"color: navy\"><b> -> </b></span>tgt.dosage<b> as </b><span style=\"color: maroon\">vt0</span><b> then </b>mAdDosage<span style=\"color: navy\">(</span><span style=\"color: maroon\">vs0</span><span style=\"color: navy\">, </span><span style=\"color: maroon\">vt0</span><span style=\"color: navy\">)</span> <i>"MedicationAdministration-dosage"</i><span style=\"color: navy\">;</span>\r\n<span style=\"color: navy\">}\r\n\r\n</span><b>group </b>mAdDosage<span style=\"color: navy\">(</span><b>source</b> <span style=\"color: maroon\">src</span><span style=\"color: navy\"> : </span>MedicationAdministrationR2, <b>target</b> <span style=\"color: maroon\">tgt</span><span style=\"color: navy\"> : </span>MedicationAdministration<span style=\"color: navy\">)</span><b> extends </b>BackboneElement<span style=\"color: navy\"> {\r\n</span> src.text<span style=\"color: navy\"><b> -> </b></span>tgt.text <i>"dosage-text"</i><span style=\"color: navy\">;</span>\r\n src.site<span style=\"color: navy\"><b> -> </b></span>tgt.site <i>"dosage-site"</i><span style=\"color: navy\">;</span>\r\n src.route<span style=\"color: navy\"><b> -> </b></span>tgt.route <i>"dosage-route"</i><span style=\"color: navy\">;</span>\r\n src.method<span style=\"color: navy\"><b> -> </b></span>tgt.method <i>"dosage-method"</i><span style=\"color: navy\">;</span>\r\n src.quantity<span style=\"color: navy\"><b> -> </b></span>tgt.dose <i>"dosage-dose"</i><span style=\"color: navy\">;</span>\r\n src.rate<b> where </b>$this is Ratio<span style=\"color: navy\"><b> -> </b></span>tgt.rate <i>"dosage-rate-Ratio"</i><span style=\"color: navy\">;</span>\r\n<span style=\"color: navy\">}\r\n\r\n</span></pre></div>"
},
"extension" : [
{
"url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg",
"valueCode" : "fhir"
},
{
"url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
"valueInteger" : 1,
"_valueInteger" : {
"extension" : [
{
"url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-conformance-derivedFrom",
"valueCanonical" : "http://hl7.org/fhir/extensions/ImplementationGuide/hl7.fhir.uv.xver"
}
]
}
},
{
"url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
"valueCode" : "draft",
"_valueCode" : {
"extension" : [
{
"url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-conformance-derivedFrom",
"valueCanonical" : "http://hl7.org/fhir/extensions/ImplementationGuide/hl7.fhir.uv.xver"
}
]
}
}
],
"url" : "http://hl7.org/fhir/StructureMap/MedicationAdministration2to3",
"version" : "0.1.0",
"name" : "MedicationAdministration2to3",
"title" : "MedicationAdministration Transforms: R2 to R3",
"status" : "active",
"date" : "2024-02-22T03:16:50+00:00",
"publisher" : "HL7 International / FHIR Infrastructure",
"contact" : [
{
"telecom" : [
{
"system" : "url",
"value" : "http://www.hl7.org/Special/committees/fiwg"
}
]
}
],
"description" : "MedicationAdministrationTransformsR2toR3",
"jurisdiction" : [
{
"coding" : [
{
"system" : "http://unstats.un.org/unsd/methods/m49/m49.htm",
"code" : "001"
}
]
}
],
"structure" : [
{
"url" : "http://hl7.org/fhir/1.0/MedicationAdministration",
"mode" : "source",
"alias" : "MedicationAdministrationR2"
},
{
"url" : "http://hl7.org/fhir/1.0/MedicationAdministration",
"mode" : "source",
"alias" : "RatioR2"
},
{
"url" : "http://hl7.org/fhir/3.0/MedicationAdministration",
"mode" : "target",
"alias" : "MedicationAdministration"
}
],
"import" : [
"http://hl7.org/fhir/StructureMap/*2to3"
],
"group" : [
{
"name" : "MedicationAdministration",
"extends" : "DomainResource",
"typeMode" : "type-and-types",
"input" : [
{
"name" : "src",
"type" : "MedicationAdministrationR2",
"mode" : "source"
},
{
"name" : "tgt",
"type" : "MedicationAdministration",
"mode" : "target"
}
],
"rule" : [
{
"name" : "MedicationAdministration-identifier",
"source" : [
{
"context" : "src",
"element" : "identifier",
"variable" : "vvv"
}
],
"target" : [
{
"context" : "tgt",
"element" : "identifier",
"variable" : "vvv",
"transform" : "create"
}
],
"dependent" : [
{
"name" : "DefaultMappingGroupAnonymousAlias",
"parameter" : [
{
"valueId" : "vvv"
},
{
"valueId" : "vvv"
}
]
}
]
},
{
"name" : "MedicationAdministration-status",
"source" : [
{
"context" : "src",
"element" : "status",
"variable" : "vvv"
}
],
"target" : [
{
"context" : "tgt",
"element" : "status",
"variable" : "vvv",
"transform" : "create"
}
],
"dependent" : [
{
"name" : "DefaultMappingGroupAnonymousAlias",
"parameter" : [
{
"valueId" : "vvv"
},
{
"valueId" : "vvv"
}
]
}
]
},
{
"name" : "MedicationAdministration-patient",
"source" : [
{
"context" : "src",
"element" : "patient",
"variable" : "vvv"
}
],
"target" : [
{
"context" : "tgt",
"element" : "subject",
"variable" : "vvv",
"transform" : "create"
}
],
"dependent" : [
{
"name" : "DefaultMappingGroupAnonymousAlias",
"parameter" : [
{
"valueId" : "vvv"
},
{
"valueId" : "vvv"
}
]
}
]
},
{
"name" : "MedicationAdministration-practitioner",
"source" : [
{
"context" : "src",
"element" : "practitioner",
"variable" : "v"
}
],
"target" : [
{
"context" : "tgt",
"element" : "performer",
"variable" : "vd"
},
{
"context" : "vd",
"element" : "actor",
"transform" : "copy",
"parameter" : [
{
"valueId" : "v"
}
]
}
]
},
{
"name" : "MedicationAdministration-encounter",
"source" : [
{
"context" : "src",
"element" : "encounter",
"variable" : "vvv"
}
],
"target" : [
{
"context" : "tgt",
"element" : "context",
"variable" : "vvv",
"transform" : "create"
}
],
"dependent" : [
{
"name" : "DefaultMappingGroupAnonymousAlias",
"parameter" : [
{
"valueId" : "vvv"
},
{
"valueId" : "vvv"
}
]
}
]
},
{
"name" : "MedicationAdministration-prescription",
"source" : [
{
"context" : "src",
"element" : "prescription",
"variable" : "vvv"
}
],
"target" : [
{
"context" : "tgt",
"element" : "prescription",
"variable" : "vvv",
"transform" : "create"
}
],
"dependent" : [
{
"name" : "DefaultMappingGroupAnonymousAlias",
"parameter" : [
{
"valueId" : "vvv"
},
{
"valueId" : "vvv"
}
]
}
]
},
{
"name" : "MedicationAdministration-notGiven",
"source" : [
{
"context" : "src",
"element" : "wasNotGiven",
"variable" : "vvv"
}
],
"target" : [
{
"context" : "tgt",
"element" : "notGiven",
"variable" : "vvv",
"transform" : "create"
}
],
"dependent" : [
{
"name" : "DefaultMappingGroupAnonymousAlias",
"parameter" : [
{
"valueId" : "vvv"
},
{
"valueId" : "vvv"
}
]
}
]
},
{
"name" : "MedicationAdministration-reasonNotGiven",
"source" : [
{
"context" : "src",
"element" : "reasonNotGiven",
"variable" : "vvv"
}
],
"target" : [
{
"context" : "tgt",
"element" : "reasonNotGiven",
"variable" : "vvv",
"transform" : "create"
}
],
"dependent" : [
{
"name" : "DefaultMappingGroupAnonymousAlias",
"parameter" : [
{
"valueId" : "vvv"
},
{
"valueId" : "vvv"
}
]
}
]
},
{
"name" : "MedicationAdministration-effectiveTime",
"source" : [
{
"context" : "src",
"element" : "effectiveTime",
"variable" : "vvv"
}
],
"target" : [
{
"context" : "tgt",
"element" : "effective",
"variable" : "vvv",
"transform" : "create"
}
],
"dependent" : [
{
"name" : "DefaultMappingGroupAnonymousAlias",
"parameter" : [
{
"valueId" : "vvv"
},
{
"valueId" : "vvv"
}
]
}
]
},
{
"name" : "MedicationAdministration-medication",
"source" : [
{
"context" : "src",
"element" : "medication",
"variable" : "vvv"
}
],
"target" : [
{
"context" : "tgt",
"element" : "medication",
"variable" : "vvv",
"transform" : "create"
}
],
"dependent" : [
{
"name" : "DefaultMappingGroupAnonymousAlias",
"parameter" : [
{
"valueId" : "vvv"
},
{
"valueId" : "vvv"
}
]
}
]
},
{
"name" : "MedicationAdministration-device",
"source" : [
{
"context" : "src",
"element" : "device",
"variable" : "vvv"
}
],
"target" : [
{
"context" : "tgt",
"element" : "device",
"variable" : "vvv",
"transform" : "create"
}
],
"dependent" : [
{
"name" : "DefaultMappingGroupAnonymousAlias",
"parameter" : [
{
"valueId" : "vvv"
},
{
"valueId" : "vvv"
}
]
}
]
},
{
"name" : "MedicationAdministration-note",
"source" : [
{
"context" : "src",
"element" : "note",
"variable" : "vvv"
}
],
"target" : [
{
"context" : "tgt",
"element" : "note",
"variable" : "vvv",
"transform" : "create"
}
],
"dependent" : [
{
"name" : "DefaultMappingGroupAnonymousAlias",
"parameter" : [
{
"valueId" : "vvv"
},
{
"valueId" : "vvv"
}
]
}
]
},
{
"name" : "MedicationAdministration-dosage",
"source" : [
{
"context" : "src",
"element" : "dosage",
"variable" : "vs0"
}
],
"target" : [
{
"context" : "tgt",
"element" : "dosage",
"variable" : "vt0"
}
],
"dependent" : [
{
"name" : "mAdDosage",
"parameter" : [
{
"valueId" : "vs0"
},
{
"valueId" : "vt0"
}
]
}
]
}
]
},
{
"name" : "mAdDosage",
"extends" : "BackboneElement",
"input" : [
{
"name" : "src",
"type" : "MedicationAdministrationR2",
"mode" : "source"
},
{
"name" : "tgt",
"type" : "MedicationAdministration",
"mode" : "target"
}
],
"rule" : [
{
"name" : "dosage-text",
"source" : [
{
"context" : "src",
"element" : "text",
"variable" : "vvv"
}
],
"target" : [
{
"context" : "tgt",
"element" : "text",
"variable" : "vvv",
"transform" : "create"
}
],
"dependent" : [
{
"name" : "DefaultMappingGroupAnonymousAlias",
"parameter" : [
{
"valueId" : "vvv"
},
{
"valueId" : "vvv"
}
]
}
]
},
{
"name" : "dosage-site",
"source" : [
{
"context" : "src",
"element" : "site",
"variable" : "vvv"
}
],
"target" : [
{
"context" : "tgt",
"element" : "site",
"variable" : "vvv",
"transform" : "create"
}
],
"dependent" : [
{
"name" : "DefaultMappingGroupAnonymousAlias",
"parameter" : [
{
"valueId" : "vvv"
},
{
"valueId" : "vvv"
}
]
}
]
},
{
"name" : "dosage-route",
"source" : [
{
"context" : "src",
"element" : "route",
"variable" : "vvv"
}
],
"target" : [
{
"context" : "tgt",
"element" : "route",
"variable" : "vvv",
"transform" : "create"
}
],
"dependent" : [
{
"name" : "DefaultMappingGroupAnonymousAlias",
"parameter" : [
{
"valueId" : "vvv"
},
{
"valueId" : "vvv"
}
]
}
]
},
{
"name" : "dosage-method",
"source" : [
{
"context" : "src",
"element" : "method",
"variable" : "vvv"
}
],
"target" : [
{
"context" : "tgt",
"element" : "method",
"variable" : "vvv",
"transform" : "create"
}
],
"dependent" : [
{
"name" : "DefaultMappingGroupAnonymousAlias",
"parameter" : [
{
"valueId" : "vvv"
},
{
"valueId" : "vvv"
}
]
}
]
},
{
"name" : "dosage-dose",
"source" : [
{
"context" : "src",
"element" : "quantity",
"variable" : "vvv"
}
],
"target" : [
{
"context" : "tgt",
"element" : "dose",
"variable" : "vvv",
"transform" : "create"
}
],
"dependent" : [
{
"name" : "DefaultMappingGroupAnonymousAlias",
"parameter" : [
{
"valueId" : "vvv"
},
{
"valueId" : "vvv"
}
]
}
]
},
{
"name" : "dosage-rate-Ratio",
"source" : [
{
"context" : "src",
"element" : "rate",
"variable" : "vvv",
"condition" : "$this is Ratio"
}
],
"target" : [
{
"context" : "tgt",
"element" : "rate",
"variable" : "vvv",
"transform" : "create"
}
],
"dependent" : [
{
"name" : "DefaultMappingGroupAnonymousAlias",
"parameter" : [
{
"valueId" : "vvv"
},
{
"valueId" : "vvv"
}
]
}
]
}
]
}
]
}