This page is part of the FHIR Core Extensions Registry (v1.0.0: Releases) based on FHIR v5.0.0. This is the current published version in its permanent home (it will always be available at this URL). For a full list of available versions, see the Directory of published versions
Page standards status: Trial-use | Maturity Level: 1 |
{
"resourceType" : "StructureMap",
"id" : "List5to4B",
"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/List5to4B'</span>\r\n<span style=\"color: #cc00cc\">/// <b>name</b> = </span><span style=\"color: blue\">'List5to4B'</span>\r\n<span style=\"color: #cc00cc\">/// <b>title</b> = </span><span style=\"color: blue\">'FML Conversion for List: R5 to R4B'</span>\r\n<span style=\"color: #cc00cc\">/// <b>status</b> = </span><span style=\"color: blue\">'draft'</span>\r\n\r\n<b>conceptmap</b><span style=\"color: navy\"> "</span>ListMode<span style=\"color: navy\">" {\r\n</span><b> prefix </b>s<span style=\"color: navy\"> = "</span><a href=\"http://hl7.org/fhir/R5/codesystem-list-mode.html\" title=\"List Mode\">http://hl7.org/fhir/list-mode</a><span style=\"color: navy\">"\r\n</span><b> prefix </b>t<span style=\"color: navy\"> = "</span><a href=\"http://hl7.org/fhir/R4B/codesystem-list-mode.html\" title=\"ListMode\">http://hl7.org/fhir/4.3/list-mode</a><span style=\"color: navy\">"\r\n</span>\r\n s<span style=\"color: navy\">:</span>working <b>-</b> t<span style=\"color: navy\">:</span>working\r\n s<span style=\"color: navy\">:</span>snapshot <b>-</b> t<span style=\"color: navy\">:</span>snapshot\r\n s<span style=\"color: navy\">:</span>changes <b>-</b> t<span style=\"color: navy\">:</span>changes\r\n<span style=\"color: navy\">}\r\n\r\n</span><b>conceptmap</b><span style=\"color: navy\"> "</span>ListStatus<span style=\"color: navy\">" {\r\n</span><b> prefix </b>s<span style=\"color: navy\"> = "</span><a href=\"http://hl7.org/fhir/R5/codesystem-list-status.html\" title=\"List Status\">http://hl7.org/fhir/list-status</a><span style=\"color: navy\">"\r\n</span><b> prefix </b>t<span style=\"color: navy\"> = "</span><a href=\"http://hl7.org/fhir/R4B/codesystem-list-status.html\" title=\"ListStatus\">http://hl7.org/fhir/4.3/list-status</a><span style=\"color: navy\">"\r\n</span>\r\n s<span style=\"color: navy\">:</span>current <b>-</b> t<span style=\"color: navy\">:</span>current\r\n s<span style=\"color: navy\">:</span>retired <b>-</b> t<span style=\"color: navy\">:</span>retired\r\n s<span style=\"color: navy\">:</span>"entered-in-error" <b>-</b> t<span style=\"color: navy\">:</span><span style=\"color: navy\">"</span>entered-in-error<span style=\"color: navy\">"</span>\r\n<span style=\"color: navy\">}\r\n\r\n</span><b>uses</b><span style=\"color: navy\"> "</span><a href=\"http://hl7.org/fhir/R5/list.html\" title=\"List\">http://hl7.org/fhir/StructureDefinition/List</a><span style=\"color: navy\">" </span><b>alias </b>ListR5 <b>as </b><b>source</b>\r\n<b>uses</b><span style=\"color: navy\"> "</span><a href=\"http://hl7.org/fhir/R4B/list.html\" title=\"List\">http://hl7.org/fhir/4.3/StructureDefinition/List</a><span style=\"color: navy\">" </span><b>alias </b>ListR4B <b>as </b><b>target</b>\r\n\r\n<b>imports</b><span style=\"color: navy\"> "</span>http://hl7.org/fhir/StructureMap/*5to4B<span style=\"color: navy\">"\r\n</span>\r\n<b>group </b>List<span style=\"color: navy\">(</span><b>source</b> <span style=\"color: maroon\">src</span><span style=\"color: navy\"> : </span>ListR5, <b>target</b> <span style=\"color: maroon\">tgt</span><span style=\"color: navy\"> : </span>ListR4B<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.status<b> as </b><span style=\"color: maroon\">v</span><span style=\"color: navy\"><b> -> </b></span>tgt.status = <b>translate</b><span style=\"color: navy\">(</span><span style=\"color: maroon\">v</span><span style=\"color: navy\">, </span><span style=\"color: blue\">'#ListStatus'</span><span style=\"color: navy\">, </span><span style=\"color: blue\">'code'</span><span style=\"color: navy\">)</span><span style=\"color: navy\">;</span>\r\n src.mode<b> as </b><span style=\"color: maroon\">v</span><span style=\"color: navy\"><b> -> </b></span>tgt.mode = <b>translate</b><span style=\"color: navy\">(</span><span style=\"color: maroon\">v</span><span style=\"color: navy\">, </span><span style=\"color: blue\">'#ListMode'</span><span style=\"color: navy\">, </span><span style=\"color: blue\">'code'</span><span style=\"color: navy\">)</span><span style=\"color: navy\">;</span>\r\n src.title<span style=\"color: navy\"><b> -> </b></span>tgt.title<span style=\"color: navy\">;</span>\r\n src.code<span style=\"color: navy\"><b> -> </b></span>tgt.code<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.encounter<span style=\"color: navy\"><b> -> </b></span>tgt.encounter<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.source<span style=\"color: navy\"><b> -> </b></span>tgt.source<span style=\"color: navy\">;</span>\r\n src.orderedBy<span style=\"color: navy\"><b> -> </b></span>tgt.orderedBy<span style=\"color: navy\">;</span>\r\n src.note<span style=\"color: navy\"><b> -> </b></span>tgt.note<span style=\"color: navy\">;</span>\r\n src.entry<b> as </b><span style=\"color: maroon\">s</span><span style=\"color: navy\"><b> -> </b></span>tgt.entry<b> as </b><span style=\"color: maroon\">t</span><b> then </b>ListEntry<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.emptyReason<span style=\"color: navy\"><b> -> </b></span>tgt.emptyReason<span style=\"color: navy\">;</span>\r\n<span style=\"color: navy\">}\r\n\r\n</span><b>group </b>ListEntry<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.flag<span style=\"color: navy\"><b> -> </b></span>tgt.flag<span style=\"color: navy\">;</span>\r\n src.deleted<span style=\"color: navy\"><b> -> </b></span>tgt.deleted<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.item<span style=\"color: navy\"><b> -> </b></span>tgt.item<span style=\"color: navy\">;</span>\r\n<span style=\"color: navy\">}\r\n\r\n</span></pre></div>"
},
"contained" : [
{
"resourceType" : "ConceptMap",
"id" : "ListMode",
"status" : "draft",
"group" : [
{
"source" : "http://hl7.org/fhir/list-mode",
"target" : "http://hl7.org/fhir/4.3/list-mode",
"element" : [
{
"code" : "working",
"target" : [
{
"code" : "working",
"relationship" : "related-to"
}
]
},
{
"code" : "snapshot",
"target" : [
{
"code" : "snapshot",
"relationship" : "related-to"
}
]
},
{
"code" : "changes",
"target" : [
{
"code" : "changes",
"relationship" : "related-to"
}
]
}
]
}
]
},
{
"resourceType" : "ConceptMap",
"id" : "ListStatus",
"status" : "draft",
"group" : [
{
"source" : "http://hl7.org/fhir/list-status",
"target" : "http://hl7.org/fhir/4.3/list-status",
"element" : [
{
"code" : "current",
"target" : [
{
"code" : "current",
"relationship" : "related-to"
}
]
},
{
"code" : "retired",
"target" : [
{
"code" : "retired",
"relationship" : "related-to"
}
]
},
{
"code" : "entered-in-error",
"target" : [
{
"code" : "entered-in-error",
"relationship" : "related-to"
}
]
}
]
}
]
}
],
"extension" : [
{
"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.extensions"
}
]
}
},
{
"url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
"valueCode" : "trial-use",
"_valueCode" : {
"extension" : [
{
"url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-conformance-derivedFrom",
"valueCanonical" : "http://hl7.org/fhir/extensions/ImplementationGuide/hl7.fhir.uv.extensions"
}
]
}
}
],
"url" : "http://hl7.org/fhir/StructureMap/List5to4B",
"version" : "1.0.0",
"name" : "List5to4B",
"title" : "FML Conversion for List: R5 to R4B",
"status" : "draft",
"date" : "2023-03-26T08:47:34+11:00",
"publisher" : "HL7 International / FHIR Infrastructure",
"contact" : [
{
"telecom" : [
{
"system" : "url",
"value" : "http://hl7.org/Special/committees/fhir-i"
}
]
}
],
"description" : "FMLConversionforListR5toR4B",
"jurisdiction" : [
{
"coding" : [
{
"system" : "http://unstats.un.org/unsd/methods/m49/m49.htm",
"code" : "001"
}
]
}
],
"structure" : [
{
"url" : "http://hl7.org/fhir/StructureDefinition/List",
"mode" : "source",
"alias" : "ListR5"
},
{
"url" : "http://hl7.org/fhir/4.3/StructureDefinition/List",
"mode" : "target",
"alias" : "ListR4B"
}
],
"import" : [
"http://hl7.org/fhir/StructureMap/*5to4B"
],
"group" : [
{
"name" : "List",
"extends" : "DomainResource",
"typeMode" : "type-and-types",
"input" : [
{
"name" : "src",
"type" : "ListR5",
"mode" : "source"
},
{
"name" : "tgt",
"type" : "ListR4B",
"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" : "status",
"source" : [
{
"context" : "src",
"element" : "status",
"variable" : "v"
}
],
"target" : [
{
"context" : "tgt",
"element" : "status",
"transform" : "translate",
"parameter" : [
{
"valueId" : "v"
},
{
"valueString" : "#ListStatus"
},
{
"valueString" : "code"
}
]
}
]
},
{
"name" : "mode",
"source" : [
{
"context" : "src",
"element" : "mode",
"variable" : "v"
}
],
"target" : [
{
"context" : "tgt",
"element" : "mode",
"transform" : "translate",
"parameter" : [
{
"valueId" : "v"
},
{
"valueString" : "#ListMode"
},
{
"valueString" : "code"
}
]
}
]
},
{
"name" : "title",
"source" : [
{
"context" : "src",
"element" : "title",
"variable" : "vvv"
}
],
"target" : [
{
"context" : "tgt",
"element" : "title",
"variable" : "vvv",
"transform" : "create"
}
],
"dependent" : [
{
"name" : "DefaultMappingGroupAnonymousAlias",
"parameter" : [
{
"valueId" : "vvv"
},
{
"valueId" : "vvv"
}
]
}
]
},
{
"name" : "code",
"source" : [
{
"context" : "src",
"element" : "code",
"variable" : "vvv"
}
],
"target" : [
{
"context" : "tgt",
"element" : "code",
"variable" : "vvv",
"transform" : "create"
}
],
"dependent" : [
{
"name" : "DefaultMappingGroupAnonymousAlias",
"parameter" : [
{
"valueId" : "vvv"
},
{
"valueId" : "vvv"
}
]
}
]
},
{
"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" : "encounter",
"source" : [
{
"context" : "src",
"element" : "encounter",
"variable" : "vvv"
}
],
"target" : [
{
"context" : "tgt",
"element" : "encounter",
"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" : "source",
"source" : [
{
"context" : "src",
"element" : "source",
"variable" : "vvv"
}
],
"target" : [
{
"context" : "tgt",
"element" : "source",
"variable" : "vvv",
"transform" : "create"
}
],
"dependent" : [
{
"name" : "DefaultMappingGroupAnonymousAlias",
"parameter" : [
{
"valueId" : "vvv"
},
{
"valueId" : "vvv"
}
]
}
]
},
{
"name" : "orderedBy",
"source" : [
{
"context" : "src",
"element" : "orderedBy",
"variable" : "vvv"
}
],
"target" : [
{
"context" : "tgt",
"element" : "orderedBy",
"variable" : "vvv",
"transform" : "create"
}
],
"dependent" : [
{
"name" : "DefaultMappingGroupAnonymousAlias",
"parameter" : [
{
"valueId" : "vvv"
},
{
"valueId" : "vvv"
}
]
}
]
},
{
"name" : "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" : "entry",
"source" : [
{
"context" : "src",
"element" : "entry",
"variable" : "s"
}
],
"target" : [
{
"context" : "tgt",
"element" : "entry",
"variable" : "t"
}
],
"dependent" : [
{
"name" : "ListEntry",
"parameter" : [
{
"valueId" : "s"
},
{
"valueId" : "t"
}
]
}
]
},
{
"name" : "emptyReason",
"source" : [
{
"context" : "src",
"element" : "emptyReason",
"variable" : "vvv"
}
],
"target" : [
{
"context" : "tgt",
"element" : "emptyReason",
"variable" : "vvv",
"transform" : "create"
}
],
"dependent" : [
{
"name" : "DefaultMappingGroupAnonymousAlias",
"parameter" : [
{
"valueId" : "vvv"
},
{
"valueId" : "vvv"
}
]
}
]
}
]
},
{
"name" : "ListEntry",
"extends" : "BackboneElement",
"input" : [
{
"name" : "src",
"mode" : "source"
},
{
"name" : "tgt",
"mode" : "target"
}
],
"rule" : [
{
"name" : "flag",
"source" : [
{
"context" : "src",
"element" : "flag",
"variable" : "vvv"
}
],
"target" : [
{
"context" : "tgt",
"element" : "flag",
"variable" : "vvv",
"transform" : "create"
}
],
"dependent" : [
{
"name" : "DefaultMappingGroupAnonymousAlias",
"parameter" : [
{
"valueId" : "vvv"
},
{
"valueId" : "vvv"
}
]
}
]
},
{
"name" : "deleted",
"source" : [
{
"context" : "src",
"element" : "deleted",
"variable" : "vvv"
}
],
"target" : [
{
"context" : "tgt",
"element" : "deleted",
"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" : "item",
"source" : [
{
"context" : "src",
"element" : "item",
"variable" : "vvv"
}
],
"target" : [
{
"context" : "tgt",
"element" : "item",
"variable" : "vvv",
"transform" : "create"
}
],
"dependent" : [
{
"name" : "DefaultMappingGroupAnonymousAlias",
"parameter" : [
{
"valueId" : "vvv"
},
{
"valueId" : "vvv"
}
]
}
]
}
]
}
]
}
IG © 2022+ HL7 International / FHIR Infrastructure. Package hl7.fhir.uv.extensions#1.0.0 based on FHIR 5.0.0. Generated 2023-03-26
Links: Table of Contents |
QA Report
| Version History |
|
Propose a change