This page is part of the FHIR Core Extensions Registry (v5.1.0: Release 5.1) based on FHIR (HL7® FHIR® Standard) v5.0.0. This is the current published version. For a full list of available versions, see the Directory of published versions
Page standards status: Trial-use | Maturity Level: 1 |
{
"resourceType" : "StructureMap",
"id" : "NamingSystem5to4",
"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/NamingSystem5to4'</span>\r\n<span style=\"color: #cc00cc\">/// <b>name</b> = </span><span style=\"color: blue\">'NamingSystem5to4'</span>\r\n<span style=\"color: #cc00cc\">/// <b>title</b> = </span><span style=\"color: blue\">'FML Conversion for NamingSystem: R5 to R4'</span>\r\n<span style=\"color: #cc00cc\">/// <b>status</b> = </span><span style=\"color: blue\">'active'</span>\r\n\r\n<b>conceptmap</b><span style=\"color: navy\"> "</span>NamingSystemIdentifierType<span style=\"color: navy\">" {\r\n</span><b> prefix </b>s<span style=\"color: navy\"> = "</span><a href=\"http://hl7.org/fhir/R5/codesystem-namingsystem-identifier-type.html\" title=\"Naming System Identifier Type\">http://hl7.org/fhir/namingsystem-identifier-type</a><span style=\"color: navy\">"\r\n</span><b> prefix </b>t<span style=\"color: navy\"> = "</span><a href=\"http://hl7.org/fhir/R4/codesystem-namingsystem-identifier-type.html\" title=\"NamingSystemIdentifierType\">http://hl7.org/fhir/4.0/namingsystem-identifier-type</a><span style=\"color: navy\">"\r\n</span>\r\n s<span style=\"color: navy\">:</span>oid <b>-</b> t<span style=\"color: navy\">:</span>oid\r\n s<span style=\"color: navy\">:</span>uuid <b>-</b> t<span style=\"color: navy\">:</span>uuid\r\n s<span style=\"color: navy\">:</span>uri <b>-</b> t<span style=\"color: navy\">:</span>uri\r\n s<span style=\"color: navy\">:</span>other <b>-</b> t<span style=\"color: navy\">:</span>other\r\n<span style=\"color: navy\">}\r\n\r\n</span><b>conceptmap</b><span style=\"color: navy\"> "</span>NamingSystemType<span style=\"color: navy\">" {\r\n</span><b> prefix </b>s<span style=\"color: navy\"> = "</span><a href=\"http://hl7.org/fhir/R5/codesystem-namingsystem-type.html\" title=\"Naming System Type\">http://hl7.org/fhir/namingsystem-type</a><span style=\"color: navy\">"\r\n</span><b> prefix </b>t<span style=\"color: navy\"> = "</span><a href=\"http://hl7.org/fhir/R4/codesystem-namingsystem-type.html\" title=\"NamingSystemType\">http://hl7.org/fhir/4.0/namingsystem-type</a><span style=\"color: navy\">"\r\n</span>\r\n s<span style=\"color: navy\">:</span>codesystem <b>-</b> t<span style=\"color: navy\">:</span>codesystem\r\n s<span style=\"color: navy\">:</span>identifier <b>-</b> t<span style=\"color: navy\">:</span>identifier\r\n s<span style=\"color: navy\">:</span>root <b>-</b> t<span style=\"color: navy\">:</span>root\r\n<span style=\"color: navy\">}\r\n\r\n</span><b>conceptmap</b><span style=\"color: navy\"> "</span>PublicationStatus<span style=\"color: navy\">" {\r\n</span><b> prefix </b>s<span style=\"color: navy\"> = "</span><a href=\"http://hl7.org/fhir/R5/codesystem-publication-status.html\" title=\"PublicationStatus\">http://hl7.org/fhir/publication-status</a><span style=\"color: navy\">"\r\n</span><b> prefix </b>t<span style=\"color: navy\"> = "</span><a href=\"http://hl7.org/fhir/R4/codesystem-publication-status.html\" title=\"PublicationStatus\">http://hl7.org/fhir/4.0/publication-status</a><span style=\"color: navy\">"\r\n</span>\r\n s<span style=\"color: navy\">:</span>draft <b>-</b> t<span style=\"color: navy\">:</span>draft\r\n s<span style=\"color: navy\">:</span>active <b>-</b> t<span style=\"color: navy\">:</span>active\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>unknown <b>-</b> t<span style=\"color: navy\">:</span>unknown\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/namingsystem.html\" title=\"NamingSystem\">http://hl7.org/fhir/StructureDefinition/NamingSystem</a><span style=\"color: navy\">" </span><b>alias </b>NamingSystemR5 <b>as </b><b>source</b>\r\n<b>uses</b><span style=\"color: navy\"> "</span><a href=\"http://hl7.org/fhir/R4/namingsystem.html\" title=\"NamingSystem\">http://hl7.org/fhir/4.0/StructureDefinition/NamingSystem</a><span style=\"color: navy\">" </span><b>alias </b>NamingSystemR4 <b>as </b><b>target</b>\r\n\r\n<b>imports</b><span style=\"color: navy\"> "</span>http://hl7.org/fhir/StructureMap/*5to4<span style=\"color: navy\">"\r\n</span>\r\n<b>group </b>NamingSystem<span style=\"color: navy\">(</span><b>source</b> <span style=\"color: maroon\">src</span><span style=\"color: navy\"> : </span>NamingSystemR5, <b>target</b> <span style=\"color: maroon\">tgt</span><span style=\"color: navy\"> : </span>NamingSystemR4<span style=\"color: navy\">)</span><b> extends </b>DomainResource<b> <<type+>></b><span style=\"color: navy\"> {\r\n</span> src.name<span style=\"color: navy\"><b> -> </b></span>tgt.name<span style=\"color: navy\">;</span> <span style=\"color: navy\">// </span><span style=\"color: green\">src.url -> tgt.url;</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\">'#PublicationStatus'</span><span style=\"color: navy\">, </span><span style=\"color: blue\">'code'</span><span style=\"color: navy\">)</span><span style=\"color: navy\">;</span> <span style=\"color: navy\">// </span><span style=\"color: green\">src.title -> tgt.title;</span>\r\n src.kind<b> as </b><span style=\"color: maroon\">v</span><span style=\"color: navy\"><b> -> </b></span>tgt.kind = <b>translate</b><span style=\"color: navy\">(</span><span style=\"color: maroon\">v</span><span style=\"color: navy\">, </span><span style=\"color: blue\">'#NamingSystemType'</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.date<span style=\"color: navy\"><b> -> </b></span>tgt.date<span style=\"color: navy\">;</span> <span style=\"color: navy\">// </span><span style=\"color: green\">src.experimental -> tgt.experimental;</span>\r\n src.publisher<span style=\"color: navy\"><b> -> </b></span>tgt.publisher<span style=\"color: navy\">;</span>\r\n src.contact<span style=\"color: navy\"><b> -> </b></span>tgt.contact<span style=\"color: navy\">;</span>\r\n src.responsible<span style=\"color: navy\"><b> -> </b></span>tgt.responsible<span style=\"color: navy\">;</span>\r\n src.type<span style=\"color: navy\"><b> -> </b></span>tgt.type<span style=\"color: navy\">;</span>\r\n src.description<span style=\"color: navy\"><b> -> </b></span>tgt.description<span style=\"color: navy\">;</span>\r\n src.useContext<span style=\"color: navy\"><b> -> </b></span>tgt.useContext<span style=\"color: navy\">;</span>\r\n src.jurisdiction<span style=\"color: navy\"><b> -> </b></span>tgt.jurisdiction<span style=\"color: navy\">;</span>\r\n src.usage<span style=\"color: navy\"><b> -> </b></span>tgt.usage<span style=\"color: navy\">;</span> <span style=\"color: navy\">// </span><span style=\"color: green\">src.purpose -> tgt.purpose;</span>\r\n src.uniqueId<b> as </b><span style=\"color: maroon\">s</span><span style=\"color: navy\"><b> -> </b></span>tgt.uniqueId<b> as </b><span style=\"color: maroon\">t</span><b> then </b>NamingSystemUniqueId<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>NamingSystemUniqueId<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.type<b> as </b><span style=\"color: maroon\">v</span><span style=\"color: navy\"><b> -> </b></span>tgt.type = <b>translate</b><span style=\"color: navy\">(</span><span style=\"color: maroon\">v</span><span style=\"color: navy\">, </span><span style=\"color: blue\">'#NamingSystemIdentifierType'</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.value<span style=\"color: navy\"><b> -> </b></span>tgt.value<span style=\"color: navy\">;</span>\r\n src.preferred<span style=\"color: navy\"><b> -> </b></span>tgt.preferred<span style=\"color: navy\">;</span>\r\n src.comment<span style=\"color: navy\"><b> -> </b></span>tgt.comment<span style=\"color: navy\">;</span>\r\n src.period<span style=\"color: navy\"><b> -> </b></span>tgt.period<span style=\"color: navy\">;</span>\r\n<span style=\"color: navy\">}\r\n\r\n</span></pre></div>"
},
"contained" : [
{
"resourceType" : "ConceptMap",
"id" : "NamingSystemIdentifierType",
"status" : "active",
"group" : [
{
"source" : "http://hl7.org/fhir/namingsystem-identifier-type",
"target" : "http://hl7.org/fhir/4.0/namingsystem-identifier-type",
"element" : [
{
"code" : "oid",
"target" : [
{
"code" : "oid",
"relationship" : "related-to"
}
]
},
{
"code" : "uuid",
"target" : [
{
"code" : "uuid",
"relationship" : "related-to"
}
]
},
{
"code" : "uri",
"target" : [
{
"code" : "uri",
"relationship" : "related-to",
"comment" : "s:\"iri-stem\" - t:\"iri-stem\""
}
]
},
{
"code" : "other",
"target" : [
{
"code" : "other",
"relationship" : "related-to"
}
]
}
]
}
]
},
{
"resourceType" : "ConceptMap",
"id" : "NamingSystemType",
"status" : "active",
"group" : [
{
"source" : "http://hl7.org/fhir/namingsystem-type",
"target" : "http://hl7.org/fhir/4.0/namingsystem-type",
"element" : [
{
"code" : "codesystem",
"target" : [
{
"code" : "codesystem",
"relationship" : "related-to"
}
]
},
{
"code" : "identifier",
"target" : [
{
"code" : "identifier",
"relationship" : "related-to"
}
]
},
{
"code" : "root",
"target" : [
{
"code" : "root",
"relationship" : "related-to"
}
]
}
]
}
]
},
{
"resourceType" : "ConceptMap",
"id" : "PublicationStatus",
"status" : "active",
"group" : [
{
"source" : "http://hl7.org/fhir/publication-status",
"target" : "http://hl7.org/fhir/4.0/publication-status",
"element" : [
{
"code" : "draft",
"target" : [
{
"code" : "draft",
"relationship" : "related-to"
}
]
},
{
"code" : "active",
"target" : [
{
"code" : "active",
"relationship" : "related-to"
}
]
},
{
"code" : "retired",
"target" : [
{
"code" : "retired",
"relationship" : "related-to"
}
]
},
{
"code" : "unknown",
"target" : [
{
"code" : "unknown",
"relationship" : "related-to"
}
]
}
]
}
]
}
],
"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.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/NamingSystem5to4",
"version" : "5.1.0",
"name" : "NamingSystem5to4",
"title" : "FML Conversion for NamingSystem: R5 to R4",
"status" : "active",
"date" : "2024-04-27T18:54:50+10:00",
"publisher" : "HL7 International / FHIR Infrastructure",
"contact" : [
{
"telecom" : [
{
"system" : "url",
"value" : "http://www.hl7.org/Special/committees/fiwg"
}
]
}
],
"description" : "FMLConversionforNamingSystemR5toR4",
"jurisdiction" : [
{
"coding" : [
{
"system" : "http://unstats.un.org/unsd/methods/m49/m49.htm",
"code" : "001"
}
]
}
],
"structure" : [
{
"url" : "http://hl7.org/fhir/StructureDefinition/NamingSystem",
"mode" : "source",
"alias" : "NamingSystemR5"
},
{
"url" : "http://hl7.org/fhir/4.0/StructureDefinition/NamingSystem",
"mode" : "target",
"alias" : "NamingSystemR4"
}
],
"import" : [
"http://hl7.org/fhir/StructureMap/*5to4"
],
"group" : [
{
"name" : "NamingSystem",
"extends" : "DomainResource",
"typeMode" : "type-and-types",
"input" : [
{
"name" : "src",
"type" : "NamingSystemR5",
"mode" : "source"
},
{
"name" : "tgt",
"type" : "NamingSystemR4",
"mode" : "target"
}
],
"rule" : [
{
"name" : "name",
"source" : [
{
"context" : "src",
"element" : "name",
"variable" : "vvv"
}
],
"target" : [
{
"context" : "tgt",
"element" : "name",
"variable" : "vvv",
"transform" : "create"
}
],
"dependent" : [
{
"name" : "DefaultMappingGroupAnonymousAlias",
"parameter" : [
{
"valueId" : "vvv"
},
{
"valueId" : "vvv"
}
]
}
],
"documentation" : "src.url -> tgt.url;"
},
{
"name" : "status",
"source" : [
{
"context" : "src",
"element" : "status",
"variable" : "v"
}
],
"target" : [
{
"context" : "tgt",
"element" : "status",
"transform" : "translate",
"parameter" : [
{
"valueId" : "v"
},
{
"valueString" : "#PublicationStatus"
},
{
"valueString" : "code"
}
]
}
],
"documentation" : "src.title -> tgt.title;"
},
{
"name" : "kind",
"source" : [
{
"context" : "src",
"element" : "kind",
"variable" : "v"
}
],
"target" : [
{
"context" : "tgt",
"element" : "kind",
"transform" : "translate",
"parameter" : [
{
"valueId" : "v"
},
{
"valueString" : "#NamingSystemType"
},
{
"valueString" : "code"
}
]
}
]
},
{
"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"
}
]
}
],
"documentation" : "src.experimental -> tgt.experimental;"
},
{
"name" : "publisher",
"source" : [
{
"context" : "src",
"element" : "publisher",
"variable" : "vvv"
}
],
"target" : [
{
"context" : "tgt",
"element" : "publisher",
"variable" : "vvv",
"transform" : "create"
}
],
"dependent" : [
{
"name" : "DefaultMappingGroupAnonymousAlias",
"parameter" : [
{
"valueId" : "vvv"
},
{
"valueId" : "vvv"
}
]
}
]
},
{
"name" : "contact",
"source" : [
{
"context" : "src",
"element" : "contact",
"variable" : "vvv"
}
],
"target" : [
{
"context" : "tgt",
"element" : "contact",
"variable" : "vvv",
"transform" : "create"
}
],
"dependent" : [
{
"name" : "DefaultMappingGroupAnonymousAlias",
"parameter" : [
{
"valueId" : "vvv"
},
{
"valueId" : "vvv"
}
]
}
]
},
{
"name" : "responsible",
"source" : [
{
"context" : "src",
"element" : "responsible",
"variable" : "vvv"
}
],
"target" : [
{
"context" : "tgt",
"element" : "responsible",
"variable" : "vvv",
"transform" : "create"
}
],
"dependent" : [
{
"name" : "DefaultMappingGroupAnonymousAlias",
"parameter" : [
{
"valueId" : "vvv"
},
{
"valueId" : "vvv"
}
]
}
]
},
{
"name" : "type",
"source" : [
{
"context" : "src",
"element" : "type",
"variable" : "vvv"
}
],
"target" : [
{
"context" : "tgt",
"element" : "type",
"variable" : "vvv",
"transform" : "create"
}
],
"dependent" : [
{
"name" : "DefaultMappingGroupAnonymousAlias",
"parameter" : [
{
"valueId" : "vvv"
},
{
"valueId" : "vvv"
}
]
}
]
},
{
"name" : "description",
"source" : [
{
"context" : "src",
"element" : "description",
"variable" : "vvv"
}
],
"target" : [
{
"context" : "tgt",
"element" : "description",
"variable" : "vvv",
"transform" : "create"
}
],
"dependent" : [
{
"name" : "DefaultMappingGroupAnonymousAlias",
"parameter" : [
{
"valueId" : "vvv"
},
{
"valueId" : "vvv"
}
]
}
]
},
{
"name" : "useContext",
"source" : [
{
"context" : "src",
"element" : "useContext",
"variable" : "vvv"
}
],
"target" : [
{
"context" : "tgt",
"element" : "useContext",
"variable" : "vvv",
"transform" : "create"
}
],
"dependent" : [
{
"name" : "DefaultMappingGroupAnonymousAlias",
"parameter" : [
{
"valueId" : "vvv"
},
{
"valueId" : "vvv"
}
]
}
]
},
{
"name" : "jurisdiction",
"source" : [
{
"context" : "src",
"element" : "jurisdiction",
"variable" : "vvv"
}
],
"target" : [
{
"context" : "tgt",
"element" : "jurisdiction",
"variable" : "vvv",
"transform" : "create"
}
],
"dependent" : [
{
"name" : "DefaultMappingGroupAnonymousAlias",
"parameter" : [
{
"valueId" : "vvv"
},
{
"valueId" : "vvv"
}
]
}
]
},
{
"name" : "usage",
"source" : [
{
"context" : "src",
"element" : "usage",
"variable" : "vvv"
}
],
"target" : [
{
"context" : "tgt",
"element" : "usage",
"variable" : "vvv",
"transform" : "create"
}
],
"dependent" : [
{
"name" : "DefaultMappingGroupAnonymousAlias",
"parameter" : [
{
"valueId" : "vvv"
},
{
"valueId" : "vvv"
}
]
}
],
"documentation" : "src.purpose -> tgt.purpose;"
},
{
"name" : "uniqueId",
"source" : [
{
"context" : "src",
"element" : "uniqueId",
"variable" : "s"
}
],
"target" : [
{
"context" : "tgt",
"element" : "uniqueId",
"variable" : "t"
}
],
"dependent" : [
{
"name" : "NamingSystemUniqueId",
"parameter" : [
{
"valueId" : "s"
},
{
"valueId" : "t"
}
]
}
]
}
]
},
{
"name" : "NamingSystemUniqueId",
"extends" : "BackboneElement",
"input" : [
{
"name" : "src",
"mode" : "source"
},
{
"name" : "tgt",
"mode" : "target"
}
],
"rule" : [
{
"name" : "type",
"source" : [
{
"context" : "src",
"element" : "type",
"variable" : "v"
}
],
"target" : [
{
"context" : "tgt",
"element" : "type",
"transform" : "translate",
"parameter" : [
{
"valueId" : "v"
},
{
"valueString" : "#NamingSystemIdentifierType"
},
{
"valueString" : "code"
}
]
}
]
},
{
"name" : "value",
"source" : [
{
"context" : "src",
"element" : "value",
"variable" : "vvv"
}
],
"target" : [
{
"context" : "tgt",
"element" : "value",
"variable" : "vvv",
"transform" : "create"
}
],
"dependent" : [
{
"name" : "DefaultMappingGroupAnonymousAlias",
"parameter" : [
{
"valueId" : "vvv"
},
{
"valueId" : "vvv"
}
]
}
]
},
{
"name" : "preferred",
"source" : [
{
"context" : "src",
"element" : "preferred",
"variable" : "vvv"
}
],
"target" : [
{
"context" : "tgt",
"element" : "preferred",
"variable" : "vvv",
"transform" : "create"
}
],
"dependent" : [
{
"name" : "DefaultMappingGroupAnonymousAlias",
"parameter" : [
{
"valueId" : "vvv"
},
{
"valueId" : "vvv"
}
]
}
]
},
{
"name" : "comment",
"source" : [
{
"context" : "src",
"element" : "comment",
"variable" : "vvv"
}
],
"target" : [
{
"context" : "tgt",
"element" : "comment",
"variable" : "vvv",
"transform" : "create"
}
],
"dependent" : [
{
"name" : "DefaultMappingGroupAnonymousAlias",
"parameter" : [
{
"valueId" : "vvv"
},
{
"valueId" : "vvv"
}
]
}
]
},
{
"name" : "period",
"source" : [
{
"context" : "src",
"element" : "period",
"variable" : "vvv"
}
],
"target" : [
{
"context" : "tgt",
"element" : "period",
"variable" : "vvv",
"transform" : "create"
}
],
"dependent" : [
{
"name" : "DefaultMappingGroupAnonymousAlias",
"parameter" : [
{
"valueId" : "vvv"
},
{
"valueId" : "vvv"
}
]
}
]
}
]
}
]
}