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

: Primitive Transforms: R3 to R2 - XML Representation

Page standards status: Draft Maturity Level: 1

Raw xml | Download



<StructureMap xmlns="http://hl7.org/fhir">
  <id value="primitives3to2"/>
  <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/primitives3to2'</span>
<span style="color: #cc00cc">/// <b>name</b> = </span><span style="color: blue">'primitives3to2'</span>
<span style="color: #cc00cc">/// <b>title</b> = </span><span style="color: blue">'Primitive 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/base64Binary<span style="color: navy">&quot; </span><b>as </b><b>source</b>
<b>uses</b><span style="color: navy"> &quot;</span>http://hl7.org/fhir/1.0/base64Binary<span style="color: navy">&quot; </span><b>alias </b>base64BinaryR2 <b>as </b><b>target</b>
<b>uses</b><span style="color: navy"> &quot;</span>http://hl7.org/fhir/3.0/boolean<span style="color: navy">&quot; </span><b>as </b><b>source</b>
<b>uses</b><span style="color: navy"> &quot;</span>http://hl7.org/fhir/1.0/boolean<span style="color: navy">&quot; </span><b>alias </b>booleanR2 <b>as </b><b>target</b>
<b>uses</b><span style="color: navy"> &quot;</span>http://hl7.org/fhir/3.0/code<span style="color: navy">&quot; </span><b>as </b><b>source</b>
<b>uses</b><span style="color: navy"> &quot;</span>http://hl7.org/fhir/1.0/code<span style="color: navy">&quot; </span><b>alias </b>codeR2 <b>as </b><b>target</b>
<b>uses</b><span style="color: navy"> &quot;</span>http://hl7.org/fhir/3.0/date<span style="color: navy">&quot; </span><b>as </b><b>source</b>
<b>uses</b><span style="color: navy"> &quot;</span>http://hl7.org/fhir/1.0/date<span style="color: navy">&quot; </span><b>alias </b>dateR2 <b>as </b><b>target</b>
<b>uses</b><span style="color: navy"> &quot;</span>http://hl7.org/fhir/3.0/dateTime<span style="color: navy">&quot; </span><b>as </b><b>source</b>
<b>uses</b><span style="color: navy"> &quot;</span>http://hl7.org/fhir/1.0/dateTime<span style="color: navy">&quot; </span><b>alias </b>dateTimeR2 <b>as </b><b>target</b>
<b>uses</b><span style="color: navy"> &quot;</span>http://hl7.org/fhir/3.0/decimal<span style="color: navy">&quot; </span><b>as </b><b>source</b>
<b>uses</b><span style="color: navy"> &quot;</span>http://hl7.org/fhir/1.0/decimal<span style="color: navy">&quot; </span><b>alias </b>decimalR2 <b>as </b><b>target</b>
<b>uses</b><span style="color: navy"> &quot;</span>http://hl7.org/fhir/3.0/id<span style="color: navy">&quot; </span><b>as </b><b>source</b>
<b>uses</b><span style="color: navy"> &quot;</span>http://hl7.org/fhir/1.0/id<span style="color: navy">&quot; </span><b>alias </b>idR2 <b>as </b><b>target</b>
<b>uses</b><span style="color: navy"> &quot;</span>http://hl7.org/fhir/3.0/instant<span style="color: navy">&quot; </span><b>as </b><b>source</b>
<b>uses</b><span style="color: navy"> &quot;</span>http://hl7.org/fhir/1.0/instant<span style="color: navy">&quot; </span><b>alias </b>instantR2 <b>as </b><b>target</b>
<b>uses</b><span style="color: navy"> &quot;</span>http://hl7.org/fhir/3.0/integer<span style="color: navy">&quot; </span><b>as </b><b>source</b>
<b>uses</b><span style="color: navy"> &quot;</span>http://hl7.org/fhir/1.0/integer<span style="color: navy">&quot; </span><b>alias </b>integerR2 <b>as </b><b>target</b>
<b>uses</b><span style="color: navy"> &quot;</span>http://hl7.org/fhir/3.0/markdown<span style="color: navy">&quot; </span><b>as </b><b>source</b>
<b>uses</b><span style="color: navy"> &quot;</span>http://hl7.org/fhir/1.0/markdown<span style="color: navy">&quot; </span><b>alias </b>markdownR2 <b>as </b><b>target</b>
<b>uses</b><span style="color: navy"> &quot;</span>http://hl7.org/fhir/3.0/oid<span style="color: navy">&quot; </span><b>as </b><b>source</b>
<b>uses</b><span style="color: navy"> &quot;</span>http://hl7.org/fhir/1.0/oid<span style="color: navy">&quot; </span><b>alias </b>oidR2 <b>as </b><b>target</b>
<b>uses</b><span style="color: navy"> &quot;</span>http://hl7.org/fhir/3.0/positiveInt<span style="color: navy">&quot; </span><b>as </b><b>source</b>
<b>uses</b><span style="color: navy"> &quot;</span>http://hl7.org/fhir/1.0/positiveInt<span style="color: navy">&quot; </span><b>alias </b>positiveIntR2 <b>as </b><b>target</b>
<b>uses</b><span style="color: navy"> &quot;</span>http://hl7.org/fhir/3.0/string<span style="color: navy">&quot; </span><b>as </b><b>source</b>
<b>uses</b><span style="color: navy"> &quot;</span>http://hl7.org/fhir/1.0/string<span style="color: navy">&quot; </span><b>alias </b>stringR2 <b>as </b><b>target</b>
<b>uses</b><span style="color: navy"> &quot;</span>http://hl7.org/fhir/3.0/time<span style="color: navy">&quot; </span><b>as </b><b>source</b>
<b>uses</b><span style="color: navy"> &quot;</span>http://hl7.org/fhir/1.0/time<span style="color: navy">&quot; </span><b>alias </b>timeR2 <b>as </b><b>target</b>
<b>uses</b><span style="color: navy"> &quot;</span>http://hl7.org/fhir/3.0/unsignedInt<span style="color: navy">&quot; </span><b>as </b><b>source</b>
<b>uses</b><span style="color: navy"> &quot;</span>http://hl7.org/fhir/1.0/unsignedInt<span style="color: navy">&quot; </span><b>alias </b>unsignedIntR2 <b>as </b><b>target</b>
<b>uses</b><span style="color: navy"> &quot;</span>http://hl7.org/fhir/3.0/uri<span style="color: navy">&quot; </span><b>as </b><b>source</b>
<b>uses</b><span style="color: navy"> &quot;</span>http://hl7.org/fhir/1.0/uri<span style="color: navy">&quot; </span><b>alias </b>uriR2 <b>as </b><b>target</b>
<b>uses</b><span style="color: navy"> &quot;</span>http://hl7.org/fhir/3.0/uuid<span style="color: navy">&quot; </span><b>as </b><b>source</b>
<b>uses</b><span style="color: navy"> &quot;</span>http://hl7.org/fhir/1.0/uuid<span style="color: navy">&quot; </span><b>alias </b>uuidR2 <b>as </b><b>target</b>
<b>uses</b><span style="color: navy"> &quot;</span>http://hl7.org/fhir/3.0/xhtml<span style="color: navy">&quot; </span><b>as </b><b>source</b>
<b>uses</b><span style="color: navy"> &quot;</span>http://hl7.org/fhir/1.0/xhtml<span style="color: navy">&quot; </span><b>alias </b>xhtmlR2 <b>as </b><b>target</b>

<b>imports</b><span style="color: navy"> &quot;</span><a href="StructureMap-Element3to2.html" title="Period Transforms: R3 to R2">http://hl7.org/fhir/StructureMap/Element3to2</a><span style="color: navy">&quot;
</span>
<b>group </b>base64Binary<span style="color: navy">(</span><b>source</b> <span style="color: maroon">src</span><span style="color: navy"> : </span>base64Binary, <b>target</b> <span style="color: maroon">tgt</span><span style="color: navy"> : </span>base64BinaryR2<span style="color: navy">)</span><b> extends </b>Element<b> &lt;&lt;type+&gt;&gt;</b><span style="color: navy"> {
</span>  src.value<b> as </b><span style="color: maroon">v</span><span style="color: navy"><b> -&gt; </b></span>tgt.value = <span style="color: maroon">v</span> <i>&quot;base64Binary-value&quot;</i><span style="color: navy">;</span>
<span style="color: navy">}

</span><b>group </b>boolean<span style="color: navy">(</span><b>source</b> <span style="color: maroon">src</span><span style="color: navy"> : </span>boolean, <b>target</b> <span style="color: maroon">tgt</span><span style="color: navy"> : </span>booleanR2<span style="color: navy">)</span><b> extends </b>Element<b> &lt;&lt;type+&gt;&gt;</b><span style="color: navy"> {
</span>  src.value<b> as </b><span style="color: maroon">v</span><span style="color: navy"><b> -&gt; </b></span>tgt.value = <span style="color: maroon">v</span> <i>&quot;boolean-value&quot;</i><span style="color: navy">;</span>
<span style="color: navy">}

</span><b>group </b>code<span style="color: navy">(</span><b>source</b> <span style="color: maroon">src</span><span style="color: navy"> : </span>code, <b>target</b> <span style="color: maroon">tgt</span><span style="color: navy"> : </span>codeR2<span style="color: navy">)</span><b> extends </b>Element<b> &lt;&lt;type+&gt;&gt;</b><span style="color: navy"> {
</span>  src.value<b> as </b><span style="color: maroon">v</span><span style="color: navy"><b> -&gt; </b></span>tgt.value = <span style="color: maroon">v</span> <i>&quot;code-value&quot;</i><span style="color: navy">;</span>
<span style="color: navy">}

</span><b>group </b>date<span style="color: navy">(</span><b>source</b> <span style="color: maroon">src</span><span style="color: navy"> : </span>date, <b>target</b> <span style="color: maroon">tgt</span><span style="color: navy"> : </span>dateR2<span style="color: navy">)</span><b> extends </b>Element<b> &lt;&lt;type+&gt;&gt;</b><span style="color: navy"> {
</span>  src.value<b> as </b><span style="color: maroon">v</span><span style="color: navy"><b> -&gt; </b></span>tgt.value = <span style="color: maroon">v</span> <i>&quot;date-value&quot;</i><span style="color: navy">;</span>
<span style="color: navy">}

</span><b>group </b>dateTime<span style="color: navy">(</span><b>source</b> <span style="color: maroon">src</span><span style="color: navy"> : </span>dateTime, <b>target</b> <span style="color: maroon">tgt</span><span style="color: navy"> : </span>dateTimeR2<span style="color: navy">)</span><b> extends </b>Element<b> &lt;&lt;type+&gt;&gt;</b><span style="color: navy"> {
</span>  src.value<b> as </b><span style="color: maroon">v</span><span style="color: navy"><b> -&gt; </b></span>tgt.value = <span style="color: maroon">v</span> <i>&quot;dateTime-value&quot;</i><span style="color: navy">;</span>
<span style="color: navy">}

</span><b>group </b>decimal<span style="color: navy">(</span><b>source</b> <span style="color: maroon">src</span><span style="color: navy"> : </span>decimal, <b>target</b> <span style="color: maroon">tgt</span><span style="color: navy"> : </span>decimalR2<span style="color: navy">)</span><b> extends </b>Element<b> &lt;&lt;type+&gt;&gt;</b><span style="color: navy"> {
</span>  src.value<b> as </b><span style="color: maroon">v</span><span style="color: navy"><b> -&gt; </b></span>tgt.value = <span style="color: maroon">v</span> <i>&quot;decimal-value&quot;</i><span style="color: navy">;</span>
<span style="color: navy">}

</span><b>group </b>id<span style="color: navy">(</span><b>source</b> <span style="color: maroon">src</span><span style="color: navy"> : </span>id, <b>target</b> <span style="color: maroon">tgt</span><span style="color: navy"> : </span>idR2<span style="color: navy">)</span><b> extends </b>Element<b> &lt;&lt;type+&gt;&gt;</b><span style="color: navy"> {
</span>  src.value<b> as </b><span style="color: maroon">v</span><span style="color: navy"><b> -&gt; </b></span>tgt.value = <span style="color: maroon">v</span> <i>&quot;id-value&quot;</i><span style="color: navy">;</span>
<span style="color: navy">}

</span><b>group </b>instant<span style="color: navy">(</span><b>source</b> <span style="color: maroon">src</span><span style="color: navy"> : </span>instant, <b>target</b> <span style="color: maroon">tgt</span><span style="color: navy"> : </span>instantR2<span style="color: navy">)</span><b> extends </b>Element<b> &lt;&lt;type+&gt;&gt;</b><span style="color: navy"> {
</span>  src.value<b> as </b><span style="color: maroon">v</span><span style="color: navy"><b> -&gt; </b></span>tgt.value = <span style="color: maroon">v</span> <i>&quot;instant-value&quot;</i><span style="color: navy">;</span>
<span style="color: navy">}

</span><b>group </b>integer<span style="color: navy">(</span><b>source</b> <span style="color: maroon">src</span><span style="color: navy"> : </span>integer, <b>target</b> <span style="color: maroon">tgt</span><span style="color: navy"> : </span>integerR2<span style="color: navy">)</span><b> extends </b>Element<b> &lt;&lt;type+&gt;&gt;</b><span style="color: navy"> {
</span>  src.value<b> as </b><span style="color: maroon">v</span><span style="color: navy"><b> -&gt; </b></span>tgt.value = <span style="color: maroon">v</span> <i>&quot;integer-value&quot;</i><span style="color: navy">;</span>
<span style="color: navy">}

</span><b>group </b>markdown<span style="color: navy">(</span><b>source</b> <span style="color: maroon">src</span><span style="color: navy"> : </span>markdown, <b>target</b> <span style="color: maroon">tgt</span><span style="color: navy"> : </span>markdownR2<span style="color: navy">)</span><b> extends </b>Element<b> &lt;&lt;type+&gt;&gt;</b><span style="color: navy"> {
</span>  src.value<b> as </b><span style="color: maroon">v</span><span style="color: navy"><b> -&gt; </b></span>tgt.value = <span style="color: maroon">v</span> <i>&quot;markdown-value&quot;</i><span style="color: navy">;</span>
<span style="color: navy">}

</span><b>group </b>oid<span style="color: navy">(</span><b>source</b> <span style="color: maroon">src</span><span style="color: navy"> : </span>oid, <b>target</b> <span style="color: maroon">tgt</span><span style="color: navy"> : </span>oidR2<span style="color: navy">)</span><b> extends </b>Element<b> &lt;&lt;type+&gt;&gt;</b><span style="color: navy"> {
</span>  src.value<b> as </b><span style="color: maroon">v</span><span style="color: navy"><b> -&gt; </b></span>tgt.value = <span style="color: maroon">v</span> <i>&quot;oid-value&quot;</i><span style="color: navy">;</span>
<span style="color: navy">}

</span><b>group </b>positiveInt<span style="color: navy">(</span><b>source</b> <span style="color: maroon">src</span><span style="color: navy"> : </span>positiveInt, <b>target</b> <span style="color: maroon">tgt</span><span style="color: navy"> : </span>positiveIntR2<span style="color: navy">)</span><b> extends </b>Element<b> &lt;&lt;type+&gt;&gt;</b><span style="color: navy"> {
</span>  src.value<b> as </b><span style="color: maroon">v</span><span style="color: navy"><b> -&gt; </b></span>tgt.value = <span style="color: maroon">v</span> <i>&quot;positiveInt-value&quot;</i><span style="color: navy">;</span>
<span style="color: navy">}

</span><b>group </b>string<span style="color: navy">(</span><b>source</b> <span style="color: maroon">src</span><span style="color: navy"> : </span>string, <b>target</b> <span style="color: maroon">tgt</span><span style="color: navy"> : </span>stringR2<span style="color: navy">)</span><b> extends </b>Element<b> &lt;&lt;type+&gt;&gt;</b><span style="color: navy"> {
</span>  src.value<b> as </b><span style="color: maroon">v</span><span style="color: navy"><b> -&gt; </b></span>tgt.value = <span style="color: maroon">v</span> <i>&quot;string-value&quot;</i><span style="color: navy">;</span>
<span style="color: navy">}

</span><b>group </b>time<span style="color: navy">(</span><b>source</b> <span style="color: maroon">src</span><span style="color: navy"> : </span>time, <b>target</b> <span style="color: maroon">tgt</span><span style="color: navy"> : </span>timeR2<span style="color: navy">)</span><b> extends </b>Element<b> &lt;&lt;type+&gt;&gt;</b><span style="color: navy"> {
</span>  src.value<b> as </b><span style="color: maroon">v</span><span style="color: navy"><b> -&gt; </b></span>tgt.value = <span style="color: maroon">v</span> <i>&quot;time-value&quot;</i><span style="color: navy">;</span>
<span style="color: navy">}

</span><b>group </b>unsignedInt<span style="color: navy">(</span><b>source</b> <span style="color: maroon">src</span><span style="color: navy"> : </span>unsignedInt, <b>target</b> <span style="color: maroon">tgt</span><span style="color: navy"> : </span>unsignedIntR2<span style="color: navy">)</span><b> extends </b>Element<b> &lt;&lt;type+&gt;&gt;</b><span style="color: navy"> {
</span>  src.value<b> as </b><span style="color: maroon">v</span><span style="color: navy"><b> -&gt; </b></span>tgt.value = <span style="color: maroon">v</span> <i>&quot;unsignedInt-value&quot;</i><span style="color: navy">;</span>
<span style="color: navy">}

</span><b>group </b>uri<span style="color: navy">(</span><b>source</b> <span style="color: maroon">src</span><span style="color: navy"> : </span>uri, <b>target</b> <span style="color: maroon">tgt</span><span style="color: navy"> : </span>uriR2<span style="color: navy">)</span><b> extends </b>Element<b> &lt;&lt;type+&gt;&gt;</b><span style="color: navy"> {
</span>  src.value<b> as </b><span style="color: maroon">v</span><span style="color: navy"><b> -&gt; </b></span>tgt.value = <span style="color: maroon">v</span> <i>&quot;uri-value&quot;</i><span style="color: navy">;</span>
<span style="color: navy">}

</span><b>group </b>uuid<span style="color: navy">(</span><b>source</b> <span style="color: maroon">src</span><span style="color: navy"> : </span>uuid, <b>target</b> <span style="color: maroon">tgt</span><span style="color: navy"> : </span>uuidR2<span style="color: navy">)</span><b> extends </b>Element<b> &lt;&lt;type+&gt;&gt;</b><span style="color: navy"> {
</span>  src.value<b> as </b><span style="color: maroon">v</span><span style="color: navy"><b> -&gt; </b></span>tgt.value = <span style="color: maroon">v</span> <i>&quot;uuid-value&quot;</i><span style="color: navy">;</span>
<span style="color: navy">}

</span><b>group </b>xhtml<span style="color: navy">(</span><b>source</b> <span style="color: maroon">src</span><span style="color: navy"> : </span>xhtml, <b>target</b> <span style="color: maroon">tgt</span><span style="color: navy"> : </span>xhtmlR2<span style="color: navy">)</span><b> extends </b>Element<b> &lt;&lt;type+&gt;&gt;</b><span style="color: navy"> {
</span>  src.value<b> as </b><span style="color: maroon">v</span><span style="color: navy"><b> -&gt; </b></span>tgt.value = <span style="color: maroon">v</span> <i>&quot;xhtml-value&quot;</i><span style="color: navy">;</span>
<span style="color: navy">}

</span><b>group </b>markdownToString<span style="color: navy">(</span><b>source</b> <span style="color: maroon">src</span><span style="color: navy"> : </span>markdown, <b>target</b> <span style="color: maroon">tgt</span><span style="color: navy"> : </span>stringR2<span style="color: navy">)</span><b> extends </b>Element<b> &lt;&lt;types&gt;&gt;</b><span style="color: navy"> {
</span>  src.value<b> as </b><span style="color: maroon">v</span><span style="color: navy"><b> -&gt; </b></span>tgt.value = <span style="color: maroon">v</span> <i>&quot;markdownToString-value&quot;</i><span style="color: navy">;</span>
<span style="color: navy">}

</span><b>group </b>uriToCode<span style="color: navy">(</span><b>source</b> <span style="color: maroon">src</span><span style="color: navy"> : </span>uri, <b>target</b> <span style="color: maroon">tgt</span><span style="color: navy"> : </span>codeR2<span style="color: navy">)</span><b> extends </b>Element<b> &lt;&lt;types&gt;&gt;</b><span style="color: navy"> {
</span>  src.value<b> as </b><span style="color: maroon">v</span><span style="color: navy"><b> -&gt; </b></span>tgt.value = <span style="color: maroon">v</span> <i>&quot;uriToCode-value&quot;</i><span style="color: navy">;</span>
<span style="color: navy">}

</span><b>group </b>uriToString<span style="color: navy">(</span><b>source</b> <span style="color: maroon">src</span><span style="color: navy"> : </span>uri, <b>target</b> <span style="color: maroon">tgt</span><span style="color: navy"> : </span>stringR2<span style="color: navy">)</span><b> extends </b>Element<b> &lt;&lt;types&gt;&gt;</b><span style="color: navy"> {
</span>  src.value<b> as </b><span style="color: maroon">v</span><span style="color: navy"><b> -&gt; </b></span>tgt.value = <span style="color: maroon">v</span> <i>&quot;uriToString-value&quot;</i><span style="color: navy">;</span>
<span style="color: navy">}

</span><b>group </b>stringToXhtml<span style="color: navy">(</span><b>source</b> <span style="color: maroon">src</span><span style="color: navy"> : </span>string, <b>target</b> <span style="color: maroon">tgt</span><span style="color: navy"> : </span>xhtmlR2<span style="color: navy">)</span><b> extends </b>Element<b> &lt;&lt;types&gt;&gt;</b><span style="color: navy"> {
</span>  src.value<b> as </b><span style="color: maroon">v</span><span style="color: navy"><b> -&gt; </b></span>tgt.value = <span style="color: maroon">v</span> <i>&quot;stringToXhtml-value&quot;</i><span style="color: navy">;</span>
<span style="color: navy">}

</span><b>group </b>codeToString<span style="color: navy">(</span><b>source</b> <span style="color: maroon">src</span><span style="color: navy"> : </span>code, <b>target</b> <span style="color: maroon">tgt</span><span style="color: navy"> : </span>stringR2<span style="color: navy">)</span><b> extends </b>Element<b> &lt;&lt;types&gt;&gt;</b><span style="color: navy"> {
</span>  src.value<b> as </b><span style="color: maroon">v</span><span style="color: navy"><b> -&gt; </b></span>tgt.value = <span style="color: maroon">v</span> <i>&quot;uriToCode-value&quot;</i><span style="color: navy">;</span>
<span style="color: navy">}

</span><b>group </b>stringToId<span style="color: navy">(</span><b>source</b> <span style="color: maroon">src</span><span style="color: navy"> : </span>string, <b>target</b> <span style="color: maroon">tgt</span><span style="color: navy"> : </span>idR2<span style="color: navy">)</span><b> extends </b>Element<b> &lt;&lt;types&gt;&gt;</b><span style="color: navy"> {
</span>  src.value<b> as </b><span style="color: maroon">v</span><span style="color: navy"><b> -&gt; </b></span>tgt.value = <span style="color: maroon">v</span> <i>&quot;stringToId-value&quot;</i><span style="color: navy">;</span>
<span style="color: navy">}

</span><b>group </b>idToString<span style="color: navy">(</span><b>source</b> <span style="color: maroon">src</span><span style="color: navy"> : </span>id, <b>target</b> <span style="color: maroon">tgt</span><span style="color: navy"> : </span>stringR2<span style="color: navy">)</span><b> extends </b>Element<b> &lt;&lt;types&gt;&gt;</b><span style="color: navy"> {
</span>  src.value<b> as </b><span style="color: maroon">v</span><span style="color: navy"><b> -&gt; </b></span>tgt.value = <span style="color: maroon">v</span> <i>&quot;stringToId-value&quot;</i><span style="color: navy">;</span>
<span style="color: navy">}

</span><b>group </b>positiveIntToInteger<span style="color: navy">(</span><b>source</b> <span style="color: maroon">src</span><span style="color: navy"> : </span>positiveIntR2, <b>target</b> <span style="color: maroon">tgt</span><span style="color: navy"> : </span>integer<span style="color: navy">)</span><b> extends </b>Element<b> &lt;&lt;types&gt;&gt;</b><span style="color: navy"> {
</span>  src.value<b> as </b><span style="color: maroon">v</span><span style="color: navy"><b> -&gt; </b></span>tgt.value = <span style="color: maroon">v</span> <i>&quot;positiveIntToInteger-value&quot;</i><span style="color: navy">;</span>
<span style="color: navy">}

</span><b>group </b>unsignedIntToInteger<span style="color: navy">(</span><b>source</b> <span style="color: maroon">src</span><span style="color: navy"> : </span>unsignedIntR2, <b>target</b> <span style="color: maroon">tgt</span><span style="color: navy"> : </span>integer<span style="color: navy">)</span><b> extends </b>Element<b> &lt;&lt;types&gt;&gt;</b><span style="color: navy"> {
</span>  src.value<b> as </b><span style="color: maroon">v</span><span style="color: navy"><b> -&gt; </b></span>tgt.value = <span style="color: maroon">v</span> <i>&quot;unsignedIntToInteger-value&quot;</i><span style="color: navy">;</span>
<span style="color: navy">}

</span><b>group </b>dateToDateTime<span style="color: navy">(</span><b>source</b> <span style="color: maroon">src</span><span style="color: navy"> : </span>date, <b>target</b> <span style="color: maroon">tgt</span><span style="color: navy"> : </span>dateTimeR2<span style="color: navy">)</span><b> extends </b>Element<b> &lt;&lt;types&gt;&gt;</b><span style="color: navy"> {
</span>  src.value<b> as </b><span style="color: maroon">v</span><span style="color: navy"><b> -&gt; </b></span>tgt.value = <span style="color: maroon">v</span> <i>&quot;dateToDateTime-value&quot;</i><span style="color: navy">;</span>
<span style="color: navy">}

</span><b>group </b>dateTimeToDate<span style="color: navy">(</span><b>source</b> <span style="color: maroon">src</span><span style="color: navy"> : </span>dateTime, <b>target</b> <span style="color: maroon">tgt</span><span style="color: navy"> : </span>dateR2<span style="color: navy">)</span><b> extends </b>Element<b> &lt;&lt;types&gt;&gt;</b><span style="color: navy"> {
</span>  src.value<b> as </b><span style="color: maroon">v</span><span style="color: navy"><b> -&gt; </b></span>tgt.value = <span style="color: navy">(</span>v.substring(0, 8)<span style="color: navy">)</span> <i>&quot;dateTimeToDate-value&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/primitives3to2"/>
  <version value="0.1.0"/>
  <name value="primitives3to2"/>
  <title value="Primitive 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="PrimitiveTransformsR3toR2"/>
  <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/base64Binary"/>
    <mode value="source"/>
  </structure>
  <structure>
    <url value="http://hl7.org/fhir/1.0/base64Binary"/>
    <mode value="target"/>
    <alias value="base64BinaryR2"/>
  </structure>
  <structure>
    <url value="http://hl7.org/fhir/3.0/boolean"/>
    <mode value="source"/>
  </structure>
  <structure>
    <url value="http://hl7.org/fhir/1.0/boolean"/>
    <mode value="target"/>
    <alias value="booleanR2"/>
  </structure>
  <structure>
    <url value="http://hl7.org/fhir/3.0/code"/>
    <mode value="source"/>
  </structure>
  <structure>
    <url value="http://hl7.org/fhir/1.0/code"/>
    <mode value="target"/>
    <alias value="codeR2"/>
  </structure>
  <structure>
    <url value="http://hl7.org/fhir/3.0/date"/>
    <mode value="source"/>
  </structure>
  <structure>
    <url value="http://hl7.org/fhir/1.0/date"/>
    <mode value="target"/>
    <alias value="dateR2"/>
  </structure>
  <structure>
    <url value="http://hl7.org/fhir/3.0/dateTime"/>
    <mode value="source"/>
  </structure>
  <structure>
    <url value="http://hl7.org/fhir/1.0/dateTime"/>
    <mode value="target"/>
    <alias value="dateTimeR2"/>
  </structure>
  <structure>
    <url value="http://hl7.org/fhir/3.0/decimal"/>
    <mode value="source"/>
  </structure>
  <structure>
    <url value="http://hl7.org/fhir/1.0/decimal"/>
    <mode value="target"/>
    <alias value="decimalR2"/>
  </structure>
  <structure>
    <url value="http://hl7.org/fhir/3.0/id"/>
    <mode value="source"/>
  </structure>
  <structure>
    <url value="http://hl7.org/fhir/1.0/id"/>
    <mode value="target"/>
    <alias value="idR2"/>
  </structure>
  <structure>
    <url value="http://hl7.org/fhir/3.0/instant"/>
    <mode value="source"/>
  </structure>
  <structure>
    <url value="http://hl7.org/fhir/1.0/instant"/>
    <mode value="target"/>
    <alias value="instantR2"/>
  </structure>
  <structure>
    <url value="http://hl7.org/fhir/3.0/integer"/>
    <mode value="source"/>
  </structure>
  <structure>
    <url value="http://hl7.org/fhir/1.0/integer"/>
    <mode value="target"/>
    <alias value="integerR2"/>
  </structure>
  <structure>
    <url value="http://hl7.org/fhir/3.0/markdown"/>
    <mode value="source"/>
  </structure>
  <structure>
    <url value="http://hl7.org/fhir/1.0/markdown"/>
    <mode value="target"/>
    <alias value="markdownR2"/>
  </structure>
  <structure>
    <url value="http://hl7.org/fhir/3.0/oid"/>
    <mode value="source"/>
  </structure>
  <structure>
    <url value="http://hl7.org/fhir/1.0/oid"/>
    <mode value="target"/>
    <alias value="oidR2"/>
  </structure>
  <structure>
    <url value="http://hl7.org/fhir/3.0/positiveInt"/>
    <mode value="source"/>
  </structure>
  <structure>
    <url value="http://hl7.org/fhir/1.0/positiveInt"/>
    <mode value="target"/>
    <alias value="positiveIntR2"/>
  </structure>
  <structure>
    <url value="http://hl7.org/fhir/3.0/string"/>
    <mode value="source"/>
  </structure>
  <structure>
    <url value="http://hl7.org/fhir/1.0/string"/>
    <mode value="target"/>
    <alias value="stringR2"/>
  </structure>
  <structure>
    <url value="http://hl7.org/fhir/3.0/time"/>
    <mode value="source"/>
  </structure>
  <structure>
    <url value="http://hl7.org/fhir/1.0/time"/>
    <mode value="target"/>
    <alias value="timeR2"/>
  </structure>
  <structure>
    <url value="http://hl7.org/fhir/3.0/unsignedInt"/>
    <mode value="source"/>
  </structure>
  <structure>
    <url value="http://hl7.org/fhir/1.0/unsignedInt"/>
    <mode value="target"/>
    <alias value="unsignedIntR2"/>
  </structure>
  <structure>
    <url value="http://hl7.org/fhir/3.0/uri"/>
    <mode value="source"/>
  </structure>
  <structure>
    <url value="http://hl7.org/fhir/1.0/uri"/>
    <mode value="target"/>
    <alias value="uriR2"/>
  </structure>
  <structure>
    <url value="http://hl7.org/fhir/3.0/uuid"/>
    <mode value="source"/>
  </structure>
  <structure>
    <url value="http://hl7.org/fhir/1.0/uuid"/>
    <mode value="target"/>
    <alias value="uuidR2"/>
  </structure>
  <structure>
    <url value="http://hl7.org/fhir/3.0/xhtml"/>
    <mode value="source"/>
  </structure>
  <structure>
    <url value="http://hl7.org/fhir/1.0/xhtml"/>
    <mode value="target"/>
    <alias value="xhtmlR2"/>
  </structure>
  <import value="http://hl7.org/fhir/StructureMap/Element3to2"/>
  <group>
    <name value="base64Binary"/>
    <extends value="Element"/>
    <typeMode value="type-and-types"/>
    <input>
      <name value="src"/>
      <type value="base64Binary"/>
      <mode value="source"/>
    </input>
    <input>
      <name value="tgt"/>
      <type value="base64BinaryR2"/>
      <mode value="target"/>
    </input>
    <rule>
      <name value="base64Binary-value"/>
      <source>
        <context value="src"/>
        <element value="value"/>
        <variable value="v"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="value"/>
        <transform value="copy"/>
        <parameter>
          <valueId value="v"/>
        </parameter>
      </target>
    </rule>
  </group>
  <group>
    <name value="boolean"/>
    <extends value="Element"/>
    <typeMode value="type-and-types"/>
    <input>
      <name value="src"/>
      <type value="boolean"/>
      <mode value="source"/>
    </input>
    <input>
      <name value="tgt"/>
      <type value="booleanR2"/>
      <mode value="target"/>
    </input>
    <rule>
      <name value="boolean-value"/>
      <source>
        <context value="src"/>
        <element value="value"/>
        <variable value="v"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="value"/>
        <transform value="copy"/>
        <parameter>
          <valueId value="v"/>
        </parameter>
      </target>
    </rule>
  </group>
  <group>
    <name value="code"/>
    <extends value="Element"/>
    <typeMode value="type-and-types"/>
    <input>
      <name value="src"/>
      <type value="code"/>
      <mode value="source"/>
    </input>
    <input>
      <name value="tgt"/>
      <type value="codeR2"/>
      <mode value="target"/>
    </input>
    <rule>
      <name value="code-value"/>
      <source>
        <context value="src"/>
        <element value="value"/>
        <variable value="v"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="value"/>
        <transform value="copy"/>
        <parameter>
          <valueId value="v"/>
        </parameter>
      </target>
    </rule>
  </group>
  <group>
    <name value="date"/>
    <extends value="Element"/>
    <typeMode value="type-and-types"/>
    <input>
      <name value="src"/>
      <type value="date"/>
      <mode value="source"/>
    </input>
    <input>
      <name value="tgt"/>
      <type value="dateR2"/>
      <mode value="target"/>
    </input>
    <rule>
      <name value="date-value"/>
      <source>
        <context value="src"/>
        <element value="value"/>
        <variable value="v"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="value"/>
        <transform value="copy"/>
        <parameter>
          <valueId value="v"/>
        </parameter>
      </target>
    </rule>
  </group>
  <group>
    <name value="dateTime"/>
    <extends value="Element"/>
    <typeMode value="type-and-types"/>
    <input>
      <name value="src"/>
      <type value="dateTime"/>
      <mode value="source"/>
    </input>
    <input>
      <name value="tgt"/>
      <type value="dateTimeR2"/>
      <mode value="target"/>
    </input>
    <rule>
      <name value="dateTime-value"/>
      <source>
        <context value="src"/>
        <element value="value"/>
        <variable value="v"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="value"/>
        <transform value="copy"/>
        <parameter>
          <valueId value="v"/>
        </parameter>
      </target>
    </rule>
  </group>
  <group>
    <name value="decimal"/>
    <extends value="Element"/>
    <typeMode value="type-and-types"/>
    <input>
      <name value="src"/>
      <type value="decimal"/>
      <mode value="source"/>
    </input>
    <input>
      <name value="tgt"/>
      <type value="decimalR2"/>
      <mode value="target"/>
    </input>
    <rule>
      <name value="decimal-value"/>
      <source>
        <context value="src"/>
        <element value="value"/>
        <variable value="v"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="value"/>
        <transform value="copy"/>
        <parameter>
          <valueId value="v"/>
        </parameter>
      </target>
    </rule>
  </group>
  <group>
    <name value="id"/>
    <extends value="Element"/>
    <typeMode value="type-and-types"/>
    <input>
      <name value="src"/>
      <type value="id"/>
      <mode value="source"/>
    </input>
    <input>
      <name value="tgt"/>
      <type value="idR2"/>
      <mode value="target"/>
    </input>
    <rule>
      <name value="id-value"/>
      <source>
        <context value="src"/>
        <element value="value"/>
        <variable value="v"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="value"/>
        <transform value="copy"/>
        <parameter>
          <valueId value="v"/>
        </parameter>
      </target>
    </rule>
  </group>
  <group>
    <name value="instant"/>
    <extends value="Element"/>
    <typeMode value="type-and-types"/>
    <input>
      <name value="src"/>
      <type value="instant"/>
      <mode value="source"/>
    </input>
    <input>
      <name value="tgt"/>
      <type value="instantR2"/>
      <mode value="target"/>
    </input>
    <rule>
      <name value="instant-value"/>
      <source>
        <context value="src"/>
        <element value="value"/>
        <variable value="v"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="value"/>
        <transform value="copy"/>
        <parameter>
          <valueId value="v"/>
        </parameter>
      </target>
    </rule>
  </group>
  <group>
    <name value="integer"/>
    <extends value="Element"/>
    <typeMode value="type-and-types"/>
    <input>
      <name value="src"/>
      <type value="integer"/>
      <mode value="source"/>
    </input>
    <input>
      <name value="tgt"/>
      <type value="integerR2"/>
      <mode value="target"/>
    </input>
    <rule>
      <name value="integer-value"/>
      <source>
        <context value="src"/>
        <element value="value"/>
        <variable value="v"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="value"/>
        <transform value="copy"/>
        <parameter>
          <valueId value="v"/>
        </parameter>
      </target>
    </rule>
  </group>
  <group>
    <name value="markdown"/>
    <extends value="Element"/>
    <typeMode value="type-and-types"/>
    <input>
      <name value="src"/>
      <type value="markdown"/>
      <mode value="source"/>
    </input>
    <input>
      <name value="tgt"/>
      <type value="markdownR2"/>
      <mode value="target"/>
    </input>
    <rule>
      <name value="markdown-value"/>
      <source>
        <context value="src"/>
        <element value="value"/>
        <variable value="v"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="value"/>
        <transform value="copy"/>
        <parameter>
          <valueId value="v"/>
        </parameter>
      </target>
    </rule>
  </group>
  <group>
    <name value="oid"/>
    <extends value="Element"/>
    <typeMode value="type-and-types"/>
    <input>
      <name value="src"/>
      <type value="oid"/>
      <mode value="source"/>
    </input>
    <input>
      <name value="tgt"/>
      <type value="oidR2"/>
      <mode value="target"/>
    </input>
    <rule>
      <name value="oid-value"/>
      <source>
        <context value="src"/>
        <element value="value"/>
        <variable value="v"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="value"/>
        <transform value="copy"/>
        <parameter>
          <valueId value="v"/>
        </parameter>
      </target>
    </rule>
  </group>
  <group>
    <name value="positiveInt"/>
    <extends value="Element"/>
    <typeMode value="type-and-types"/>
    <input>
      <name value="src"/>
      <type value="positiveInt"/>
      <mode value="source"/>
    </input>
    <input>
      <name value="tgt"/>
      <type value="positiveIntR2"/>
      <mode value="target"/>
    </input>
    <rule>
      <name value="positiveInt-value"/>
      <source>
        <context value="src"/>
        <element value="value"/>
        <variable value="v"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="value"/>
        <transform value="copy"/>
        <parameter>
          <valueId value="v"/>
        </parameter>
      </target>
    </rule>
  </group>
  <group>
    <name value="string"/>
    <extends value="Element"/>
    <typeMode value="type-and-types"/>
    <input>
      <name value="src"/>
      <type value="string"/>
      <mode value="source"/>
    </input>
    <input>
      <name value="tgt"/>
      <type value="stringR2"/>
      <mode value="target"/>
    </input>
    <rule>
      <name value="string-value"/>
      <source>
        <context value="src"/>
        <element value="value"/>
        <variable value="v"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="value"/>
        <transform value="copy"/>
        <parameter>
          <valueId value="v"/>
        </parameter>
      </target>
    </rule>
  </group>
  <group>
    <name value="time"/>
    <extends value="Element"/>
    <typeMode value="type-and-types"/>
    <input>
      <name value="src"/>
      <type value="time"/>
      <mode value="source"/>
    </input>
    <input>
      <name value="tgt"/>
      <type value="timeR2"/>
      <mode value="target"/>
    </input>
    <rule>
      <name value="time-value"/>
      <source>
        <context value="src"/>
        <element value="value"/>
        <variable value="v"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="value"/>
        <transform value="copy"/>
        <parameter>
          <valueId value="v"/>
        </parameter>
      </target>
    </rule>
  </group>
  <group>
    <name value="unsignedInt"/>
    <extends value="Element"/>
    <typeMode value="type-and-types"/>
    <input>
      <name value="src"/>
      <type value="unsignedInt"/>
      <mode value="source"/>
    </input>
    <input>
      <name value="tgt"/>
      <type value="unsignedIntR2"/>
      <mode value="target"/>
    </input>
    <rule>
      <name value="unsignedInt-value"/>
      <source>
        <context value="src"/>
        <element value="value"/>
        <variable value="v"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="value"/>
        <transform value="copy"/>
        <parameter>
          <valueId value="v"/>
        </parameter>
      </target>
    </rule>
  </group>
  <group>
    <name value="uri"/>
    <extends value="Element"/>
    <typeMode value="type-and-types"/>
    <input>
      <name value="src"/>
      <type value="uri"/>
      <mode value="source"/>
    </input>
    <input>
      <name value="tgt"/>
      <type value="uriR2"/>
      <mode value="target"/>
    </input>
    <rule>
      <name value="uri-value"/>
      <source>
        <context value="src"/>
        <element value="value"/>
        <variable value="v"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="value"/>
        <transform value="copy"/>
        <parameter>
          <valueId value="v"/>
        </parameter>
      </target>
    </rule>
  </group>
  <group>
    <name value="uuid"/>
    <extends value="Element"/>
    <typeMode value="type-and-types"/>
    <input>
      <name value="src"/>
      <type value="uuid"/>
      <mode value="source"/>
    </input>
    <input>
      <name value="tgt"/>
      <type value="uuidR2"/>
      <mode value="target"/>
    </input>
    <rule>
      <name value="uuid-value"/>
      <source>
        <context value="src"/>
        <element value="value"/>
        <variable value="v"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="value"/>
        <transform value="copy"/>
        <parameter>
          <valueId value="v"/>
        </parameter>
      </target>
    </rule>
  </group>
  <group>
    <name value="xhtml"/>
    <extends value="Element"/>
    <typeMode value="type-and-types"/>
    <input>
      <name value="src"/>
      <type value="xhtml"/>
      <mode value="source"/>
    </input>
    <input>
      <name value="tgt"/>
      <type value="xhtmlR2"/>
      <mode value="target"/>
    </input>
    <rule>
      <name value="xhtml-value"/>
      <source>
        <context value="src"/>
        <element value="value"/>
        <variable value="v"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="value"/>
        <transform value="copy"/>
        <parameter>
          <valueId value="v"/>
        </parameter>
      </target>
    </rule>
  </group>
  <group>
    <name value="markdownToString"/>
    <extends value="Element"/>
    <typeMode value="types"/>
    <input>
      <name value="src"/>
      <type value="markdown"/>
      <mode value="source"/>
    </input>
    <input>
      <name value="tgt"/>
      <type value="stringR2"/>
      <mode value="target"/>
    </input>
    <rule>
      <name value="markdownToString-value"/>
      <source>
        <context value="src"/>
        <element value="value"/>
        <variable value="v"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="value"/>
        <transform value="copy"/>
        <parameter>
          <valueId value="v"/>
        </parameter>
      </target>
    </rule>
  </group>
  <group>
    <name value="uriToCode"/>
    <extends value="Element"/>
    <typeMode value="types"/>
    <input>
      <name value="src"/>
      <type value="uri"/>
      <mode value="source"/>
    </input>
    <input>
      <name value="tgt"/>
      <type value="codeR2"/>
      <mode value="target"/>
    </input>
    <rule>
      <name value="uriToCode-value"/>
      <source>
        <context value="src"/>
        <element value="value"/>
        <variable value="v"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="value"/>
        <transform value="copy"/>
        <parameter>
          <valueId value="v"/>
        </parameter>
      </target>
    </rule>
  </group>
  <group>
    <name value="uriToString"/>
    <extends value="Element"/>
    <typeMode value="types"/>
    <input>
      <name value="src"/>
      <type value="uri"/>
      <mode value="source"/>
    </input>
    <input>
      <name value="tgt"/>
      <type value="stringR2"/>
      <mode value="target"/>
    </input>
    <rule>
      <name value="uriToString-value"/>
      <source>
        <context value="src"/>
        <element value="value"/>
        <variable value="v"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="value"/>
        <transform value="copy"/>
        <parameter>
          <valueId value="v"/>
        </parameter>
      </target>
    </rule>
  </group>
  <group>
    <name value="stringToXhtml"/>
    <extends value="Element"/>
    <typeMode value="types"/>
    <input>
      <name value="src"/>
      <type value="string"/>
      <mode value="source"/>
    </input>
    <input>
      <name value="tgt"/>
      <type value="xhtmlR2"/>
      <mode value="target"/>
    </input>
    <rule>
      <name value="stringToXhtml-value"/>
      <source>
        <context value="src"/>
        <element value="value"/>
        <variable value="v"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="value"/>
        <transform value="copy"/>
        <parameter>
          <valueId value="v"/>
        </parameter>
      </target>
    </rule>
  </group>
  <group>
    <name value="codeToString"/>
    <extends value="Element"/>
    <typeMode value="types"/>
    <input>
      <name value="src"/>
      <type value="code"/>
      <mode value="source"/>
    </input>
    <input>
      <name value="tgt"/>
      <type value="stringR2"/>
      <mode value="target"/>
    </input>
    <rule>
      <name value="uriToCode-value"/>
      <source>
        <context value="src"/>
        <element value="value"/>
        <variable value="v"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="value"/>
        <transform value="copy"/>
        <parameter>
          <valueId value="v"/>
        </parameter>
      </target>
    </rule>
  </group>
  <group>
    <name value="stringToId"/>
    <extends value="Element"/>
    <typeMode value="types"/>
    <input>
      <name value="src"/>
      <type value="string"/>
      <mode value="source"/>
    </input>
    <input>
      <name value="tgt"/>
      <type value="idR2"/>
      <mode value="target"/>
    </input>
    <rule>
      <name value="stringToId-value"/>
      <source>
        <context value="src"/>
        <element value="value"/>
        <variable value="v"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="value"/>
        <transform value="copy"/>
        <parameter>
          <valueId value="v"/>
        </parameter>
      </target>
    </rule>
  </group>
  <group>
    <name value="idToString"/>
    <extends value="Element"/>
    <typeMode value="types"/>
    <input>
      <name value="src"/>
      <type value="id"/>
      <mode value="source"/>
    </input>
    <input>
      <name value="tgt"/>
      <type value="stringR2"/>
      <mode value="target"/>
    </input>
    <rule>
      <name value="stringToId-value"/>
      <source>
        <context value="src"/>
        <element value="value"/>
        <variable value="v"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="value"/>
        <transform value="copy"/>
        <parameter>
          <valueId value="v"/>
        </parameter>
      </target>
    </rule>
  </group>
  <group>
    <name value="positiveIntToInteger"/>
    <extends value="Element"/>
    <typeMode value="types"/>
    <input>
      <name value="src"/>
      <type value="positiveIntR2"/>
      <mode value="source"/>
    </input>
    <input>
      <name value="tgt"/>
      <type value="integer"/>
      <mode value="target"/>
    </input>
    <rule>
      <name value="positiveIntToInteger-value"/>
      <source>
        <context value="src"/>
        <element value="value"/>
        <variable value="v"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="value"/>
        <transform value="copy"/>
        <parameter>
          <valueId value="v"/>
        </parameter>
      </target>
    </rule>
  </group>
  <group>
    <name value="unsignedIntToInteger"/>
    <extends value="Element"/>
    <typeMode value="types"/>
    <input>
      <name value="src"/>
      <type value="unsignedIntR2"/>
      <mode value="source"/>
    </input>
    <input>
      <name value="tgt"/>
      <type value="integer"/>
      <mode value="target"/>
    </input>
    <rule>
      <name value="unsignedIntToInteger-value"/>
      <source>
        <context value="src"/>
        <element value="value"/>
        <variable value="v"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="value"/>
        <transform value="copy"/>
        <parameter>
          <valueId value="v"/>
        </parameter>
      </target>
    </rule>
  </group>
  <group>
    <name value="dateToDateTime"/>
    <extends value="Element"/>
    <typeMode value="types"/>
    <input>
      <name value="src"/>
      <type value="date"/>
      <mode value="source"/>
    </input>
    <input>
      <name value="tgt"/>
      <type value="dateTimeR2"/>
      <mode value="target"/>
    </input>
    <rule>
      <name value="dateToDateTime-value"/>
      <source>
        <context value="src"/>
        <element value="value"/>
        <variable value="v"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="value"/>
        <transform value="copy"/>
        <parameter>
          <valueId value="v"/>
        </parameter>
      </target>
    </rule>
  </group>
  <group>
    <name value="dateTimeToDate"/>
    <extends value="Element"/>
    <typeMode value="types"/>
    <input>
      <name value="src"/>
      <type value="dateTime"/>
      <mode value="source"/>
    </input>
    <input>
      <name value="tgt"/>
      <type value="dateR2"/>
      <mode value="target"/>
    </input>
    <rule>
      <name value="dateTimeToDate-value"/>
      <source>
        <context value="src"/>
        <element value="value"/>
        <variable value="v"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="value"/>
        <transform value="evaluate"/>
        <parameter>
          <valueString value="v.substring(0, 8)"/>
        </parameter>
      </target>
    </rule>
  </group>
</StructureMap>