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" : "AdverseEvent3to4",
"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/AdverseEvent3to4'</span>\r\n<span style=\"color: #cc00cc\">/// <b>name</b> = </span><span style=\"color: blue\">'AdverseEvent3to4'</span>\r\n<span style=\"color: #cc00cc\">/// <b>title</b> = </span><span style=\"color: blue\">'AdverseEvent Transforms: R3 to R4'</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/3.0/AdverseEvent<span style=\"color: navy\">" </span><b>alias </b>AdverseEventR3 <b>as </b><b>source</b>\r\n<b>uses</b><span style=\"color: navy\"> "</span>http://hl7.org/fhir/4.0/AdverseEvent<span style=\"color: navy\">" </span><b>alias </b>AdverseEvent <b>as </b><b>target</b>\r\n\r\n<b>imports</b><span style=\"color: navy\"> "</span>http://hl7.org/fhir/StructureMap/*3to4<span style=\"color: navy\">"\r\n</span>\r\n<b>group </b>AdverseEvent<span style=\"color: navy\">(</span><b>source</b> <span style=\"color: maroon\">src</span><span style=\"color: navy\"> : </span>AdverseEventR3, <b>target</b> <span style=\"color: maroon\">tgt</span><span style=\"color: navy\"> : </span>AdverseEvent<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<span style=\"color: navy\">;</span>\r\n src.actuality<span style=\"color: navy\"><b> -> </b></span>tgt.actuality<span style=\"color: navy\">;</span>\r\n src.category<b> as </b><span style=\"color: maroon\">vs</span><span style=\"color: navy\"><b> -> </b></span> tgt.category<b> as </b><span style=\"color: maroon\">vt</span><span style=\"color: navy\">, </span> vt.coding<b> as </b><span style=\"color: maroon\">c</span><span style=\"color: navy\">, </span> c.system = <span style=\"color: blue\">'http://terminology.hl7.org/CodeSystem/adverse-event-category'</span><span style=\"color: navy\">, </span> c.code = <span style=\"color: maroon\">vs</span><span style=\"color: navy\">;</span>\r\n src.type<span style=\"color: navy\"><b> -> </b></span>tgt.event<span style=\"color: navy\">;</span>\r\n src.description<b> as </b><span style=\"color: maroon\">vs</span><b> where </b>src.type.exists().not()<span style=\"color: navy\"><b> -> </b></span> tgt.event<b> as </b><span style=\"color: maroon\">vt</span><span style=\"color: navy\">, </span> vt.text = <span style=\"color: maroon\">vs</span> <i>"use description in leiu of type for event"</i><span style=\"color: navy\">;</span>\r\n src.subject<span style=\"color: navy\"><b> -> </b></span>tgt.subject<span style=\"color: navy\">;</span>\r\n src.date<span style=\"color: navy\"><b> -> </b></span>tgt.date<span style=\"color: navy\">;</span>\r\n src.detected<span style=\"color: navy\"><b> -> </b></span>tgt.detected<span style=\"color: navy\">;</span>\r\n src.recordedDate<span style=\"color: navy\"><b> -> </b></span>tgt.recordedDate<span style=\"color: navy\">;</span>\r\n src.resultingCondition<span style=\"color: navy\"><b> -> </b></span>tgt.resultingCondition<span style=\"color: navy\">;</span>\r\n src.location<span style=\"color: navy\"><b> -> </b></span>tgt.location<span style=\"color: navy\">;</span>\r\n src.seriousness<span style=\"color: navy\"><b> -> </b></span>tgt.seriousness<span style=\"color: navy\">;</span>\r\n src.severity<span style=\"color: navy\"><b> -> </b></span>tgt.severity<span style=\"color: navy\">;</span>\r\n src.outcome<span style=\"color: navy\"><b> -> </b></span>tgt.outcome<span style=\"color: navy\">;</span>\r\n src.recorder<span style=\"color: navy\"><b> -> </b></span>tgt.recorder<span style=\"color: navy\">;</span>\r\n src.contributor<span style=\"color: navy\"><b> -> </b></span>tgt.contributor<span style=\"color: navy\">;</span>\r\n src.suspectEntity<b> as </b><span style=\"color: maroon\">s</span><span style=\"color: navy\"><b> -> </b></span>tgt.suspectEntity<b> as </b><span style=\"color: maroon\">t</span><b> then </b>AdverseEventSuspectEntity<span style=\"color: navy\">(</span><span style=\"color: maroon\">s</span><span style=\"color: navy\">, </span><span style=\"color: maroon\">t</span><span style=\"color: navy\">)</span><span style=\"color: navy\">;</span>\r\n src.subjectMedicalHistory<span style=\"color: navy\"><b> -> </b></span>tgt.subjectMedicalHistory<span style=\"color: navy\">;</span>\r\n src.referenceDocument<span style=\"color: navy\"><b> -> </b></span>tgt.referenceDocument<span style=\"color: navy\">;</span>\r\n src.study<span style=\"color: navy\"><b> -> </b></span>tgt.study<span style=\"color: navy\">;</span>\r\n<span style=\"color: navy\">}\r\n\r\n</span><b>group </b>AdverseEventSuspectEntity<span style=\"color: navy\">(</span><b>source</b> <span style=\"color: maroon\">src</span>, <b>target</b> <span style=\"color: maroon\">tgt</span><span style=\"color: navy\">)</span><b> extends </b>BackboneElement<span style=\"color: navy\"> {\r\n</span> src.instance<span style=\"color: navy\"><b> -> </b></span>tgt.instance<span style=\"color: navy\">;</span>\r\n src.causality<b> as </b><span style=\"color: maroon\">s</span><span style=\"color: navy\"><b> -> </b></span>tgt.causality<b> as </b><span style=\"color: maroon\">t</span><b> then </b>AdverseEventSuspectEntityCausality<span style=\"color: navy\">(</span><span style=\"color: maroon\">s</span><span style=\"color: navy\">, </span><span style=\"color: maroon\">t</span><span style=\"color: navy\">)</span><span style=\"color: navy\">;</span>\r\n<span style=\"color: navy\">}\r\n\r\n</span><b>group </b>AdverseEventSuspectEntityCausality<span style=\"color: navy\">(</span><b>source</b> <span style=\"color: maroon\">src</span>, <b>target</b> <span style=\"color: maroon\">tgt</span><span style=\"color: navy\">)</span><b> extends </b>BackboneElement<span style=\"color: navy\"> {\r\n</span> src.assessment<span style=\"color: navy\"><b> -> </b></span>tgt.assessment<span style=\"color: navy\">;</span>\r\n src.productRelatedness<span style=\"color: navy\"><b> -> </b></span>tgt.productRelatedness<span style=\"color: navy\">;</span>\r\n src.author<span style=\"color: navy\"><b> -> </b></span>tgt.author<span style=\"color: navy\">;</span>\r\n src.method<span style=\"color: navy\"><b> -> </b></span>tgt.method<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/AdverseEvent3to4",
"version" : "0.1.0",
"name" : "AdverseEvent3to4",
"title" : "AdverseEvent Transforms: R3 to R4",
"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" : "AdverseEventTransformsR3toR4",
"jurisdiction" : [
{
"coding" : [
{
"system" : "http://unstats.un.org/unsd/methods/m49/m49.htm",
"code" : "001"
}
]
}
],
"structure" : [
{
"url" : "http://hl7.org/fhir/3.0/AdverseEvent",
"mode" : "source",
"alias" : "AdverseEventR3"
},
{
"url" : "http://hl7.org/fhir/4.0/AdverseEvent",
"mode" : "target",
"alias" : "AdverseEvent"
}
],
"import" : [
"http://hl7.org/fhir/StructureMap/*3to4"
],
"group" : [
{
"name" : "AdverseEvent",
"extends" : "DomainResource",
"typeMode" : "type-and-types",
"input" : [
{
"name" : "src",
"type" : "AdverseEventR3",
"mode" : "source"
},
{
"name" : "tgt",
"type" : "AdverseEvent",
"mode" : "target"
}
],
"rule" : [
{
"name" : "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" : "actuality",
"source" : [
{
"context" : "src",
"element" : "actuality",
"variable" : "vvv"
}
],
"target" : [
{
"context" : "tgt",
"element" : "actuality",
"variable" : "vvv",
"transform" : "create"
}
],
"dependent" : [
{
"name" : "DefaultMappingGroupAnonymousAlias",
"parameter" : [
{
"valueId" : "vvv"
},
{
"valueId" : "vvv"
}
]
}
]
},
{
"name" : "category",
"source" : [
{
"context" : "src",
"element" : "category",
"variable" : "vs"
}
],
"target" : [
{
"context" : "tgt",
"element" : "category",
"variable" : "vt"
},
{
"context" : "vt",
"element" : "coding",
"variable" : "c"
},
{
"context" : "c",
"element" : "system",
"transform" : "copy",
"parameter" : [
{
"valueString" : "http://terminology.hl7.org/CodeSystem/adverse-event-category"
}
]
},
{
"context" : "c",
"element" : "code",
"transform" : "copy",
"parameter" : [
{
"valueId" : "vs"
}
]
}
]
},
{
"name" : "type",
"source" : [
{
"context" : "src",
"element" : "type",
"variable" : "vvv"
}
],
"target" : [
{
"context" : "tgt",
"element" : "event",
"variable" : "vvv",
"transform" : "create"
}
],
"dependent" : [
{
"name" : "DefaultMappingGroupAnonymousAlias",
"parameter" : [
{
"valueId" : "vvv"
},
{
"valueId" : "vvv"
}
]
}
]
},
{
"name" : "use description in leiu of type for event",
"source" : [
{
"context" : "src",
"element" : "description",
"variable" : "vs",
"condition" : "src.type.exists().not()"
}
],
"target" : [
{
"context" : "tgt",
"element" : "event",
"variable" : "vt"
},
{
"context" : "vt",
"element" : "text",
"transform" : "copy",
"parameter" : [
{
"valueId" : "vs"
}
]
}
]
},
{
"name" : "subject",
"source" : [
{
"context" : "src",
"element" : "subject",
"variable" : "vvv"
}
],
"target" : [
{
"context" : "tgt",
"element" : "subject",
"variable" : "vvv",
"transform" : "create"
}
],
"dependent" : [
{
"name" : "DefaultMappingGroupAnonymousAlias",
"parameter" : [
{
"valueId" : "vvv"
},
{
"valueId" : "vvv"
}
]
}
]
},
{
"name" : "date",
"source" : [
{
"context" : "src",
"element" : "date",
"variable" : "vvv"
}
],
"target" : [
{
"context" : "tgt",
"element" : "date",
"variable" : "vvv",
"transform" : "create"
}
],
"dependent" : [
{
"name" : "DefaultMappingGroupAnonymousAlias",
"parameter" : [
{
"valueId" : "vvv"
},
{
"valueId" : "vvv"
}
]
}
]
},
{
"name" : "detected",
"source" : [
{
"context" : "src",
"element" : "detected",
"variable" : "vvv"
}
],
"target" : [
{
"context" : "tgt",
"element" : "detected",
"variable" : "vvv",
"transform" : "create"
}
],
"dependent" : [
{
"name" : "DefaultMappingGroupAnonymousAlias",
"parameter" : [
{
"valueId" : "vvv"
},
{
"valueId" : "vvv"
}
]
}
]
},
{
"name" : "recordedDate",
"source" : [
{
"context" : "src",
"element" : "recordedDate",
"variable" : "vvv"
}
],
"target" : [
{
"context" : "tgt",
"element" : "recordedDate",
"variable" : "vvv",
"transform" : "create"
}
],
"dependent" : [
{
"name" : "DefaultMappingGroupAnonymousAlias",
"parameter" : [
{
"valueId" : "vvv"
},
{
"valueId" : "vvv"
}
]
}
]
},
{
"name" : "resultingCondition",
"source" : [
{
"context" : "src",
"element" : "resultingCondition",
"variable" : "vvv"
}
],
"target" : [
{
"context" : "tgt",
"element" : "resultingCondition",
"variable" : "vvv",
"transform" : "create"
}
],
"dependent" : [
{
"name" : "DefaultMappingGroupAnonymousAlias",
"parameter" : [
{
"valueId" : "vvv"
},
{
"valueId" : "vvv"
}
]
}
]
},
{
"name" : "location",
"source" : [
{
"context" : "src",
"element" : "location",
"variable" : "vvv"
}
],
"target" : [
{
"context" : "tgt",
"element" : "location",
"variable" : "vvv",
"transform" : "create"
}
],
"dependent" : [
{
"name" : "DefaultMappingGroupAnonymousAlias",
"parameter" : [
{
"valueId" : "vvv"
},
{
"valueId" : "vvv"
}
]
}
]
},
{
"name" : "seriousness",
"source" : [
{
"context" : "src",
"element" : "seriousness",
"variable" : "vvv"
}
],
"target" : [
{
"context" : "tgt",
"element" : "seriousness",
"variable" : "vvv",
"transform" : "create"
}
],
"dependent" : [
{
"name" : "DefaultMappingGroupAnonymousAlias",
"parameter" : [
{
"valueId" : "vvv"
},
{
"valueId" : "vvv"
}
]
}
]
},
{
"name" : "severity",
"source" : [
{
"context" : "src",
"element" : "severity",
"variable" : "vvv"
}
],
"target" : [
{
"context" : "tgt",
"element" : "severity",
"variable" : "vvv",
"transform" : "create"
}
],
"dependent" : [
{
"name" : "DefaultMappingGroupAnonymousAlias",
"parameter" : [
{
"valueId" : "vvv"
},
{
"valueId" : "vvv"
}
]
}
]
},
{
"name" : "outcome",
"source" : [
{
"context" : "src",
"element" : "outcome",
"variable" : "vvv"
}
],
"target" : [
{
"context" : "tgt",
"element" : "outcome",
"variable" : "vvv",
"transform" : "create"
}
],
"dependent" : [
{
"name" : "DefaultMappingGroupAnonymousAlias",
"parameter" : [
{
"valueId" : "vvv"
},
{
"valueId" : "vvv"
}
]
}
]
},
{
"name" : "recorder",
"source" : [
{
"context" : "src",
"element" : "recorder",
"variable" : "vvv"
}
],
"target" : [
{
"context" : "tgt",
"element" : "recorder",
"variable" : "vvv",
"transform" : "create"
}
],
"dependent" : [
{
"name" : "DefaultMappingGroupAnonymousAlias",
"parameter" : [
{
"valueId" : "vvv"
},
{
"valueId" : "vvv"
}
]
}
]
},
{
"name" : "contributor",
"source" : [
{
"context" : "src",
"element" : "contributor",
"variable" : "vvv"
}
],
"target" : [
{
"context" : "tgt",
"element" : "contributor",
"variable" : "vvv",
"transform" : "create"
}
],
"dependent" : [
{
"name" : "DefaultMappingGroupAnonymousAlias",
"parameter" : [
{
"valueId" : "vvv"
},
{
"valueId" : "vvv"
}
]
}
]
},
{
"name" : "suspectEntity",
"source" : [
{
"context" : "src",
"element" : "suspectEntity",
"variable" : "s"
}
],
"target" : [
{
"context" : "tgt",
"element" : "suspectEntity",
"variable" : "t"
}
],
"dependent" : [
{
"name" : "AdverseEventSuspectEntity",
"parameter" : [
{
"valueId" : "s"
},
{
"valueId" : "t"
}
]
}
]
},
{
"name" : "subjectMedicalHistory",
"source" : [
{
"context" : "src",
"element" : "subjectMedicalHistory",
"variable" : "vvv"
}
],
"target" : [
{
"context" : "tgt",
"element" : "subjectMedicalHistory",
"variable" : "vvv",
"transform" : "create"
}
],
"dependent" : [
{
"name" : "DefaultMappingGroupAnonymousAlias",
"parameter" : [
{
"valueId" : "vvv"
},
{
"valueId" : "vvv"
}
]
}
]
},
{
"name" : "referenceDocument",
"source" : [
{
"context" : "src",
"element" : "referenceDocument",
"variable" : "vvv"
}
],
"target" : [
{
"context" : "tgt",
"element" : "referenceDocument",
"variable" : "vvv",
"transform" : "create"
}
],
"dependent" : [
{
"name" : "DefaultMappingGroupAnonymousAlias",
"parameter" : [
{
"valueId" : "vvv"
},
{
"valueId" : "vvv"
}
]
}
]
},
{
"name" : "study",
"source" : [
{
"context" : "src",
"element" : "study",
"variable" : "vvv"
}
],
"target" : [
{
"context" : "tgt",
"element" : "study",
"variable" : "vvv",
"transform" : "create"
}
],
"dependent" : [
{
"name" : "DefaultMappingGroupAnonymousAlias",
"parameter" : [
{
"valueId" : "vvv"
},
{
"valueId" : "vvv"
}
]
}
]
}
]
},
{
"name" : "AdverseEventSuspectEntity",
"extends" : "BackboneElement",
"input" : [
{
"name" : "src",
"mode" : "source"
},
{
"name" : "tgt",
"mode" : "target"
}
],
"rule" : [
{
"name" : "instance",
"source" : [
{
"context" : "src",
"element" : "instance",
"variable" : "vvv"
}
],
"target" : [
{
"context" : "tgt",
"element" : "instance",
"variable" : "vvv",
"transform" : "create"
}
],
"dependent" : [
{
"name" : "DefaultMappingGroupAnonymousAlias",
"parameter" : [
{
"valueId" : "vvv"
},
{
"valueId" : "vvv"
}
]
}
]
},
{
"name" : "causality",
"source" : [
{
"context" : "src",
"element" : "causality",
"variable" : "s"
}
],
"target" : [
{
"context" : "tgt",
"element" : "causality",
"variable" : "t"
}
],
"dependent" : [
{
"name" : "AdverseEventSuspectEntityCausality",
"parameter" : [
{
"valueId" : "s"
},
{
"valueId" : "t"
}
]
}
]
}
]
},
{
"name" : "AdverseEventSuspectEntityCausality",
"extends" : "BackboneElement",
"input" : [
{
"name" : "src",
"mode" : "source"
},
{
"name" : "tgt",
"mode" : "target"
}
],
"rule" : [
{
"name" : "assessment",
"source" : [
{
"context" : "src",
"element" : "assessment",
"variable" : "vvv"
}
],
"target" : [
{
"context" : "tgt",
"element" : "assessment",
"variable" : "vvv",
"transform" : "create"
}
],
"dependent" : [
{
"name" : "DefaultMappingGroupAnonymousAlias",
"parameter" : [
{
"valueId" : "vvv"
},
{
"valueId" : "vvv"
}
]
}
]
},
{
"name" : "productRelatedness",
"source" : [
{
"context" : "src",
"element" : "productRelatedness",
"variable" : "vvv"
}
],
"target" : [
{
"context" : "tgt",
"element" : "productRelatedness",
"variable" : "vvv",
"transform" : "create"
}
],
"dependent" : [
{
"name" : "DefaultMappingGroupAnonymousAlias",
"parameter" : [
{
"valueId" : "vvv"
},
{
"valueId" : "vvv"
}
]
}
]
},
{
"name" : "author",
"source" : [
{
"context" : "src",
"element" : "author",
"variable" : "vvv"
}
],
"target" : [
{
"context" : "tgt",
"element" : "author",
"variable" : "vvv",
"transform" : "create"
}
],
"dependent" : [
{
"name" : "DefaultMappingGroupAnonymousAlias",
"parameter" : [
{
"valueId" : "vvv"
},
{
"valueId" : "vvv"
}
]
}
]
},
{
"name" : "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"
}
]
}
]
}
]
}
]
}