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: R2 to R3 - XML Representation

Page standards status: Draft Maturity Level: 1

Raw xml | Download



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

<b>uses</b><span style="color: navy"> &quot;</span>http://hl7.org/fhir/1.0/base64Binary<span style="color: navy">&quot; </span><b>alias </b>base64BinaryR2 <b>as </b><b>source</b>
<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>target</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>source</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>target</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>source</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>target</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>source</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>target</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>source</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>target</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>source</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>target</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>source</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>target</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>source</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>target</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>source</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>target</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>source</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>target</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>source</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>target</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>source</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>target</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>source</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>target</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>source</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>target</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>source</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>target</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>source</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>target</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>source</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>target</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>source</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>target</b>

<b>imports</b><span style="color: navy"> &quot;</span><a href="StructureMap-Element2to3.html" title="Period Transforms: R2 to R3">http://hl7.org/fhir/StructureMap/Element2to3</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>base64BinaryR2, <b>target</b> <span style="color: maroon">tgt</span><span style="color: navy"> : </span>base64Binary<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>booleanR2, <b>target</b> <span style="color: maroon">tgt</span><span style="color: navy"> : </span>boolean<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>codeR2, <b>target</b> <span style="color: maroon">tgt</span><span style="color: navy"> : </span>code<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>dateR2, <b>target</b> <span style="color: maroon">tgt</span><span style="color: navy"> : </span>date<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>dateTimeR2, <b>target</b> <span style="color: maroon">tgt</span><span style="color: navy"> : </span>dateTime<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>decimalR2, <b>target</b> <span style="color: maroon">tgt</span><span style="color: navy"> : </span>decimal<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>idR2, <b>target</b> <span style="color: maroon">tgt</span><span style="color: navy"> : </span>id<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>instantR2, <b>target</b> <span style="color: maroon">tgt</span><span style="color: navy"> : </span>instant<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>integerR2, <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;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>markdownR2, <b>target</b> <span style="color: maroon">tgt</span><span style="color: navy"> : </span>markdown<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>oidR2, <b>target</b> <span style="color: maroon">tgt</span><span style="color: navy"> : </span>oid<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>positiveIntR2, <b>target</b> <span style="color: maroon">tgt</span><span style="color: navy"> : </span>positiveInt<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>stringR2, <b>target</b> <span style="color: maroon">tgt</span><span style="color: navy"> : </span>string<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>timeR2, <b>target</b> <span style="color: maroon">tgt</span><span style="color: navy"> : </span>time<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>unsignedIntR2, <b>target</b> <span style="color: maroon">tgt</span><span style="color: navy"> : </span>unsignedInt<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>uriR2, <b>target</b> <span style="color: maroon">tgt</span><span style="color: navy"> : </span>uri<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>uuidR2, <b>target</b> <span style="color: maroon">tgt</span><span style="color: navy"> : </span>uuid<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>xhtmlR2, <b>target</b> <span style="color: maroon">tgt</span><span style="color: navy"> : </span>xhtml<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>stringToMarkdown<span style="color: navy">(</span><b>source</b> <span style="color: maroon">src</span><span style="color: navy"> : </span>stringR2, <b>target</b> <span style="color: maroon">tgt</span><span style="color: navy"> : </span>markdown<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;stringToMarkdown-value&quot;</i><span style="color: navy">;</span>
<span style="color: navy">}

</span><b>group </b>codeToUri<span style="color: navy">(</span><b>source</b> <span style="color: maroon">src</span><span style="color: navy"> : </span>codeR2, <b>target</b> <span style="color: maroon">tgt</span><span style="color: navy"> : </span>uri<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;codeToUri-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>stringR2, <b>target</b> <span style="color: maroon">tgt</span><span style="color: navy"> : </span>id<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>idR2, <b>target</b> <span style="color: maroon">tgt</span><span style="color: navy"> : </span>string<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>stringToUri<span style="color: navy">(</span><b>source</b> <span style="color: maroon">src</span><span style="color: navy"> : </span>stringR2, <b>target</b> <span style="color: maroon">tgt</span><span style="color: navy"> : </span>uri<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;stringToUri-value&quot;</i><span style="color: navy">;</span>
<span style="color: navy">}

</span><b>group </b>stringToCode<span style="color: navy">(</span><b>source</b> <span style="color: maroon">src</span><span style="color: navy"> : </span>stringR2, <b>target</b> <span style="color: maroon">tgt</span><span style="color: navy"> : </span>code<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;stringToCode-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>codeR2, <b>target</b> <span style="color: maroon">tgt</span><span style="color: navy"> : </span>string<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;stringToCode-value&quot;</i><span style="color: navy">;</span>
<span style="color: navy">}

</span><b>group </b>integerToPositiveInt<span style="color: navy">(</span><b>source</b> <span style="color: maroon">src</span><span style="color: navy"> : </span>integerR2, <b>target</b> <span style="color: maroon">tgt</span><span style="color: navy"> : </span>positiveInt<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;integerToPositiveInt-value&quot;</i><span style="color: navy">;</span>
<span style="color: navy">}

</span><b>group </b>integerToUnsignedInt<span style="color: navy">(</span><b>source</b> <span style="color: maroon">src</span><span style="color: navy"> : </span>integerR2, <b>target</b> <span style="color: maroon">tgt</span><span style="color: navy"> : </span>unsignedInt<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;integerToUnsignedInt-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>dateR2, <b>target</b> <span style="color: maroon">tgt</span><span style="color: navy"> : </span>dateTime<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>dateTimeR2, <b>target</b> <span style="color: maroon">tgt</span><span style="color: navy"> : </span>date<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/primitives2to3"/>
  <version value="0.1.0"/>
  <name value="primitives2to3"/>
  <title value="Primitive Transforms: R2 to R3"/>
  <status value="active"/>
  <date value="2024-02-22T03:16:50+00:00"/>
  <publisher value="HL7 International / FHIR Infrastructure"/>
  <contact>
    <telecom>
      <system value="url"/>
      <value value="http://www.hl7.org/Special/committees/fiwg"/>
    </telecom>
  </contact>
  <description value="PrimitiveTransformsR2toR3"/>
  <jurisdiction>
    <coding>
      <system value="http://unstats.un.org/unsd/methods/m49/m49.htm"/>
      <code value="001"/>
    </coding>
  </jurisdiction>
  <structure>
    <url value="http://hl7.org/fhir/1.0/base64Binary"/>
    <mode value="source"/>
    <alias value="base64BinaryR2"/>
  </structure>
  <structure>
    <url value="http://hl7.org/fhir/3.0/base64Binary"/>
    <mode value="target"/>
  </structure>
  <structure>
    <url value="http://hl7.org/fhir/1.0/boolean"/>
    <mode value="source"/>
    <alias value="booleanR2"/>
  </structure>
  <structure>
    <url value="http://hl7.org/fhir/3.0/boolean"/>
    <mode value="target"/>
  </structure>
  <structure>
    <url value="http://hl7.org/fhir/1.0/code"/>
    <mode value="source"/>
    <alias value="codeR2"/>
  </structure>
  <structure>
    <url value="http://hl7.org/fhir/3.0/code"/>
    <mode value="target"/>
  </structure>
  <structure>
    <url value="http://hl7.org/fhir/1.0/date"/>
    <mode value="source"/>
    <alias value="dateR2"/>
  </structure>
  <structure>
    <url value="http://hl7.org/fhir/3.0/date"/>
    <mode value="target"/>
  </structure>
  <structure>
    <url value="http://hl7.org/fhir/1.0/dateTime"/>
    <mode value="source"/>
    <alias value="dateTimeR2"/>
  </structure>
  <structure>
    <url value="http://hl7.org/fhir/3.0/dateTime"/>
    <mode value="target"/>
  </structure>
  <structure>
    <url value="http://hl7.org/fhir/1.0/decimal"/>
    <mode value="source"/>
    <alias value="decimalR2"/>
  </structure>
  <structure>
    <url value="http://hl7.org/fhir/3.0/decimal"/>
    <mode value="target"/>
  </structure>
  <structure>
    <url value="http://hl7.org/fhir/1.0/id"/>
    <mode value="source"/>
    <alias value="idR2"/>
  </structure>
  <structure>
    <url value="http://hl7.org/fhir/3.0/id"/>
    <mode value="target"/>
  </structure>
  <structure>
    <url value="http://hl7.org/fhir/1.0/instant"/>
    <mode value="source"/>
    <alias value="instantR2"/>
  </structure>
  <structure>
    <url value="http://hl7.org/fhir/3.0/instant"/>
    <mode value="target"/>
  </structure>
  <structure>
    <url value="http://hl7.org/fhir/1.0/integer"/>
    <mode value="source"/>
    <alias value="integerR2"/>
  </structure>
  <structure>
    <url value="http://hl7.org/fhir/3.0/integer"/>
    <mode value="target"/>
  </structure>
  <structure>
    <url value="http://hl7.org/fhir/1.0/markdown"/>
    <mode value="source"/>
    <alias value="markdownR2"/>
  </structure>
  <structure>
    <url value="http://hl7.org/fhir/3.0/markdown"/>
    <mode value="target"/>
  </structure>
  <structure>
    <url value="http://hl7.org/fhir/1.0/oid"/>
    <mode value="source"/>
    <alias value="oidR2"/>
  </structure>
  <structure>
    <url value="http://hl7.org/fhir/3.0/oid"/>
    <mode value="target"/>
  </structure>
  <structure>
    <url value="http://hl7.org/fhir/1.0/positiveInt"/>
    <mode value="source"/>
    <alias value="positiveIntR2"/>
  </structure>
  <structure>
    <url value="http://hl7.org/fhir/3.0/positiveInt"/>
    <mode value="target"/>
  </structure>
  <structure>
    <url value="http://hl7.org/fhir/1.0/string"/>
    <mode value="source"/>
    <alias value="stringR2"/>
  </structure>
  <structure>
    <url value="http://hl7.org/fhir/3.0/string"/>
    <mode value="target"/>
  </structure>
  <structure>
    <url value="http://hl7.org/fhir/1.0/time"/>
    <mode value="source"/>
    <alias value="timeR2"/>
  </structure>
  <structure>
    <url value="http://hl7.org/fhir/3.0/time"/>
    <mode value="target"/>
  </structure>
  <structure>
    <url value="http://hl7.org/fhir/1.0/unsignedInt"/>
    <mode value="source"/>
    <alias value="unsignedIntR2"/>
  </structure>
  <structure>
    <url value="http://hl7.org/fhir/3.0/unsignedInt"/>
    <mode value="target"/>
  </structure>
  <structure>
    <url value="http://hl7.org/fhir/1.0/uri"/>
    <mode value="source"/>
    <alias value="uriR2"/>
  </structure>
  <structure>
    <url value="http://hl7.org/fhir/3.0/uri"/>
    <mode value="target"/>
  </structure>
  <structure>
    <url value="http://hl7.org/fhir/1.0/uuid"/>
    <mode value="source"/>
    <alias value="uuidR2"/>
  </structure>
  <structure>
    <url value="http://hl7.org/fhir/3.0/uuid"/>
    <mode value="target"/>
  </structure>
  <structure>
    <url value="http://hl7.org/fhir/1.0/xhtml"/>
    <mode value="source"/>
    <alias value="xhtmlR2"/>
  </structure>
  <structure>
    <url value="http://hl7.org/fhir/3.0/xhtml"/>
    <mode value="target"/>
  </structure>
  <import value="http://hl7.org/fhir/StructureMap/Element2to3"/>
  <group>
    <name value="base64Binary"/>
    <extends value="Element"/>
    <typeMode value="type-and-types"/>
    <input>
      <name value="src"/>
      <type value="base64BinaryR2"/>
      <mode value="source"/>
    </input>
    <input>
      <name value="tgt"/>
      <type value="base64Binary"/>
      <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="booleanR2"/>
      <mode value="source"/>
    </input>
    <input>
      <name value="tgt"/>
      <type value="boolean"/>
      <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="codeR2"/>
      <mode value="source"/>
    </input>
    <input>
      <name value="tgt"/>
      <type value="code"/>
      <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="dateR2"/>
      <mode value="source"/>
    </input>
    <input>
      <name value="tgt"/>
      <type value="date"/>
      <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="dateTimeR2"/>
      <mode value="source"/>
    </input>
    <input>
      <name value="tgt"/>
      <type value="dateTime"/>
      <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="decimalR2"/>
      <mode value="source"/>
    </input>
    <input>
      <name value="tgt"/>
      <type value="decimal"/>
      <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="idR2"/>
      <mode value="source"/>
    </input>
    <input>
      <name value="tgt"/>
      <type value="id"/>
      <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="instantR2"/>
      <mode value="source"/>
    </input>
    <input>
      <name value="tgt"/>
      <type value="instant"/>
      <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="integerR2"/>
      <mode value="source"/>
    </input>
    <input>
      <name value="tgt"/>
      <type value="integer"/>
      <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="markdownR2"/>
      <mode value="source"/>
    </input>
    <input>
      <name value="tgt"/>
      <type value="markdown"/>
      <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="oidR2"/>
      <mode value="source"/>
    </input>
    <input>
      <name value="tgt"/>
      <type value="oid"/>
      <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="positiveIntR2"/>
      <mode value="source"/>
    </input>
    <input>
      <name value="tgt"/>
      <type value="positiveInt"/>
      <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="stringR2"/>
      <mode value="source"/>
    </input>
    <input>
      <name value="tgt"/>
      <type value="string"/>
      <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="timeR2"/>
      <mode value="source"/>
    </input>
    <input>
      <name value="tgt"/>
      <type value="time"/>
      <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="unsignedIntR2"/>
      <mode value="source"/>
    </input>
    <input>
      <name value="tgt"/>
      <type value="unsignedInt"/>
      <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="uriR2"/>
      <mode value="source"/>
    </input>
    <input>
      <name value="tgt"/>
      <type value="uri"/>
      <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="uuidR2"/>
      <mode value="source"/>
    </input>
    <input>
      <name value="tgt"/>
      <type value="uuid"/>
      <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="xhtmlR2"/>
      <mode value="source"/>
    </input>
    <input>
      <name value="tgt"/>
      <type value="xhtml"/>
      <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="stringToMarkdown"/>
    <extends value="Element"/>
    <typeMode value="types"/>
    <input>
      <name value="src"/>
      <type value="stringR2"/>
      <mode value="source"/>
    </input>
    <input>
      <name value="tgt"/>
      <type value="markdown"/>
      <mode value="target"/>
    </input>
    <rule>
      <name value="stringToMarkdown-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="codeToUri"/>
    <extends value="Element"/>
    <typeMode value="types"/>
    <input>
      <name value="src"/>
      <type value="codeR2"/>
      <mode value="source"/>
    </input>
    <input>
      <name value="tgt"/>
      <type value="uri"/>
      <mode value="target"/>
    </input>
    <rule>
      <name value="codeToUri-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="stringR2"/>
      <mode value="source"/>
    </input>
    <input>
      <name value="tgt"/>
      <type value="id"/>
      <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="idR2"/>
      <mode value="source"/>
    </input>
    <input>
      <name value="tgt"/>
      <type value="string"/>
      <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="stringToUri"/>
    <extends value="Element"/>
    <typeMode value="types"/>
    <input>
      <name value="src"/>
      <type value="stringR2"/>
      <mode value="source"/>
    </input>
    <input>
      <name value="tgt"/>
      <type value="uri"/>
      <mode value="target"/>
    </input>
    <rule>
      <name value="stringToUri-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="stringToCode"/>
    <extends value="Element"/>
    <typeMode value="types"/>
    <input>
      <name value="src"/>
      <type value="stringR2"/>
      <mode value="source"/>
    </input>
    <input>
      <name value="tgt"/>
      <type value="code"/>
      <mode value="target"/>
    </input>
    <rule>
      <name value="stringToCode-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="codeR2"/>
      <mode value="source"/>
    </input>
    <input>
      <name value="tgt"/>
      <type value="string"/>
      <mode value="target"/>
    </input>
    <rule>
      <name value="stringToCode-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="integerToPositiveInt"/>
    <extends value="Element"/>
    <typeMode value="types"/>
    <input>
      <name value="src"/>
      <type value="integerR2"/>
      <mode value="source"/>
    </input>
    <input>
      <name value="tgt"/>
      <type value="positiveInt"/>
      <mode value="target"/>
    </input>
    <rule>
      <name value="integerToPositiveInt-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="integerToUnsignedInt"/>
    <extends value="Element"/>
    <typeMode value="types"/>
    <input>
      <name value="src"/>
      <type value="integerR2"/>
      <mode value="source"/>
    </input>
    <input>
      <name value="tgt"/>
      <type value="unsignedInt"/>
      <mode value="target"/>
    </input>
    <rule>
      <name value="integerToUnsignedInt-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="dateR2"/>
      <mode value="source"/>
    </input>
    <input>
      <name value="tgt"/>
      <type value="dateTime"/>
      <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="dateTimeR2"/>
      <mode value="source"/>
    </input>
    <input>
      <name value="tgt"/>
      <type value="date"/>
      <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>