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="Practitioner2to3"/>
<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/Practitioner2to3'</span>
<span style="color: #cc00cc">/// <b>name</b> = </span><span style="color: blue">'Practitioner2to3'</span>
<span style="color: #cc00cc">/// <b>title</b> = </span><span style="color: blue">'Practitioner 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/Practitioner<span style="color: navy">" </span><b>alias </b>PractitionerR2 <b>as </b><b>source</b>
<b>uses</b><span style="color: navy"> "</span>http://hl7.org/fhir/3.0/Practitioner<span style="color: navy">" </span><b>alias </b>Practitioner <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>Practitioner<span style="color: navy">(</span><b>source</b> <span style="color: maroon">src</span><span style="color: navy"> : </span>PractitionerR2, <b>target</b> <span style="color: maroon">tgt</span><span style="color: navy"> : </span>Practitioner<span style="color: navy">)</span><b> extends </b>DomainResource<b> <<type+>></b><span style="color: navy"> {
</span> src.identifier<span style="color: navy"><b> -> </b></span>tgt.identifier <i>"Practitioner-identifier"</i><span style="color: navy">;</span>
src.active<span style="color: navy"><b> -> </b></span>tgt.active <i>"Practitioner-active"</i><span style="color: navy">;</span>
src.name<span style="color: navy"><b> -> </b></span>tgt.name <i>"Practitioner-name"</i><span style="color: navy">;</span>
src.telecom<span style="color: navy"><b> -> </b></span>tgt.telecom <i>"Practitioner-telecom"</i><span style="color: navy">;</span>
src.address<span style="color: navy"><b> -> </b></span>tgt.address <i>"Practitioner-address"</i><span style="color: navy">;</span>
src.gender<span style="color: navy"><b> -> </b></span>tgt.gender <i>"Practitioner-gender"</i><span style="color: navy">;</span>
src.birthDate<span style="color: navy"><b> -> </b></span>tgt.birthDate <i>"Practitioner-birthDate"</i><span style="color: navy">;</span>
src.photo<span style="color: navy"><b> -> </b></span>tgt.photo <i>"Practitioner-photo"</i><span style="color: navy">;</span>
src.practitionerRole<b> as </b><span style="color: maroon">vs0</span><span style="color: navy"><b> -> </b></span><b>create</b><span style="color: navy">(</span><span style="color: blue">'PractitionerRole'</span><span style="color: navy">)</span><b> as </b><span style="color: maroon">vt0</span><b> then </b>prcRole<span style="color: navy">(</span><span style="color: maroon">src</span><span style="color: navy">, </span><span style="color: maroon">tgt</span><span style="color: navy">, </span><span style="color: maroon">vs0</span><span style="color: navy">, </span><span style="color: maroon">vt0</span><span style="color: navy">)</span> <i>"Practitioner-role"</i><span style="color: navy">;</span>
src.qualification<b> as </b><span style="color: maroon">vs0</span><span style="color: navy"><b> -> </b></span>tgt.qualification<b> as </b><span style="color: maroon">vt0</span><b> then </b>prcQualification<span style="color: navy">(</span><span style="color: maroon">vs0</span><span style="color: navy">, </span><span style="color: maroon">vt0</span><span style="color: navy">)</span> <i>"Practitioner-qualification"</i><span style="color: navy">;</span>
src.communication<span style="color: navy"><b> -> </b></span>tgt.communication <i>"Practitioner-communication"</i><span style="color: navy">;</span>
<span style="color: navy">}
</span><b>group </b>prcRole<span style="color: navy">(</span><b>source</b> <span style="color: maroon">pr</span>, <b>target</b> <span style="color: maroon">prtgt</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<span style="color: navy"><b> -> </b></span> tgt.practitioner = <b>create</b><span style="color: navy">(</span><span style="color: blue">'Reference'</span><span style="color: navy">)</span><b> as </b><span style="color: maroon">p</span><span style="color: navy">, </span> p.reference = <span style="color: navy">(</span>'Practitioner/' + pr.id<span style="color: navy">)</span> <i>"role-id"</i><span style="color: navy">;</span>
src.managingOrganization<span style="color: navy"><b> -> </b></span>tgt.organization <i>"role-organization"</i><span style="color: navy">;</span>
src.role<span style="color: navy"><b> -> </b></span>tgt.code <i>"role-code"</i><span style="color: navy">;</span>
src.specialty<span style="color: navy"><b> -> </b></span>tgt.specialty <i>"role-specialty"</i><span style="color: navy">;</span>
src.period<span style="color: navy"><b> -> </b></span>tgt.period <i>"role-period"</i><span style="color: navy">;</span>
src.location<span style="color: navy"><b> -> </b></span>tgt.location <i>"role-location"</i><span style="color: navy">;</span>
src.healthcareService<span style="color: navy"><b> -> </b></span>tgt.healthcareService <i>"role-healthcareService"</i><span style="color: navy">;</span>
<span style="color: navy">}
</span><b>group </b>prcQualification<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.identifier<span style="color: navy"><b> -> </b></span>tgt.identifier <i>"qualification-identifier"</i><span style="color: navy">;</span>
src.code<span style="color: navy"><b> -> </b></span>tgt.code <i>"qualification-code"</i><span style="color: navy">;</span>
src.period<span style="color: navy"><b> -> </b></span>tgt.period <i>"qualification-period"</i><span style="color: navy">;</span>
src.issuer<span style="color: navy"><b> -> </b></span>tgt.issuer <i>"qualification-issuer"</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/Practitioner2to3"/>
<version value="0.1.0"/>
<name value="Practitioner2to3"/>
<title value="Practitioner 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="PractitionerTransformsR2toR3"/>
<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/Practitioner"/>
<mode value="source"/>
<alias value="PractitionerR2"/>
</structure>
<structure>
<url value="http://hl7.org/fhir/3.0/Practitioner"/>
<mode value="target"/>
<alias value="Practitioner"/>
</structure>
<import value="http://hl7.org/fhir/StructureMap/*2to3"/>
<group>
<name value="Practitioner"/>
<extends value="DomainResource"/>
<typeMode value="type-and-types"/>
<input>
<name value="src"/>
<type value="PractitionerR2"/>
<mode value="source"/>
</input>
<input>
<name value="tgt"/>
<type value="Practitioner"/>
<mode value="target"/>
</input>
<rule>
<name value="Practitioner-identifier"/>
<source>
<context value="src"/>
<element value="identifier"/>
<variable value="vvv"/>
</source>
<target>
<context value="tgt"/>
<element value="identifier"/>
<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="Practitioner-active"/>
<source>
<context value="src"/>
<element value="active"/>
<variable value="vvv"/>
</source>
<target>
<context value="tgt"/>
<element value="active"/>
<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="Practitioner-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>
</rule>
<rule>
<name value="Practitioner-telecom"/>
<source>
<context value="src"/>
<element value="telecom"/>
<variable value="vvv"/>
</source>
<target>
<context value="tgt"/>
<element value="telecom"/>
<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="Practitioner-address"/>
<source>
<context value="src"/>
<element value="address"/>
<variable value="vvv"/>
</source>
<target>
<context value="tgt"/>
<element value="address"/>
<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="Practitioner-gender"/>
<source>
<context value="src"/>
<element value="gender"/>
<variable value="vvv"/>
</source>
<target>
<context value="tgt"/>
<element value="gender"/>
<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="Practitioner-birthDate"/>
<source>
<context value="src"/>
<element value="birthDate"/>
<variable value="vvv"/>
</source>
<target>
<context value="tgt"/>
<element value="birthDate"/>
<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="Practitioner-photo"/>
<source>
<context value="src"/>
<element value="photo"/>
<variable value="vvv"/>
</source>
<target>
<context value="tgt"/>
<element value="photo"/>
<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="Practitioner-role"/>
<source>
<context value="src"/>
<element value="practitionerRole"/>
<variable value="vs0"/>
</source>
<target>
<variable value="vt0"/>
<transform value="create"/>
<parameter>
<valueString value="PractitionerRole"/>
</parameter>
</target>
<dependent>
<name value="prcRole"/>
<parameter>
<valueId value="src"/>
</parameter>
<parameter>
<valueId value="tgt"/>
</parameter>
<parameter>
<valueId value="vs0"/>
</parameter>
<parameter>
<valueId value="vt0"/>
</parameter>
</dependent>
</rule>
<rule>
<name value="Practitioner-qualification"/>
<source>
<context value="src"/>
<element value="qualification"/>
<variable value="vs0"/>
</source>
<target>
<context value="tgt"/>
<element value="qualification"/>
<variable value="vt0"/>
</target>
<dependent>
<name value="prcQualification"/>
<parameter>
<valueId value="vs0"/>
</parameter>
<parameter>
<valueId value="vt0"/>
</parameter>
</dependent>
</rule>
<rule>
<name value="Practitioner-communication"/>
<source>
<context value="src"/>
<element value="communication"/>
<variable value="vvv"/>
</source>
<target>
<context value="tgt"/>
<element value="communication"/>
<variable value="vvv"/>
<transform value="create"/>
</target>
<dependent>
<name value="DefaultMappingGroupAnonymousAlias"/>
<parameter>
<valueId value="vvv"/>
</parameter>
<parameter>
<valueId value="vvv"/>
</parameter>
</dependent>
</rule>
</group>
<group>
<name value="prcRole"/>
<extends value="BackboneElement"/>
<input>
<name value="pr"/>
<mode value="source"/>
</input>
<input>
<name value="prtgt"/>
<mode value="target"/>
</input>
<input>
<name value="src"/>
<mode value="source"/>
</input>
<input>
<name value="tgt"/>
<mode value="target"/>
</input>
<rule>
<name value="role-id"/>
<source>
<context value="src"/>
</source>
<target>
<context value="tgt"/>
<element value="practitioner"/>
<variable value="p"/>
<transform value="create"/>
<parameter>
<valueString value="Reference"/>
</parameter>
</target>
<target>
<context value="p"/>
<element value="reference"/>
<transform value="evaluate"/>
<parameter>
<valueString value="'Practitioner/' + pr.id"/>
</parameter>
</target>
</rule>
<rule>
<name value="role-organization"/>
<source>
<context value="src"/>
<element value="managingOrganization"/>
<variable value="vvv"/>
</source>
<target>
<context value="tgt"/>
<element value="organization"/>
<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="role-code"/>
<source>
<context value="src"/>
<element value="role"/>
<variable value="vvv"/>
</source>
<target>
<context value="tgt"/>
<element value="code"/>
<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="role-specialty"/>
<source>
<context value="src"/>
<element value="specialty"/>
<variable value="vvv"/>
</source>
<target>
<context value="tgt"/>
<element value="specialty"/>
<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="role-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>
<rule>
<name value="role-location"/>
<source>
<context value="src"/>
<element value="location"/>
<variable value="vvv"/>
</source>
<target>
<context value="tgt"/>
<element value="location"/>
<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="role-healthcareService"/>
<source>
<context value="src"/>
<element value="healthcareService"/>
<variable value="vvv"/>
</source>
<target>
<context value="tgt"/>
<element value="healthcareService"/>
<variable value="vvv"/>
<transform value="create"/>
</target>
<dependent>
<name value="DefaultMappingGroupAnonymousAlias"/>
<parameter>
<valueId value="vvv"/>
</parameter>
<parameter>
<valueId value="vvv"/>
</parameter>
</dependent>
</rule>
</group>
<group>
<name value="prcQualification"/>
<extends value="BackboneElement"/>
<input>
<name value="src"/>
<mode value="source"/>
</input>
<input>
<name value="tgt"/>
<mode value="target"/>
</input>
<rule>
<name value="qualification-identifier"/>
<source>
<context value="src"/>
<element value="identifier"/>
<variable value="vvv"/>
</source>
<target>
<context value="tgt"/>
<element value="identifier"/>
<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="qualification-code"/>
<source>
<context value="src"/>
<element value="code"/>
<variable value="vvv"/>
</source>
<target>
<context value="tgt"/>
<element value="code"/>
<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="qualification-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>
<rule>
<name value="qualification-issuer"/>
<source>
<context value="src"/>
<element value="issuer"/>
<variable value="vvv"/>
</source>
<target>
<context value="tgt"/>
<element value="issuer"/>
<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>