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="DocumentReference4to3"/>
<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">'hDocumentReference4to3 Transforms: R4 to R3'</span>
<span style="color: #cc00cc">/// <b>name</b> = </span><span style="color: blue">'DocumentReference4to3'</span>
<span style="color: #cc00cc">/// <b>title</b> = </span><span style="color: blue">'R4 to R3 Conversion for DocumentReference'</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/4.0/DocumentReference<span style="color: navy">" </span><b>alias </b>DocumentReference <b>as </b><b>source</b>
<b>uses</b><span style="color: navy"> "</span>http://hl7.org/fhir/3.0/DocumentReference<span style="color: navy">" </span><b>alias </b>DocumentReferenceR3 <b>as </b><b>target</b>
<b>imports</b><span style="color: navy"> "</span>http://hl7.org/fhir/StructureMap/*4to3<span style="color: navy">"
</span>
<b>group </b>DocumentReference<span style="color: navy">(</span><b>source</b> <span style="color: maroon">src</span><span style="color: navy"> : </span>DocumentReference, <b>target</b> <span style="color: maroon">tgt</span><span style="color: navy"> : </span>DocumentReferenceR3<span style="color: navy">)</span><b> extends </b>DomainResource<b> <<type+>></b><span style="color: navy"> {
</span> src.masterIdentifier<span style="color: navy"><b> -> </b></span>tgt.masterIdentifier<span style="color: navy">;</span>
src.identifier<span style="color: navy"><b> -> </b></span>tgt.identifier<span style="color: navy">;</span>
src.status<span style="color: navy"><b> -> </b></span>tgt.status<span style="color: navy">;</span>
src.docStatus<span style="color: navy"><b> -> </b></span>tgt.docStatus<span style="color: navy">;</span>
src.type<span style="color: navy"><b> -> </b></span>tgt.type<span style="color: navy">;</span>
src.category<span style="color: navy"><b> -> </b></span>tgt.class<span style="color: navy">;</span>
src.subject<span style="color: navy"><b> -> </b></span>tgt.subject<span style="color: navy">;</span>
src.date<span style="color: navy"><b> -> </b></span>tgt.indexed<span style="color: navy">;</span>
src.extension<b> as </b><span style="color: maroon">ext</span><b> where </b>url = 'http://hl7.org/fhir/3.0/StructureDefinition/extension-DocumentReference.created'<b> then</b><span style="color: navy"> {
</span> ext.value<b> as </b><span style="color: maroon">vs0</span><span style="color: navy"><b> -> </b></span>tgt.created = <span style="color: maroon">vs0</span> <i>"created2"</i><span style="color: navy">;</span>
<span style="color: navy">}</span> <i>"created"</i><span style="color: navy">;</span>
src.agent<b> as </b><span style="color: maroon">s</span><b> where </b>type.coding.where((system = 'http://terminology.hl7.org/CodeSystem/v3-ParticipationType') and (code = 'AUT')).exists()<span style="color: navy"><b> -> </b></span>tgt.author<b> as </b><span style="color: maroon">t</span><b> then </b>agent<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>
src.authenticator<span style="color: navy"><b> -> </b></span>tgt.authenticator<span style="color: navy">;</span>
src.custodian<span style="color: navy"><b> -> </b></span>tgt.custodian<span style="color: navy">;</span>
src.relatesTo<b> as </b><span style="color: maroon">vs0</span><span style="color: navy"><b> -> </b></span>tgt.relatesTo<b> as </b><span style="color: maroon">vt0</span><b> then </b>relatesTo<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><span style="color: navy">;</span>
src.description<span style="color: navy"><b> -> </b></span>tgt.description<span style="color: navy">;</span>
src.securityLabel<span style="color: navy"><b> -> </b></span>tgt.securityLabel<span style="color: navy">;</span>
src.content<b> as </b><span style="color: maroon">vs0</span><span style="color: navy"><b> -> </b></span>tgt.content<b> as </b><span style="color: maroon">vt0</span><b> then </b>content<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><span style="color: navy">;</span>
src.context<b> as </b><span style="color: maroon">vs0</span><span style="color: navy"><b> -> </b></span>tgt.context<b> as </b><span style="color: maroon">vt0</span><b> then </b>context<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><span style="color: navy">;</span>
<span style="color: navy">}
</span><b>group </b>agent<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>Element<span style="color: navy"> {
</span> src.who<b> as </b><span style="color: maroon">vs0</span><b> then </b>Reference<span style="color: navy">(</span><span style="color: maroon">vs0</span><span style="color: navy">, </span><span style="color: maroon">tgt</span><span style="color: navy">)</span><span style="color: navy">;</span>
<span style="color: navy">}
</span><b>group </b>relatesTo<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.code<span style="color: navy"><b> -> </b></span>tgt.code<span style="color: navy">;</span>
src.target<span style="color: navy"><b> -> </b></span>tgt.target<span style="color: navy">;</span>
<span style="color: navy">}
</span><b>group </b>content<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.attachment<span style="color: navy"><b> -> </b></span>tgt.attachment<span style="color: navy">;</span>
src.format<span style="color: navy"><b> -> </b></span>tgt.format<span style="color: navy">;</span>
<span style="color: navy">}
</span><b>group </b>context<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.encounter<span style="color: navy"><b> -> </b></span>tgt.encounter<span style="color: navy">;</span>
src.event<span style="color: navy"><b> -> </b></span>tgt.event<span style="color: navy">;</span>
src.period<span style="color: navy"><b> -> </b></span>tgt.period<span style="color: navy">;</span>
src.facilityType<span style="color: navy"><b> -> </b></span>tgt.facilityType<span style="color: navy">;</span>
src.practiceSetting<span style="color: navy"><b> -> </b></span>tgt.practiceSetting<span style="color: navy">;</span>
src.sourcePatientInfo<span style="color: navy"><b> -> </b></span>tgt.sourcePatientInfo<span style="color: navy">;</span>
src.related<b> as </b><span style="color: maroon">vs0</span><span style="color: navy"><b> -> </b></span>tgt.related<b> as </b><span style="color: maroon">vt0</span><b> then </b>related<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><span style="color: navy">;</span>
<span style="color: navy">}
</span><b>group </b>related<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><span style="color: navy"> {
</span> src<b> where </b>reference.exists()<span style="color: navy"><b> -> </b></span>tgt.ref<b> as </b><span style="color: maroon">vt0</span><b> then </b>ReferenceNoIdentifier<span style="color: navy">(</span><span style="color: maroon">src</span><span style="color: navy">, </span><span style="color: maroon">vt0</span><span style="color: navy">)</span> <i>"reference"</i><span style="color: navy">;</span>
src<b> where </b>identifier.exists()<span style="color: navy"><b> -> </b></span>tgt.identifier<b> as </b><span style="color: maroon">vt0</span><b> then </b>Reference2Identifier<span style="color: navy">(</span><span style="color: maroon">src</span><span style="color: navy">, </span><span style="color: maroon">vt0</span><span style="color: navy">)</span> <i>"identifier"</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="hDocumentReference4to3 Transforms: R4 to R3"/>
<version value="0.1.0"/>
<name value="DocumentReference4to3"/>
<title value="R4 to R3 Conversion for DocumentReference"/>
<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="R4toR3ConversionforDocumentReference"/>
<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.0/DocumentReference"/>
<mode value="source"/>
<alias value="DocumentReference"/>
</structure>
<structure>
<url value="http://hl7.org/fhir/3.0/DocumentReference"/>
<mode value="target"/>
<alias value="DocumentReferenceR3"/>
</structure>
<import value="http://hl7.org/fhir/StructureMap/*4to3"/>
<group>
<name value="DocumentReference"/>
<extends value="DomainResource"/>
<typeMode value="type-and-types"/>
<input>
<name value="src"/>
<type value="DocumentReference"/>
<mode value="source"/>
</input>
<input>
<name value="tgt"/>
<type value="DocumentReferenceR3"/>
<mode value="target"/>
</input>
<rule>
<name value="masterIdentifier"/>
<source>
<context value="src"/>
<element value="masterIdentifier"/>
<variable value="vvv"/>
</source>
<target>
<context value="tgt"/>
<element value="masterIdentifier"/>
<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="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="status"/>
<source>
<context value="src"/>
<element value="status"/>
<variable value="vvv"/>
</source>
<target>
<context value="tgt"/>
<element value="status"/>
<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="docStatus"/>
<source>
<context value="src"/>
<element value="docStatus"/>
<variable value="vvv"/>
</source>
<target>
<context value="tgt"/>
<element value="docStatus"/>
<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="category"/>
<source>
<context value="src"/>
<element value="category"/>
<variable value="vvv"/>
</source>
<target>
<context value="tgt"/>
<element value="class"/>
<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="subject"/>
<source>
<context value="src"/>
<element value="subject"/>
<variable value="vvv"/>
</source>
<target>
<context value="tgt"/>
<element value="subject"/>
<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="date"/>
<source>
<context value="src"/>
<element value="date"/>
<variable value="vvv"/>
</source>
<target>
<context value="tgt"/>
<element value="indexed"/>
<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="created"/>
<source>
<context value="src"/>
<element value="extension"/>
<variable value="ext"/>
<condition
value="url = 'http://hl7.org/fhir/3.0/StructureDefinition/extension-DocumentReference.created'"/>
</source>
<rule>
<name value="created2"/>
<source>
<context value="ext"/>
<element value="value"/>
<variable value="vs0"/>
</source>
<target>
<context value="tgt"/>
<element value="created"/>
<transform value="copy"/>
<parameter>
<valueId value="vs0"/>
</parameter>
</target>
</rule>
</rule>
<rule>
<name value="agent"/>
<source>
<context value="src"/>
<element value="agent"/>
<variable value="s"/>
<condition
value="type.coding.where((system = 'http://terminology.hl7.org/CodeSystem/v3-ParticipationType') and (code = 'AUT')).exists()"/>
</source>
<target>
<context value="tgt"/>
<element value="author"/>
<variable value="t"/>
</target>
<dependent>
<name value="agent"/>
<parameter>
<valueId value="s"/>
</parameter>
<parameter>
<valueId value="t"/>
</parameter>
</dependent>
</rule>
<rule>
<name value="authenticator"/>
<source>
<context value="src"/>
<element value="authenticator"/>
<variable value="vvv"/>
</source>
<target>
<context value="tgt"/>
<element value="authenticator"/>
<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="custodian"/>
<source>
<context value="src"/>
<element value="custodian"/>
<variable value="vvv"/>
</source>
<target>
<context value="tgt"/>
<element value="custodian"/>
<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="relatesTo"/>
<source>
<context value="src"/>
<element value="relatesTo"/>
<variable value="vs0"/>
</source>
<target>
<context value="tgt"/>
<element value="relatesTo"/>
<variable value="vt0"/>
</target>
<dependent>
<name value="relatesTo"/>
<parameter>
<valueId value="vs0"/>
</parameter>
<parameter>
<valueId value="vt0"/>
</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="securityLabel"/>
<source>
<context value="src"/>
<element value="securityLabel"/>
<variable value="vvv"/>
</source>
<target>
<context value="tgt"/>
<element value="securityLabel"/>
<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="content"/>
<source>
<context value="src"/>
<element value="content"/>
<variable value="vs0"/>
</source>
<target>
<context value="tgt"/>
<element value="content"/>
<variable value="vt0"/>
</target>
<dependent>
<name value="content"/>
<parameter>
<valueId value="vs0"/>
</parameter>
<parameter>
<valueId value="vt0"/>
</parameter>
</dependent>
</rule>
<rule>
<name value="context"/>
<source>
<context value="src"/>
<element value="context"/>
<variable value="vs0"/>
</source>
<target>
<context value="tgt"/>
<element value="context"/>
<variable value="vt0"/>
</target>
<dependent>
<name value="context"/>
<parameter>
<valueId value="vs0"/>
</parameter>
<parameter>
<valueId value="vt0"/>
</parameter>
</dependent>
</rule>
</group>
<group>
<name value="agent"/>
<extends value="Element"/>
<input>
<name value="src"/>
<mode value="source"/>
</input>
<input>
<name value="tgt"/>
<mode value="target"/>
</input>
<rule>
<name value="who"/>
<source>
<context value="src"/>
<element value="who"/>
<variable value="vs0"/>
</source>
<dependent>
<name value="Reference"/>
<parameter>
<valueId value="vs0"/>
</parameter>
<parameter>
<valueId value="tgt"/>
</parameter>
</dependent>
</rule>
</group>
<group>
<name value="relatesTo"/>
<extends value="BackboneElement"/>
<input>
<name value="src"/>
<mode value="source"/>
</input>
<input>
<name value="tgt"/>
<mode value="target"/>
</input>
<rule>
<name value="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="target"/>
<source>
<context value="src"/>
<element value="target"/>
<variable value="vvv"/>
</source>
<target>
<context value="tgt"/>
<element value="target"/>
<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="content"/>
<extends value="BackboneElement"/>
<input>
<name value="src"/>
<mode value="source"/>
</input>
<input>
<name value="tgt"/>
<mode value="target"/>
</input>
<rule>
<name value="attachment"/>
<source>
<context value="src"/>
<element value="attachment"/>
<variable value="vvv"/>
</source>
<target>
<context value="tgt"/>
<element value="attachment"/>
<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="format"/>
<source>
<context value="src"/>
<element value="format"/>
<variable value="vvv"/>
</source>
<target>
<context value="tgt"/>
<element value="format"/>
<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="context"/>
<extends value="BackboneElement"/>
<input>
<name value="src"/>
<mode value="source"/>
</input>
<input>
<name value="tgt"/>
<mode value="target"/>
</input>
<rule>
<name value="encounter"/>
<source>
<context value="src"/>
<element value="encounter"/>
<variable value="vvv"/>
</source>
<target>
<context value="tgt"/>
<element value="encounter"/>
<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="event"/>
<source>
<context value="src"/>
<element value="event"/>
<variable value="vvv"/>
</source>
<target>
<context value="tgt"/>
<element value="event"/>
<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>
<rule>
<name value="facilityType"/>
<source>
<context value="src"/>
<element value="facilityType"/>
<variable value="vvv"/>
</source>
<target>
<context value="tgt"/>
<element value="facilityType"/>
<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="practiceSetting"/>
<source>
<context value="src"/>
<element value="practiceSetting"/>
<variable value="vvv"/>
</source>
<target>
<context value="tgt"/>
<element value="practiceSetting"/>
<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="sourcePatientInfo"/>
<source>
<context value="src"/>
<element value="sourcePatientInfo"/>
<variable value="vvv"/>
</source>
<target>
<context value="tgt"/>
<element value="sourcePatientInfo"/>
<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="related"/>
<source>
<context value="src"/>
<element value="related"/>
<variable value="vs0"/>
</source>
<target>
<context value="tgt"/>
<element value="related"/>
<variable value="vt0"/>
</target>
<dependent>
<name value="related"/>
<parameter>
<valueId value="vs0"/>
</parameter>
<parameter>
<valueId value="vt0"/>
</parameter>
</dependent>
</rule>
</group>
<group>
<name value="related"/>
<input>
<name value="src"/>
<mode value="source"/>
</input>
<input>
<name value="tgt"/>
<mode value="target"/>
</input>
<rule>
<name value="reference"/>
<source>
<context value="src"/>
<condition value="reference.exists()"/>
</source>
<target>
<context value="tgt"/>
<element value="ref"/>
<variable value="vt0"/>
</target>
<dependent>
<name value="ReferenceNoIdentifier"/>
<parameter>
<valueId value="src"/>
</parameter>
<parameter>
<valueId value="vt0"/>
</parameter>
</dependent>
</rule>
<rule>
<name value="identifier"/>
<source>
<context value="src"/>
<condition value="identifier.exists()"/>
</source>
<target>
<context value="tgt"/>
<element value="identifier"/>
<variable value="vt0"/>
</target>
<dependent>
<name value="Reference2Identifier"/>
<parameter>
<valueId value="src"/>
</parameter>
<parameter>
<valueId value="vt0"/>
</parameter>
</dependent>
</rule>
</group>
</StructureMap>