FHIR Cross-Version Mapping Pack
0.1.0 - Ballot for Release 5.1.0 International flag

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

: ImagingStudy Transforms: R3 to R2 - XML Representation

Page standards status: Draft Maturity Level: 1

Raw xml | Download



<StructureMap xmlns="http://hl7.org/fhir">
  <id value="ImagingStudy3to2"/>
  <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/ImagingStudy3to2'</span>
<span style="color: #cc00cc">/// <b>name</b> = </span><span style="color: blue">'ImagingStudy3to2'</span>
<span style="color: #cc00cc">/// <b>title</b> = </span><span style="color: blue">'ImagingStudy Transforms: R3 to R2'</span>
<span style="color: #cc00cc">/// <b>status</b> = </span><span style="color: blue">'active'</span>

<b>uses</b><span style="color: navy"> &quot;</span>http://hl7.org/fhir/3.0/ImagingStudy<span style="color: navy">&quot; </span><b>alias </b>ImagingStudy <b>as </b><b>source</b>
<b>uses</b><span style="color: navy"> &quot;</span>http://hl7.org/fhir/1.0/ImagingStudy<span style="color: navy">&quot; </span><b>alias </b>ImagingStudyR2 <b>as </b><b>target</b>

<b>imports</b><span style="color: navy"> &quot;</span>http://hl7.org/fhir/StructureMap/*3to2<span style="color: navy">&quot;
</span>
<b>group </b>ImagingStudy<span style="color: navy">(</span><b>source</b> <span style="color: maroon">src</span><span style="color: navy"> : </span>ImagingStudy, <b>target</b> <span style="color: maroon">tgt</span><span style="color: navy"> : </span>ImagingStudyR2<span style="color: navy">)</span><b> extends </b>DomainResource<b> &lt;&lt;type+&gt;&gt;</b><span style="color: navy"> {
</span>  src.started<span style="color: navy"><b> -&gt; </b></span>tgt.started <i>&quot;ImagingStudy-started&quot;</i><span style="color: navy">;</span>
  src.patient<span style="color: navy"><b> -&gt; </b></span>tgt.patient <i>&quot;ImagingStudy-patient&quot;</i><span style="color: navy">;</span>
  src.uid<span style="color: navy"><b> -&gt; </b></span>tgt.uid <i>&quot;ImagingStudy-uid&quot;</i><span style="color: navy">;</span>
  src.accession<span style="color: navy"><b> -&gt; </b></span>tgt.accession <i>&quot;ImagingStudy-accession&quot;</i><span style="color: navy">;</span>
  src.identifier<span style="color: navy"><b> -&gt; </b></span>tgt.identifier <i>&quot;ImagingStudy-identifier&quot;</i><span style="color: navy">;</span>
  src.modalityList<span style="color: navy"><b> -&gt; </b></span>tgt.modalityList <i>&quot;ImagingStudy-modalityList&quot;</i><span style="color: navy">;</span>
  src.referrer<span style="color: navy"><b> -&gt; </b></span>tgt.referrer <i>&quot;ImagingStudy-referrer&quot;</i><span style="color: navy">;</span>
  src.availability<span style="color: navy"><b> -&gt; </b></span>tgt.availability <i>&quot;ImagingStudy-availability&quot;</i><span style="color: navy">;</span>
  src.extension<b> as </b><span style="color: maroon">e</span><b> where </b>e.url = 'http://hl7.org/fhir/ImagingStudy-r2-url'<span style="color: navy"><b> -&gt; </b></span>tgt.modified = <span style="color: navy">(</span>e.value<span style="color: navy">)</span> <i>&quot;ImagingStudy-url&quot;</i><span style="color: navy">;</span>
  src.numberOfSeries<span style="color: navy"><b> -&gt; </b></span>tgt.numberOfSeries <i>&quot;ImagingStudy-numberOfSeries&quot;</i><span style="color: navy">;</span>
  src.numberOfInstances<span style="color: navy"><b> -&gt; </b></span>tgt.numberOfInstances <i>&quot;ImagingStudy-numberOfInstances&quot;</i><span style="color: navy">;</span>
  src.procedureReference<span style="color: navy"><b> -&gt; </b></span>tgt.procedure <i>&quot;ImagingStudy-procedure&quot;</i><span style="color: navy">;</span>
  src.interpreter<span style="color: navy"><b> -&gt; </b></span>tgt.interpreter <i>&quot;ImagingStudy-interpreter&quot;</i><span style="color: navy">;</span>
  src.description<span style="color: navy"><b> -&gt; </b></span>tgt.description <i>&quot;ImagingStudy-description&quot;</i><span style="color: navy">;</span>
  src.series<b> as </b><span style="color: maroon">vs0</span><span style="color: navy"><b> -&gt; </b></span>tgt.series<b> as </b><span style="color: maroon">vt0</span><b> then </b>imgSeries<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>&quot;ImagingStudy-series&quot;</i><span style="color: navy">;</span>
<span style="color: navy">}

</span><b>group </b>imgSeries<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.uid<span style="color: navy"><b> -&gt; </b></span>tgt.uid <i>&quot;series-uid&quot;</i><span style="color: navy">;</span>
  src.number<span style="color: navy"><b> -&gt; </b></span>tgt.number <i>&quot;series-number&quot;</i><span style="color: navy">;</span>
  src.modality<span style="color: navy"><b> -&gt; </b></span>tgt.modality <i>&quot;series-modality&quot;</i><span style="color: navy">;</span>
  src.description<span style="color: navy"><b> -&gt; </b></span>tgt.description <i>&quot;series-description&quot;</i><span style="color: navy">;</span>
  src.numberOfInstances<span style="color: navy"><b> -&gt; </b></span>tgt.numberOfInstances <i>&quot;series-numberOfInstances&quot;</i><span style="color: navy">;</span>
  src.availability<span style="color: navy"><b> -&gt; </b></span>tgt.availability <i>&quot;series-availability&quot;</i><span style="color: navy">;</span>
  src.extension<b> as </b><span style="color: maroon">e</span><b> where </b>e.url = 'http://hl7.org/fhir/ImagingStudy-r2-url'<span style="color: navy"><b> -&gt; </b></span>tgt.modified = <span style="color: navy">(</span>e.value<span style="color: navy">)</span> <i>&quot;series-url&quot;</i><span style="color: navy">;</span>
  src.bodySite<span style="color: navy"><b> -&gt; </b></span>tgt.bodySite <i>&quot;series-bodySite&quot;</i><span style="color: navy">;</span>
  src.laterality<span style="color: navy"><b> -&gt; </b></span>tgt.laterality <i>&quot;series-laterality&quot;</i><span style="color: navy">;</span>
  src.started<span style="color: navy"><b> -&gt; </b></span>tgt.started <i>&quot;series-started&quot;</i><span style="color: navy">;</span>
  src.instance<b> as </b><span style="color: maroon">vs0</span><span style="color: navy"><b> -&gt; </b></span>tgt.instance<b> as </b><span style="color: maroon">vt0</span><b> then </b>imgInstance<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>&quot;series-instance&quot;</i><span style="color: navy">;</span>
<span style="color: navy">}

</span><b>group </b>imgInstance<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.number<span style="color: navy"><b> -&gt; </b></span>tgt.number <i>&quot;instance-number&quot;</i><span style="color: navy">;</span>
  src.uid<span style="color: navy"><b> -&gt; </b></span>tgt.uid <i>&quot;instance-uid&quot;</i><span style="color: navy">;</span>
  src.sopClass<span style="color: navy"><b> -&gt; </b></span>tgt.sopClass <i>&quot;instance-sopClass&quot;</i><span style="color: navy">;</span>
  src.title<span style="color: navy"><b> -&gt; </b></span>tgt.title <i>&quot;instance-title&quot;</i><span style="color: navy">;</span>
<span style="color: navy">}

</span><b>group </b>imgSrc<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.url<span style="color: navy"><b> -&gt; </b></span>tgt.url <i>&quot;imgSrc&quot;</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/ImagingStudy3to2"/>
  <version value="0.1.0"/>
  <name value="ImagingStudy3to2"/>
  <title value="ImagingStudy Transforms: R3 to R2"/>
  <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="ImagingStudyTransformsR3toR2"/>
  <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/3.0/ImagingStudy"/>
    <mode value="source"/>
    <alias value="ImagingStudy"/>
  </structure>
  <structure>
    <url value="http://hl7.org/fhir/1.0/ImagingStudy"/>
    <mode value="target"/>
    <alias value="ImagingStudyR2"/>
  </structure>
  <import value="http://hl7.org/fhir/StructureMap/*3to2"/>
  <group>
    <name value="ImagingStudy"/>
    <extends value="DomainResource"/>
    <typeMode value="type-and-types"/>
    <input>
      <name value="src"/>
      <type value="ImagingStudy"/>
      <mode value="source"/>
    </input>
    <input>
      <name value="tgt"/>
      <type value="ImagingStudyR2"/>
      <mode value="target"/>
    </input>
    <rule>
      <name value="ImagingStudy-started"/>
      <source>
        <context value="src"/>
        <element value="started"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="started"/>
        <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="ImagingStudy-patient"/>
      <source>
        <context value="src"/>
        <element value="patient"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="patient"/>
        <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="ImagingStudy-uid"/>
      <source>
        <context value="src"/>
        <element value="uid"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="uid"/>
        <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="ImagingStudy-accession"/>
      <source>
        <context value="src"/>
        <element value="accession"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="accession"/>
        <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="ImagingStudy-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="ImagingStudy-modalityList"/>
      <source>
        <context value="src"/>
        <element value="modalityList"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="modalityList"/>
        <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="ImagingStudy-referrer"/>
      <source>
        <context value="src"/>
        <element value="referrer"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="referrer"/>
        <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="ImagingStudy-availability"/>
      <source>
        <context value="src"/>
        <element value="availability"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="availability"/>
        <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="ImagingStudy-url"/>
      <source>
        <context value="src"/>
        <element value="extension"/>
        <variable value="e"/>
        <condition value="e.url = 'http://hl7.org/fhir/ImagingStudy-r2-url'"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="modified"/>
        <transform value="evaluate"/>
        <parameter>
          <valueString value="e.value"/>
        </parameter>
      </target>
    </rule>
    <rule>
      <name value="ImagingStudy-numberOfSeries"/>
      <source>
        <context value="src"/>
        <element value="numberOfSeries"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="numberOfSeries"/>
        <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="ImagingStudy-numberOfInstances"/>
      <source>
        <context value="src"/>
        <element value="numberOfInstances"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="numberOfInstances"/>
        <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="ImagingStudy-procedure"/>
      <source>
        <context value="src"/>
        <element value="procedureReference"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="procedure"/>
        <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="ImagingStudy-interpreter"/>
      <source>
        <context value="src"/>
        <element value="interpreter"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="interpreter"/>
        <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="ImagingStudy-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="ImagingStudy-series"/>
      <source>
        <context value="src"/>
        <element value="series"/>
        <variable value="vs0"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="series"/>
        <variable value="vt0"/>
      </target>
      <dependent>
        <name value="imgSeries"/>
        <parameter>
          <valueId value="vs0"/>
        </parameter>
        <parameter>
          <valueId value="vt0"/>
        </parameter>
      </dependent>
    </rule>
  </group>
  <group>
    <name value="imgSeries"/>
    <extends value="BackboneElement"/>
    <input>
      <name value="src"/>
      <mode value="source"/>
    </input>
    <input>
      <name value="tgt"/>
      <mode value="target"/>
    </input>
    <rule>
      <name value="series-uid"/>
      <source>
        <context value="src"/>
        <element value="uid"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="uid"/>
        <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="series-number"/>
      <source>
        <context value="src"/>
        <element value="number"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="number"/>
        <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="series-modality"/>
      <source>
        <context value="src"/>
        <element value="modality"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="modality"/>
        <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="series-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="series-numberOfInstances"/>
      <source>
        <context value="src"/>
        <element value="numberOfInstances"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="numberOfInstances"/>
        <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="series-availability"/>
      <source>
        <context value="src"/>
        <element value="availability"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="availability"/>
        <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="series-url"/>
      <source>
        <context value="src"/>
        <element value="extension"/>
        <variable value="e"/>
        <condition value="e.url = 'http://hl7.org/fhir/ImagingStudy-r2-url'"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="modified"/>
        <transform value="evaluate"/>
        <parameter>
          <valueString value="e.value"/>
        </parameter>
      </target>
    </rule>
    <rule>
      <name value="series-bodySite"/>
      <source>
        <context value="src"/>
        <element value="bodySite"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="bodySite"/>
        <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="series-laterality"/>
      <source>
        <context value="src"/>
        <element value="laterality"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="laterality"/>
        <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="series-started"/>
      <source>
        <context value="src"/>
        <element value="started"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="started"/>
        <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="series-instance"/>
      <source>
        <context value="src"/>
        <element value="instance"/>
        <variable value="vs0"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="instance"/>
        <variable value="vt0"/>
      </target>
      <dependent>
        <name value="imgInstance"/>
        <parameter>
          <valueId value="vs0"/>
        </parameter>
        <parameter>
          <valueId value="vt0"/>
        </parameter>
      </dependent>
    </rule>
  </group>
  <group>
    <name value="imgInstance"/>
    <extends value="BackboneElement"/>
    <input>
      <name value="src"/>
      <mode value="source"/>
    </input>
    <input>
      <name value="tgt"/>
      <mode value="target"/>
    </input>
    <rule>
      <name value="instance-number"/>
      <source>
        <context value="src"/>
        <element value="number"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="number"/>
        <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="instance-uid"/>
      <source>
        <context value="src"/>
        <element value="uid"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="uid"/>
        <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="instance-sopClass"/>
      <source>
        <context value="src"/>
        <element value="sopClass"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="sopClass"/>
        <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="instance-title"/>
      <source>
        <context value="src"/>
        <element value="title"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="title"/>
        <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="imgSrc"/>
    <input>
      <name value="src"/>
      <mode value="source"/>
    </input>
    <input>
      <name value="tgt"/>
      <mode value="target"/>
    </input>
    <rule>
      <name value="imgSrc"/>
      <source>
        <context value="src"/>
        <element value="url"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="url"/>
        <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>