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 |
<StructureMap xmlns="http://hl7.org/fhir">
<id value="HumanName2to3"/>
<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/HumanName2to3'</span>
<span style="color: #cc00cc">/// <b>name</b> = </span><span style="color: blue">'HumanName2to3'</span>
<span style="color: #cc00cc">/// <b>title</b> = </span><span style="color: blue">'HumanName Transforms: R2 to R3'</span>
<span style="color: #cc00cc">/// <b>status</b> = </span><span style="color: blue">'active'</span>
<b>uses</b><span style="color: navy"> "</span>http://hl7.org/fhir/1.0/HumanName<span style="color: navy">" </span><b>alias </b>HumanNameR2 <b>as </b><b>source</b>
<b>uses</b><span style="color: navy"> "</span>http://hl7.org/fhir/3.0/HumanName<span style="color: navy">" </span><b>alias </b>HumanName <b>as </b><b>target</b>
<b>imports</b><span style="color: navy"> "</span>http://hl7.org/fhir/StructureMap/*2to3<span style="color: navy">"
</span>
<b>group </b>HumanName<span style="color: navy">(</span><b>source</b> <span style="color: maroon">src</span><span style="color: navy"> : </span>HumanNameR2, <b>target</b> <span style="color: maroon">tgt</span><span style="color: navy"> : </span>HumanName<span style="color: navy">)</span><b> extends </b>Element<b> <<type+>></b><span style="color: navy"> {
</span> src.use<span style="color: navy"><b> -> </b></span>tgt.use <i>"HumanName-use"</i><span style="color: navy">;</span>
src.text<span style="color: navy"><b> -> </b></span>tgt.text <i>"HumanName-text"</i><span style="color: navy">;</span>
src.family first<span style="color: navy"><b> -> </b></span>tgt.family <i>"HumanName-family"</i><span style="color: navy">;</span>
src.family not_first<b> as </b><span style="color: maroon">f</span><span style="color: navy"><b> -> </b></span> tgt.extension<b> as </b><span style="color: maroon">ex</span><span style="color: navy">, </span> ex.url = <span style="color: blue">'http://hl7.org/fhir/StructureDefinition/HumanName-familyRepeat'</span><span style="color: navy">, </span> ex.value = <span style="color: maroon">f</span> <i>"HumanName-family-rpt"</i><span style="color: navy">;</span>
src.given<span style="color: navy"><b> -> </b></span>tgt.given <i>"HumanName-given"</i><span style="color: navy">;</span>
src.prefix<span style="color: navy"><b> -> </b></span>tgt.prefix <i>"HumanName-prefix"</i><span style="color: navy">;</span>
src.suffix<span style="color: navy"><b> -> </b></span>tgt.suffix <i>"HumanName-suffix"</i><span style="color: navy">;</span>
src.period<span style="color: navy"><b> -> </b></span>tgt.period <i>"HumanName-period"</i><span style="color: navy">;</span>
<span style="color: navy">}
</span></pre></div>
</text>
<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.xver"/>
</extension>
</valueInteger>
</extension>
<extension
url="http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status">
<valueCode value="draft">
<extension
url="http://hl7.org/fhir/StructureDefinition/structuredefinition-conformance-derivedFrom">
<valueCanonical
value="http://hl7.org/fhir/extensions/ImplementationGuide/hl7.fhir.uv.xver"/>
</extension>
</valueCode>
</extension>
<url value="http://hl7.org/fhir/StructureMap/HumanName2to3"/>
<version value="0.1.0"/>
<name value="HumanName2to3"/>
<title value="HumanName Transforms: R2 to R3"/>
<status value="active"/>
<date value="2024-02-22T03:16:50+00: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="HumanNameTransformsR2toR3"/>
<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/1.0/HumanName"/>
<mode value="source"/>
<alias value="HumanNameR2"/>
</structure>
<structure>
<url value="http://hl7.org/fhir/3.0/HumanName"/>
<mode value="target"/>
<alias value="HumanName"/>
</structure>
<import value="http://hl7.org/fhir/StructureMap/*2to3"/>
<group>
<name value="HumanName"/>
<extends value="Element"/>
<typeMode value="type-and-types"/>
<input>
<name value="src"/>
<type value="HumanNameR2"/>
<mode value="source"/>
</input>
<input>
<name value="tgt"/>
<type value="HumanName"/>
<mode value="target"/>
</input>
<rule>
<name value="HumanName-use"/>
<source>
<context value="src"/>
<element value="use"/>
<variable value="vvv"/>
</source>
<target>
<context value="tgt"/>
<element value="use"/>
<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="HumanName-text"/>
<source>
<context value="src"/>
<element value="text"/>
<variable value="vvv"/>
</source>
<target>
<context value="tgt"/>
<element value="text"/>
<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="HumanName-family"/>
<source>
<context value="src"/>
<element value="family"/>
<listMode value="first"/>
<variable value="vvv"/>
</source>
<target>
<context value="tgt"/>
<element value="family"/>
<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="HumanName-family-rpt"/>
<source>
<context value="src"/>
<element value="family"/>
<listMode value="not_first"/>
<variable value="f"/>
</source>
<target>
<context value="tgt"/>
<element value="extension"/>
<variable value="ex"/>
</target>
<target>
<context value="ex"/>
<element value="url"/>
<transform value="copy"/>
<parameter>
<valueString
value="http://hl7.org/fhir/StructureDefinition/HumanName-familyRepeat"/>
</parameter>
</target>
<target>
<context value="ex"/>
<element value="value"/>
<transform value="copy"/>
<parameter>
<valueId value="f"/>
</parameter>
</target>
</rule>
<rule>
<name value="HumanName-given"/>
<source>
<context value="src"/>
<element value="given"/>
<variable value="vvv"/>
</source>
<target>
<context value="tgt"/>
<element value="given"/>
<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="HumanName-prefix"/>
<source>
<context value="src"/>
<element value="prefix"/>
<variable value="vvv"/>
</source>
<target>
<context value="tgt"/>
<element value="prefix"/>
<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="HumanName-suffix"/>
<source>
<context value="src"/>
<element value="suffix"/>
<variable value="vvv"/>
</source>
<target>
<context value="tgt"/>
<element value="suffix"/>
<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="HumanName-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>