This page is part of the FHIR Core Extensions Registry (v5.1.0-snapshot1: Release 5.1) based on FHIR (HL7® FHIR® Standard) v5.0.0. The current version which supersedes this version is 1.0.0. For a full list of available versions, see the Directory of published versions
Page standards status: Trial-use | Maturity Level: 1 |
<StructureMap xmlns="http://hl7.org/fhir">
<id value="NamingSystem4Bto5"/>
<text>
<status value="generated"/>
<div xmlns="http://www.w3.org/1999/xhtml"><pre class="fml">
<span style="color: #cc00cc">/// <b>url</b> = </span><span style="color: blue">'http://hl7.org/fhir/StructureMap/NamingSystem4Bto5'</span>
<span style="color: #cc00cc">/// <b>name</b> = </span><span style="color: blue">'NamingSystem4Bto5'</span>
<span style="color: #cc00cc">/// <b>title</b> = </span><span style="color: blue">'FML Conversion for NamingSystem: R4B to R5'</span>
<span style="color: #cc00cc">/// <b>status</b> = </span><span style="color: blue">'active'</span>
<b>conceptmap</b><span style="color: navy"> "</span>NamingSystemIdentifierType<span style="color: navy">" {
</span><b> prefix </b>s<span style="color: navy"> = "</span><a href="http://hl7.org/fhir/R4B/codesystem-namingsystem-identifier-type.html" title="NamingSystemIdentifierType">http://hl7.org/fhir/4.3/namingsystem-identifier-type</a><span style="color: navy">"
</span><b> prefix </b>t<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">"
</span>
s<span style="color: navy">:</span>oid <b>-</b> t<span style="color: navy">:</span>oid
s<span style="color: navy">:</span>uuid <b>-</b> t<span style="color: navy">:</span>uuid
s<span style="color: navy">:</span>uri <b>-</b> t<span style="color: navy">:</span>uri
s<span style="color: navy">:</span>other <b>-</b> t<span style="color: navy">:</span>other
<span style="color: navy">}
</span><b>conceptmap</b><span style="color: navy"> "</span>NamingSystemType<span style="color: navy">" {
</span><b> prefix </b>s<span style="color: navy"> = "</span><a href="http://hl7.org/fhir/R4B/codesystem-namingsystem-type.html" title="NamingSystemType">http://hl7.org/fhir/4.3/namingsystem-type</a><span style="color: navy">"
</span><b> prefix </b>t<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">"
</span>
s<span style="color: navy">:</span>codesystem <b>-</b> t<span style="color: navy">:</span>codesystem
s<span style="color: navy">:</span>identifier <b>-</b> t<span style="color: navy">:</span>identifier
s<span style="color: navy">:</span>root <b>-</b> t<span style="color: navy">:</span>root
<span style="color: navy">}
</span><b>conceptmap</b><span style="color: navy"> "</span>PublicationStatus<span style="color: navy">" {
</span><b> prefix </b>s<span style="color: navy"> = "</span><a href="http://hl7.org/fhir/R4B/codesystem-publication-status.html" title="PublicationStatus">http://hl7.org/fhir/4.3/publication-status</a><span style="color: navy">"
</span><b> prefix </b>t<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">"
</span>
s<span style="color: navy">:</span>draft <b>-</b> t<span style="color: navy">:</span>draft
s<span style="color: navy">:</span>active <b>-</b> t<span style="color: navy">:</span>active
s<span style="color: navy">:</span>retired <b>-</b> t<span style="color: navy">:</span>retired
s<span style="color: navy">:</span>unknown <b>-</b> t<span style="color: navy">:</span>unknown
<span style="color: navy">}
</span><b>uses</b><span style="color: navy"> "</span><a href="http://hl7.org/fhir/R4B/namingsystem.html" title="NamingSystem">http://hl7.org/fhir/4.3/StructureDefinition/NamingSystem</a><span style="color: navy">" </span><b>alias </b>NamingSystemR4B <b>as </b><b>source</b>
<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>target</b>
<b>imports</b><span style="color: navy"> "</span>http://hl7.org/fhir/StructureMap/*4Bto5<span style="color: navy">"
</span>
<b>group </b>NamingSystem<span style="color: navy">(</span><b>source</b> <span style="color: maroon">src</span><span style="color: navy"> : </span>NamingSystemR4B, <b>target</b> <span style="color: maroon">tgt</span><span style="color: navy"> : </span>NamingSystemR5<span style="color: navy">)</span><b> extends </b>DomainResource<b> <<type+>></b><span style="color: navy"> {
</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>
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>
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>
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>
src.publisher<span style="color: navy"><b> -> </b></span>tgt.publisher<span style="color: navy">;</span>
src.contact<span style="color: navy"><b> -> </b></span>tgt.contact<span style="color: navy">;</span>
src.responsible<span style="color: navy"><b> -> </b></span>tgt.responsible<span style="color: navy">;</span>
src.type<span style="color: navy"><b> -> </b></span>tgt.type<span style="color: navy">;</span>
src.description<span style="color: navy"><b> -> </b></span>tgt.description<span style="color: navy">;</span>
src.useContext<span style="color: navy"><b> -> </b></span>tgt.useContext<span style="color: navy">;</span>
src.jurisdiction<span style="color: navy"><b> -> </b></span>tgt.jurisdiction<span style="color: navy">;</span>
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>
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>
<span style="color: navy">}
</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"> {
</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>
src.value<span style="color: navy"><b> -> </b></span>tgt.value<span style="color: navy">;</span>
src.preferred<span style="color: navy"><b> -> </b></span>tgt.preferred<span style="color: navy">;</span>
src.comment<span style="color: navy"><b> -> </b></span>tgt.comment<span style="color: navy">;</span>
src.period<span style="color: navy"><b> -> </b></span>tgt.period<span style="color: navy">;</span>
<span style="color: navy">}
</span></pre></div>
</text>
<contained>
<ConceptMap>
<id value="NamingSystemIdentifierType"/>
<status value="active"/>
<group>
<source value="http://hl7.org/fhir/4.3/namingsystem-identifier-type"/>
<target value="http://hl7.org/fhir/namingsystem-identifier-type"/>
<element>
<code value="oid"/>
<target>
<code value="oid"/>
<relationship value="related-to"/>
</target>
</element>
<element>
<code value="uuid"/>
<target>
<code value="uuid"/>
<relationship value="related-to"/>
</target>
</element>
<element>
<code value="uri"/>
<target>
<code value="uri"/>
<relationship value="related-to"/>
<comment value="s:"iri-stem" - t:"iri-stem""/>
</target>
</element>
<element>
<code value="other"/>
<target>
<code value="other"/>
<relationship value="related-to"/>
</target>
</element>
</group>
</ConceptMap>
</contained>
<contained>
<ConceptMap>
<id value="NamingSystemType"/>
<status value="active"/>
<group>
<source value="http://hl7.org/fhir/4.3/namingsystem-type"/>
<target value="http://hl7.org/fhir/namingsystem-type"/>
<element>
<code value="codesystem"/>
<target>
<code value="codesystem"/>
<relationship value="related-to"/>
</target>
</element>
<element>
<code value="identifier"/>
<target>
<code value="identifier"/>
<relationship value="related-to"/>
</target>
</element>
<element>
<code value="root"/>
<target>
<code value="root"/>
<relationship value="related-to"/>
</target>
</element>
</group>
</ConceptMap>
</contained>
<contained>
<ConceptMap>
<id value="PublicationStatus"/>
<status value="active"/>
<group>
<source value="http://hl7.org/fhir/4.3/publication-status"/>
<target value="http://hl7.org/fhir/publication-status"/>
<element>
<code value="draft"/>
<target>
<code value="draft"/>
<relationship value="related-to"/>
</target>
</element>
<element>
<code value="active"/>
<target>
<code value="active"/>
<relationship value="related-to"/>
</target>
</element>
<element>
<code value="retired"/>
<target>
<code value="retired"/>
<relationship value="related-to"/>
</target>
</element>
<element>
<code value="unknown"/>
<target>
<code value="unknown"/>
<relationship value="related-to"/>
</target>
</element>
</group>
</ConceptMap>
</contained>
<extension
url="http://hl7.org/fhir/StructureDefinition/structuredefinition-wg">
<valueCode value="fhir"/>
</extension>
<extension
url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm">
<valueInteger value="1">
<extension
url="http://hl7.org/fhir/StructureDefinition/structuredefinition-conformance-derivedFrom">
<valueCanonical
value="http://hl7.org/fhir/extensions/ImplementationGuide/hl7.fhir.uv.extensions"/>
</extension>
</valueInteger>
</extension>
<extension
url="http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status">
<valueCode value="trial-use">
<extension
url="http://hl7.org/fhir/StructureDefinition/structuredefinition-conformance-derivedFrom">
<valueCanonical
value="http://hl7.org/fhir/extensions/ImplementationGuide/hl7.fhir.uv.extensions"/>
</extension>
</valueCode>
</extension>
<url value="http://hl7.org/fhir/StructureMap/NamingSystem4Bto5"/>
<version value="5.1.0-snapshot1"/>
<name value="NamingSystem4Bto5"/>
<title value="FML Conversion for NamingSystem: R4B to R5"/>
<status value="active"/>
<date value="2024-03-12T13:30:10+11:00"/>
<publisher value="HL7 International / FHIR Infrastructure"/>
<contact>
<telecom>
<system value="url"/>
<value value="http://www.hl7.org/Special/committees/fiwg"/>
</telecom>
</contact>
<description value="FMLConversionforNamingSystemR4BtoR5"/>
<jurisdiction>
<coding>
<system value="http://unstats.un.org/unsd/methods/m49/m49.htm"/>
<code value="001"/>
</coding>
</jurisdiction>
<structure>
<url value="http://hl7.org/fhir/4.3/StructureDefinition/NamingSystem"/>
<mode value="source"/>
<alias value="NamingSystemR4B"/>
</structure>
<structure>
<url value="http://hl7.org/fhir/StructureDefinition/NamingSystem"/>
<mode value="target"/>
<alias value="NamingSystemR5"/>
</structure>
<import value="http://hl7.org/fhir/StructureMap/*4Bto5"/>
<group>
<name value="NamingSystem"/>
<extends value="DomainResource"/>
<typeMode value="type-and-types"/>
<input>
<name value="src"/>
<type value="NamingSystemR4B"/>
<mode value="source"/>
</input>
<input>
<name value="tgt"/>
<type value="NamingSystemR5"/>
<mode value="target"/>
</input>
<rule>
<name value="name"/>
<source>
<context value="src"/>
<element value="name"/>
<variable value="vvv"/>
</source>
<target>
<context value="tgt"/>
<element value="name"/>
<variable value="vvv"/>
<transform value="create"/>
</target>
<dependent>
<name value="DefaultMappingGroupAnonymousAlias"/>
<parameter>
<valueId value="vvv"/>
</parameter>
<parameter>
<valueId value="vvv"/>
</parameter>
</dependent>
<documentation value="src.url -> tgt.url;"/>
</rule>
<rule>
<name value="status"/>
<source>
<context value="src"/>
<element value="status"/>
<variable value="v"/>
</source>
<target>
<context value="tgt"/>
<element value="status"/>
<transform value="translate"/>
<parameter>
<valueId value="v"/>
</parameter>
<parameter>
<valueString value="#PublicationStatus"/>
</parameter>
<parameter>
<valueString value="code"/>
</parameter>
</target>
<documentation value="src.title -> tgt.title;"/>
</rule>
<rule>
<name value="kind"/>
<source>
<context value="src"/>
<element value="kind"/>
<variable value="v"/>
</source>
<target>
<context value="tgt"/>
<element value="kind"/>
<transform value="translate"/>
<parameter>
<valueId value="v"/>
</parameter>
<parameter>
<valueString value="#NamingSystemType"/>
</parameter>
<parameter>
<valueString value="code"/>
</parameter>
</target>
</rule>
<rule>
<name value="date"/>
<source>
<context value="src"/>
<element value="date"/>
<variable value="vvv"/>
</source>
<target>
<context value="tgt"/>
<element value="date"/>
<variable value="vvv"/>
<transform value="create"/>
</target>
<dependent>
<name value="DefaultMappingGroupAnonymousAlias"/>
<parameter>
<valueId value="vvv"/>
</parameter>
<parameter>
<valueId value="vvv"/>
</parameter>
</dependent>
<documentation value="src.experimental -> tgt.experimental;"/>
</rule>
<rule>
<name value="publisher"/>
<source>
<context value="src"/>
<element value="publisher"/>
<variable value="vvv"/>
</source>
<target>
<context value="tgt"/>
<element value="publisher"/>
<variable value="vvv"/>
<transform value="create"/>
</target>
<dependent>
<name value="DefaultMappingGroupAnonymousAlias"/>
<parameter>
<valueId value="vvv"/>
</parameter>
<parameter>
<valueId value="vvv"/>
</parameter>
</dependent>
</rule>
<rule>
<name value="contact"/>
<source>
<context value="src"/>
<element value="contact"/>
<variable value="vvv"/>
</source>
<target>
<context value="tgt"/>
<element value="contact"/>
<variable value="vvv"/>
<transform value="create"/>
</target>
<dependent>
<name value="DefaultMappingGroupAnonymousAlias"/>
<parameter>
<valueId value="vvv"/>
</parameter>
<parameter>
<valueId value="vvv"/>
</parameter>
</dependent>
</rule>
<rule>
<name value="responsible"/>
<source>
<context value="src"/>
<element value="responsible"/>
<variable value="vvv"/>
</source>
<target>
<context value="tgt"/>
<element value="responsible"/>
<variable value="vvv"/>
<transform value="create"/>
</target>
<dependent>
<name value="DefaultMappingGroupAnonymousAlias"/>
<parameter>
<valueId value="vvv"/>
</parameter>
<parameter>
<valueId value="vvv"/>
</parameter>
</dependent>
</rule>
<rule>
<name value="type"/>
<source>
<context value="src"/>
<element value="type"/>
<variable value="vvv"/>
</source>
<target>
<context value="tgt"/>
<element value="type"/>
<variable value="vvv"/>
<transform value="create"/>
</target>
<dependent>
<name value="DefaultMappingGroupAnonymousAlias"/>
<parameter>
<valueId value="vvv"/>
</parameter>
<parameter>
<valueId value="vvv"/>
</parameter>
</dependent>
</rule>
<rule>
<name value="description"/>
<source>
<context value="src"/>
<element value="description"/>
<variable value="vvv"/>
</source>
<target>
<context value="tgt"/>
<element value="description"/>
<variable value="vvv"/>
<transform value="create"/>
</target>
<dependent>
<name value="DefaultMappingGroupAnonymousAlias"/>
<parameter>
<valueId value="vvv"/>
</parameter>
<parameter>
<valueId value="vvv"/>
</parameter>
</dependent>
</rule>
<rule>
<name value="useContext"/>
<source>
<context value="src"/>
<element value="useContext"/>
<variable value="vvv"/>
</source>
<target>
<context value="tgt"/>
<element value="useContext"/>
<variable value="vvv"/>
<transform value="create"/>
</target>
<dependent>
<name value="DefaultMappingGroupAnonymousAlias"/>
<parameter>
<valueId value="vvv"/>
</parameter>
<parameter>
<valueId value="vvv"/>
</parameter>
</dependent>
</rule>
<rule>
<name value="jurisdiction"/>
<source>
<context value="src"/>
<element value="jurisdiction"/>
<variable value="vvv"/>
</source>
<target>
<context value="tgt"/>
<element value="jurisdiction"/>
<variable value="vvv"/>
<transform value="create"/>
</target>
<dependent>
<name value="DefaultMappingGroupAnonymousAlias"/>
<parameter>
<valueId value="vvv"/>
</parameter>
<parameter>
<valueId value="vvv"/>
</parameter>
</dependent>
</rule>
<rule>
<name value="usage"/>
<source>
<context value="src"/>
<element value="usage"/>
<variable value="vvv"/>
</source>
<target>
<context value="tgt"/>
<element value="usage"/>
<variable value="vvv"/>
<transform value="create"/>
</target>
<dependent>
<name value="DefaultMappingGroupAnonymousAlias"/>
<parameter>
<valueId value="vvv"/>
</parameter>
<parameter>
<valueId value="vvv"/>
</parameter>
</dependent>
<documentation value="src.purpose -> tgt.purpose;"/>
</rule>
<rule>
<name value="uniqueId"/>
<source>
<context value="src"/>
<element value="uniqueId"/>
<variable value="s"/>
</source>
<target>
<context value="tgt"/>
<element value="uniqueId"/>
<variable value="t"/>
</target>
<dependent>
<name value="NamingSystemUniqueId"/>
<parameter>
<valueId value="s"/>
</parameter>
<parameter>
<valueId value="t"/>
</parameter>
</dependent>
</rule>
</group>
<group>
<name value="NamingSystemUniqueId"/>
<extends value="BackboneElement"/>
<input>
<name value="src"/>
<mode value="source"/>
</input>
<input>
<name value="tgt"/>
<mode value="target"/>
</input>
<rule>
<name value="type"/>
<source>
<context value="src"/>
<element value="type"/>
<variable value="v"/>
</source>
<target>
<context value="tgt"/>
<element value="type"/>
<transform value="translate"/>
<parameter>
<valueId value="v"/>
</parameter>
<parameter>
<valueString value="#NamingSystemIdentifierType"/>
</parameter>
<parameter>
<valueString value="code"/>
</parameter>
</target>
</rule>
<rule>
<name value="value"/>
<source>
<context value="src"/>
<element value="value"/>
<variable value="vvv"/>
</source>
<target>
<context value="tgt"/>
<element value="value"/>
<variable value="vvv"/>
<transform value="create"/>
</target>
<dependent>
<name value="DefaultMappingGroupAnonymousAlias"/>
<parameter>
<valueId value="vvv"/>
</parameter>
<parameter>
<valueId value="vvv"/>
</parameter>
</dependent>
</rule>
<rule>
<name value="preferred"/>
<source>
<context value="src"/>
<element value="preferred"/>
<variable value="vvv"/>
</source>
<target>
<context value="tgt"/>
<element value="preferred"/>
<variable value="vvv"/>
<transform value="create"/>
</target>
<dependent>
<name value="DefaultMappingGroupAnonymousAlias"/>
<parameter>
<valueId value="vvv"/>
</parameter>
<parameter>
<valueId value="vvv"/>
</parameter>
</dependent>
</rule>
<rule>
<name value="comment"/>
<source>
<context value="src"/>
<element value="comment"/>
<variable value="vvv"/>
</source>
<target>
<context value="tgt"/>
<element value="comment"/>
<variable value="vvv"/>
<transform value="create"/>
</target>
<dependent>
<name value="DefaultMappingGroupAnonymousAlias"/>
<parameter>
<valueId value="vvv"/>
</parameter>
<parameter>
<valueId value="vvv"/>
</parameter>
</dependent>
</rule>
<rule>
<name value="period"/>
<source>
<context value="src"/>
<element value="period"/>
<variable value="vvv"/>
</source>
<target>
<context value="tgt"/>
<element value="period"/>
<variable value="vvv"/>
<transform value="create"/>
</target>
<dependent>
<name value="DefaultMappingGroupAnonymousAlias"/>
<parameter>
<valueId value="vvv"/>
</parameter>
<parameter>
<valueId value="vvv"/>
</parameter>
</dependent>
</rule>
</group>
</StructureMap>