FHIR Cross-Version Mapping Pack, published by HL7 International / FHIR Infrastructure. This guide is not an authorized publication; it is the continuous build for version 0.1.0 built by the FHIR (HL7® FHIR® Standard) CI Build. This version is based on the current content of https://github.com/HL7/fhir-cross-version/ and changes regularly. See the Directory of published versions
Page standards status: Draft | Maturity Level: 1 |
<StructureMap xmlns="http://hl7.org/fhir">
<id value="Extension3to2"/>
<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/Extension3to2'</span>
<span style="color: #cc00cc">/// <b>name</b> = </span><span style="color: blue">'Extension3to2'</span>
<span style="color: #cc00cc">/// <b>title</b> = </span><span style="color: blue">'Extension 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"> "</span>http://hl7.org/fhir/3.0/Extension<span style="color: navy">" </span><b>alias </b>Extension <b>as </b><b>source</b>
<b>uses</b><span style="color: navy"> "</span>http://hl7.org/fhir/1.0/Extension<span style="color: navy">" </span><b>alias </b>ExtensionR2 <b>as </b><b>target</b>
<b>imports</b><span style="color: navy"> "</span><a href="StructureMap-primitives3to2.html" title="Primitive Transforms: R3 to R2">http://hl7.org/fhir/StructureMap/primitives3to2</a><span style="color: navy">"
</span><b>imports</b><span style="color: navy"> "</span><a href="StructureMap-Element3to2.html" title="Period Transforms: R3 to R2">http://hl7.org/fhir/StructureMap/Element3to2</a><span style="color: navy">"
</span><b>imports</b><span style="color: navy"> "</span><a href="StructureMap-Meta3to2.html" title="Meta Transforms: R3 to R2">http://hl7.org/fhir/StructureMap/Meta3to2</a><span style="color: navy">"
</span><b>imports</b><span style="color: navy"> "</span><a href="StructureMap-Address3to2.html" title="Address Transforms: R3 to R2">http://hl7.org/fhir/StructureMap/Address3to2</a><span style="color: navy">"
</span><b>imports</b><span style="color: navy"> "</span><a href="StructureMap-Attachment3to2.html" title="Attachment Transforms: R3 to R2">http://hl7.org/fhir/StructureMap/Attachment3to2</a><span style="color: navy">"
</span><b>imports</b><span style="color: navy"> "</span><a href="StructureMap-ContactPoint3to2.html" title="ContactPoint Transforms: R3 to R2">http://hl7.org/fhir/StructureMap/ContactPoint3to2</a><span style="color: navy">"
</span><b>imports</b><span style="color: navy"> "</span><a href="StructureMap-HumanName3to2.html" title="HumanName Transforms: R3 to R2">http://hl7.org/fhir/StructureMap/HumanName3to2</a><span style="color: navy">"
</span><b>imports</b><span style="color: navy"> "</span><a href="StructureMap-Identifier3to2.html" title="Identifier Transforms: R3 to R2">http://hl7.org/fhir/StructureMap/Identifier3to2</a><span style="color: navy">"
</span><b>imports</b><span style="color: navy"> "</span><a href="StructureMap-Coding3to2.html" title="Coding Transforms: R3 to R2">http://hl7.org/fhir/StructureMap/Coding3to2</a><span style="color: navy">"
</span><b>imports</b><span style="color: navy"> "</span><a href="StructureMap-SampledData3to2.html" title="SampledData Transforms: R3 to R2">http://hl7.org/fhir/StructureMap/SampledData3to2</a><span style="color: navy">"
</span><b>imports</b><span style="color: navy"> "</span><a href="StructureMap-Ratio3to2.html" title="Ratio Transforms: R3 to R2">http://hl7.org/fhir/StructureMap/Ratio3to2</a><span style="color: navy">"
</span><b>imports</b><span style="color: navy"> "</span><a href="StructureMap-Reference3to2.html" title="Reference Transforms: R3 to R2">http://hl7.org/fhir/StructureMap/Reference3to2</a><span style="color: navy">"
</span><b>imports</b><span style="color: navy"> "</span><a href="StructureMap-Period3to2.html" title="Period Transforms: R3 to R2">http://hl7.org/fhir/StructureMap/Period3to2</a><span style="color: navy">"
</span><b>imports</b><span style="color: navy"> "</span><a href="StructureMap-Quantity3to2.html" title="Quantity Transforms: R3 to R2">http://hl7.org/fhir/StructureMap/Quantity3to2</a><span style="color: navy">"
</span><b>imports</b><span style="color: navy"> "</span><a href="StructureMap-Range3to2.html" title="Range Transforms: R3 to R2">http://hl7.org/fhir/StructureMap/Range3to2</a><span style="color: navy">"
</span><b>imports</b><span style="color: navy"> "</span><a href="StructureMap-Annotation3to2.html" title="Annotation Transforms: R3 to R2">http://hl7.org/fhir/StructureMap/Annotation3to2</a><span style="color: navy">"
</span><b>imports</b><span style="color: navy"> "</span><a href="StructureMap-Signature3to2.html" title="Signature Transforms: R3 to R2">http://hl7.org/fhir/StructureMap/Signature3to2</a><span style="color: navy">"
</span><b>imports</b><span style="color: navy"> "</span><a href="StructureMap-Timing3to2.html" title="Timing Transforms: R3 to R2">http://hl7.org/fhir/StructureMap/Timing3to2</a><span style="color: navy">"
</span><b>imports</b><span style="color: navy"> "</span><a href="StructureMap-CodeableConcept3to2.html" title="CodeableConcept Transforms: R3 to R2">http://hl7.org/fhir/StructureMap/CodeableConcept3to2</a><span style="color: navy">"
</span>
<b>group </b>Extension<span style="color: navy">(</span><b>source</b> <span style="color: maroon">src</span><span style="color: navy"> : </span>Extension, <b>target</b> <span style="color: maroon">tgt</span><span style="color: navy"> : </span>ExtensionR2<span style="color: navy">)</span><b> extends </b>Element<b> <<type+>></b><span style="color: navy"> {
</span> src.url<span style="color: navy"><b> -> </b></span>tgt.url <i>"Extension-url"</i><span style="color: navy">;</span>
src.value<span style="color: navy"> : </span>base64Binary<b> as </b><span style="color: maroon">vs</span><span style="color: navy"><b> -> </b></span>tgt.value = <b>create</b><span style="color: navy">(</span><span style="color: blue">'base64Binary'</span><span style="color: navy">)</span><b> as </b><span style="color: maroon">vt</span><b> then </b>base64Binary<span style="color: navy">(</span><span style="color: maroon">vs</span><span style="color: navy">, </span><span style="color: maroon">vt</span><span style="color: navy">)</span> <i>"Extension-value-base64Binary"</i><span style="color: navy">;</span>
src.value<span style="color: navy"> : </span>boolean<b> as </b><span style="color: maroon">vs</span><span style="color: navy"><b> -> </b></span>tgt.value = <b>create</b><span style="color: navy">(</span><span style="color: blue">'boolean'</span><span style="color: navy">)</span><b> as </b><span style="color: maroon">vt</span><b> then </b>boolean<span style="color: navy">(</span><span style="color: maroon">vs</span><span style="color: navy">, </span><span style="color: maroon">vt</span><span style="color: navy">)</span> <i>"Extension-value-boolean"</i><span style="color: navy">;</span>
src.value<span style="color: navy"> : </span>code<b> as </b><span style="color: maroon">vs</span><span style="color: navy"><b> -> </b></span>tgt.value = <b>create</b><span style="color: navy">(</span><span style="color: blue">'code'</span><span style="color: navy">)</span><b> as </b><span style="color: maroon">vt</span><b> then </b>code<span style="color: navy">(</span><span style="color: maroon">vs</span><span style="color: navy">, </span><span style="color: maroon">vt</span><span style="color: navy">)</span> <i>"Extension-value-code"</i><span style="color: navy">;</span>
src.value<span style="color: navy"> : </span>date<b> as </b><span style="color: maroon">vs</span><span style="color: navy"><b> -> </b></span>tgt.value = <b>create</b><span style="color: navy">(</span><span style="color: blue">'date'</span><span style="color: navy">)</span><b> as </b><span style="color: maroon">vt</span><b> then </b>date<span style="color: navy">(</span><span style="color: maroon">vs</span><span style="color: navy">, </span><span style="color: maroon">vt</span><span style="color: navy">)</span> <i>"Extension-value-date"</i><span style="color: navy">;</span>
src.value<span style="color: navy"> : </span>dateTime<b> as </b><span style="color: maroon">vs</span><span style="color: navy"><b> -> </b></span>tgt.value = <b>create</b><span style="color: navy">(</span><span style="color: blue">'dateTime'</span><span style="color: navy">)</span><b> as </b><span style="color: maroon">vt</span><b> then </b>dateTime<span style="color: navy">(</span><span style="color: maroon">vs</span><span style="color: navy">, </span><span style="color: maroon">vt</span><span style="color: navy">)</span> <i>"Extension-value-dateTime"</i><span style="color: navy">;</span>
src.value<span style="color: navy"> : </span>decimal<b> as </b><span style="color: maroon">vs</span><span style="color: navy"><b> -> </b></span>tgt.value = <b>create</b><span style="color: navy">(</span><span style="color: blue">'decimal'</span><span style="color: navy">)</span><b> as </b><span style="color: maroon">vt</span><b> then </b>decimal<span style="color: navy">(</span><span style="color: maroon">vs</span><span style="color: navy">, </span><span style="color: maroon">vt</span><span style="color: navy">)</span> <i>"Extension-value-decimal"</i><span style="color: navy">;</span>
src.value<span style="color: navy"> : </span>id<b> as </b><span style="color: maroon">vs</span><span style="color: navy"><b> -> </b></span>tgt.value = <b>create</b><span style="color: navy">(</span><span style="color: blue">'id'</span><span style="color: navy">)</span><b> as </b><span style="color: maroon">vt</span><b> then </b>id<span style="color: navy">(</span><span style="color: maroon">vs</span><span style="color: navy">, </span><span style="color: maroon">vt</span><span style="color: navy">)</span> <i>"Extension-value-id"</i><span style="color: navy">;</span>
src.value<span style="color: navy"> : </span>instant<b> as </b><span style="color: maroon">vs</span><span style="color: navy"><b> -> </b></span>tgt.value = <b>create</b><span style="color: navy">(</span><span style="color: blue">'instant'</span><span style="color: navy">)</span><b> as </b><span style="color: maroon">vt</span><b> then </b>instant<span style="color: navy">(</span><span style="color: maroon">vs</span><span style="color: navy">, </span><span style="color: maroon">vt</span><span style="color: navy">)</span> <i>"Extension-value-instant"</i><span style="color: navy">;</span>
src.value<span style="color: navy"> : </span>integer<b> as </b><span style="color: maroon">vs</span><span style="color: navy"><b> -> </b></span>tgt.value = <b>create</b><span style="color: navy">(</span><span style="color: blue">'integer'</span><span style="color: navy">)</span><b> as </b><span style="color: maroon">vt</span><b> then </b>integer<span style="color: navy">(</span><span style="color: maroon">vs</span><span style="color: navy">, </span><span style="color: maroon">vt</span><span style="color: navy">)</span> <i>"Extension-value-integer"</i><span style="color: navy">;</span>
src.value<span style="color: navy"> : </span>markdown<b> as </b><span style="color: maroon">vs</span><span style="color: navy"><b> -> </b></span>tgt.value = <b>create</b><span style="color: navy">(</span><span style="color: blue">'markdown'</span><span style="color: navy">)</span><b> as </b><span style="color: maroon">vt</span><b> then </b>markdown<span style="color: navy">(</span><span style="color: maroon">vs</span><span style="color: navy">, </span><span style="color: maroon">vt</span><span style="color: navy">)</span> <i>"Extension-value-markdown"</i><span style="color: navy">;</span>
src.value<span style="color: navy"> : </span>oid<b> as </b><span style="color: maroon">vs</span><span style="color: navy"><b> -> </b></span>tgt.value = <b>create</b><span style="color: navy">(</span><span style="color: blue">'oid'</span><span style="color: navy">)</span><b> as </b><span style="color: maroon">vt</span><b> then </b>oid<span style="color: navy">(</span><span style="color: maroon">vs</span><span style="color: navy">, </span><span style="color: maroon">vt</span><span style="color: navy">)</span> <i>"Extension-value-oid"</i><span style="color: navy">;</span>
src.value<span style="color: navy"> : </span>positiveInt<b> as </b><span style="color: maroon">vs</span><span style="color: navy"><b> -> </b></span>tgt.value = <b>create</b><span style="color: navy">(</span><span style="color: blue">'positiveInt'</span><span style="color: navy">)</span><b> as </b><span style="color: maroon">vt</span><b> then </b>positiveInt<span style="color: navy">(</span><span style="color: maroon">vs</span><span style="color: navy">, </span><span style="color: maroon">vt</span><span style="color: navy">)</span> <i>"Extension-value-positiveInt"</i><span style="color: navy">;</span>
src.value<span style="color: navy"> : </span>string<b> as </b><span style="color: maroon">vs</span><span style="color: navy"><b> -> </b></span>tgt.value = <b>create</b><span style="color: navy">(</span><span style="color: blue">'string'</span><span style="color: navy">)</span><b> as </b><span style="color: maroon">vt</span><b> then </b>string<span style="color: navy">(</span><span style="color: maroon">vs</span><span style="color: navy">, </span><span style="color: maroon">vt</span><span style="color: navy">)</span> <i>"Extension-value-string"</i><span style="color: navy">;</span>
src.value<span style="color: navy"> : </span>time<b> as </b><span style="color: maroon">vs</span><span style="color: navy"><b> -> </b></span>tgt.value = <b>create</b><span style="color: navy">(</span><span style="color: blue">'time'</span><span style="color: navy">)</span><b> as </b><span style="color: maroon">vt</span><b> then </b>time<span style="color: navy">(</span><span style="color: maroon">vs</span><span style="color: navy">, </span><span style="color: maroon">vt</span><span style="color: navy">)</span> <i>"Extension-value-time"</i><span style="color: navy">;</span>
src.value<span style="color: navy"> : </span>unsignedInt<b> as </b><span style="color: maroon">vs</span><span style="color: navy"><b> -> </b></span>tgt.value = <b>create</b><span style="color: navy">(</span><span style="color: blue">'unsignedInt'</span><span style="color: navy">)</span><b> as </b><span style="color: maroon">vt</span><b> then </b>unsignedInt<span style="color: navy">(</span><span style="color: maroon">vs</span><span style="color: navy">, </span><span style="color: maroon">vt</span><span style="color: navy">)</span> <i>"Extension-value-unsignedInt"</i><span style="color: navy">;</span>
src.value<span style="color: navy"> : </span>uri<b> as </b><span style="color: maroon">vs</span><span style="color: navy"><b> -> </b></span>tgt.value = <b>create</b><span style="color: navy">(</span><span style="color: blue">'uri'</span><span style="color: navy">)</span><b> as </b><span style="color: maroon">vt</span><b> then </b>uri<span style="color: navy">(</span><span style="color: maroon">vs</span><span style="color: navy">, </span><span style="color: maroon">vt</span><span style="color: navy">)</span> <i>"Extension-value-uri"</i><span style="color: navy">;</span>
src.value<span style="color: navy"> : </span>Address<b> as </b><span style="color: maroon">vs</span><span style="color: navy"><b> -> </b></span>tgt.value = <b>create</b><span style="color: navy">(</span><span style="color: blue">'Address'</span><span style="color: navy">)</span><b> as </b><span style="color: maroon">vt</span><b> then </b>Address<span style="color: navy">(</span><span style="color: maroon">vs</span><span style="color: navy">, </span><span style="color: maroon">vt</span><span style="color: navy">)</span> <i>"Extension-value-Address"</i><span style="color: navy">;</span>
src.value<span style="color: navy"> : </span>Annotation<b> as </b><span style="color: maroon">vs</span><span style="color: navy"><b> -> </b></span>tgt.value = <b>create</b><span style="color: navy">(</span><span style="color: blue">'Annotation'</span><span style="color: navy">)</span><b> as </b><span style="color: maroon">vt</span><b> then </b>Annotation<span style="color: navy">(</span><span style="color: maroon">vs</span><span style="color: navy">, </span><span style="color: maroon">vt</span><span style="color: navy">)</span> <i>"Extension-value-Annotation"</i><span style="color: navy">;</span>
src.value<span style="color: navy"> : </span>Attachment<b> as </b><span style="color: maroon">vs</span><span style="color: navy"><b> -> </b></span>tgt.value = <b>create</b><span style="color: navy">(</span><span style="color: blue">'Attachment'</span><span style="color: navy">)</span><b> as </b><span style="color: maroon">vt</span><b> then </b>Attachment<span style="color: navy">(</span><span style="color: maroon">vs</span><span style="color: navy">, </span><span style="color: maroon">vt</span><span style="color: navy">)</span> <i>"Extension-value-Attachment"</i><span style="color: navy">;</span>
src.value<span style="color: navy"> : </span>CodeableConcept<b> as </b><span style="color: maroon">vs</span><span style="color: navy"><b> -> </b></span>tgt.value = <b>create</b><span style="color: navy">(</span><span style="color: blue">'CodeableConcept'</span><span style="color: navy">)</span><b> as </b><span style="color: maroon">vt</span><b> then </b>CodeableConcept<span style="color: navy">(</span><span style="color: maroon">vs</span><span style="color: navy">, </span><span style="color: maroon">vt</span><span style="color: navy">)</span> <i>"Extension-value-CodeableConcept"</i><span style="color: navy">;</span>
src.value<span style="color: navy"> : </span>Coding<b> as </b><span style="color: maroon">vs</span><span style="color: navy"><b> -> </b></span>tgt.value = <b>create</b><span style="color: navy">(</span><span style="color: blue">'Coding'</span><span style="color: navy">)</span><b> as </b><span style="color: maroon">vt</span><b> then </b>Coding<span style="color: navy">(</span><span style="color: maroon">vs</span><span style="color: navy">, </span><span style="color: maroon">vt</span><span style="color: navy">)</span> <i>"Extension-value-Coding"</i><span style="color: navy">;</span>
src.value<span style="color: navy"> : </span>ContactPoint<b> as </b><span style="color: maroon">vs</span><span style="color: navy"><b> -> </b></span>tgt.value = <b>create</b><span style="color: navy">(</span><span style="color: blue">'ContactPoint'</span><span style="color: navy">)</span><b> as </b><span style="color: maroon">vt</span><b> then </b>ContactPoint<span style="color: navy">(</span><span style="color: maroon">vs</span><span style="color: navy">, </span><span style="color: maroon">vt</span><span style="color: navy">)</span> <i>"Extension-value-ContactPoint"</i><span style="color: navy">;</span>
src.value<span style="color: navy"> : </span>HumanName<b> as </b><span style="color: maroon">vs</span><span style="color: navy"><b> -> </b></span>tgt.value = <b>create</b><span style="color: navy">(</span><span style="color: blue">'HumanName'</span><span style="color: navy">)</span><b> as </b><span style="color: maroon">vt</span><b> then </b>HumanName<span style="color: navy">(</span><span style="color: maroon">vs</span><span style="color: navy">, </span><span style="color: maroon">vt</span><span style="color: navy">)</span> <i>"Extension-value-HumanName"</i><span style="color: navy">;</span>
src.value<span style="color: navy"> : </span>Identifier<b> as </b><span style="color: maroon">vs</span><span style="color: navy"><b> -> </b></span>tgt.value = <b>create</b><span style="color: navy">(</span><span style="color: blue">'Identifier'</span><span style="color: navy">)</span><b> as </b><span style="color: maroon">vt</span><b> then </b>Identifier<span style="color: navy">(</span><span style="color: maroon">vs</span><span style="color: navy">, </span><span style="color: maroon">vt</span><span style="color: navy">)</span> <i>"Extension-value-Identifier"</i><span style="color: navy">;</span>
src.value<span style="color: navy"> : </span>Period<b> as </b><span style="color: maroon">vs</span><span style="color: navy"><b> -> </b></span>tgt.value = <b>create</b><span style="color: navy">(</span><span style="color: blue">'Period'</span><span style="color: navy">)</span><b> as </b><span style="color: maroon">vt</span><b> then </b>Period<span style="color: navy">(</span><span style="color: maroon">vs</span><span style="color: navy">, </span><span style="color: maroon">vt</span><span style="color: navy">)</span> <i>"Extension-value-Period"</i><span style="color: navy">;</span>
src.value<span style="color: navy"> : </span>Quantity<b> as </b><span style="color: maroon">vs</span><span style="color: navy"><b> -> </b></span>tgt.value = <b>create</b><span style="color: navy">(</span><span style="color: blue">'Quantity'</span><span style="color: navy">)</span><b> as </b><span style="color: maroon">vt</span><b> then </b>Quantity<span style="color: navy">(</span><span style="color: maroon">vs</span><span style="color: navy">, </span><span style="color: maroon">vt</span><span style="color: navy">)</span> <i>"Extension-value-Quantity"</i><span style="color: navy">;</span>
src.value<span style="color: navy"> : </span>Range<b> as </b><span style="color: maroon">vs</span><span style="color: navy"><b> -> </b></span>tgt.value = <b>create</b><span style="color: navy">(</span><span style="color: blue">'Range'</span><span style="color: navy">)</span><b> as </b><span style="color: maroon">vt</span><b> then </b>Range<span style="color: navy">(</span><span style="color: maroon">vs</span><span style="color: navy">, </span><span style="color: maroon">vt</span><span style="color: navy">)</span> <i>"Extension-value-Range"</i><span style="color: navy">;</span>
src.value<span style="color: navy"> : </span>Ratio<b> as </b><span style="color: maroon">vs</span><span style="color: navy"><b> -> </b></span>tgt.value = <b>create</b><span style="color: navy">(</span><span style="color: blue">'Ratio'</span><span style="color: navy">)</span><b> as </b><span style="color: maroon">vt</span><b> then </b>Ratio<span style="color: navy">(</span><span style="color: maroon">vs</span><span style="color: navy">, </span><span style="color: maroon">vt</span><span style="color: navy">)</span> <i>"Extension-value-Ratio"</i><span style="color: navy">;</span>
src.value<span style="color: navy"> : </span>Reference<b> as </b><span style="color: maroon">vs</span><span style="color: navy"><b> -> </b></span>tgt.value = <b>create</b><span style="color: navy">(</span><span style="color: blue">'Reference'</span><span style="color: navy">)</span><b> as </b><span style="color: maroon">vt</span><b> then </b>Reference<span style="color: navy">(</span><span style="color: maroon">vs</span><span style="color: navy">, </span><span style="color: maroon">vt</span><span style="color: navy">)</span> <i>"Extension-value-Reference"</i><span style="color: navy">;</span>
src.value<span style="color: navy"> : </span>SampledData<b> as </b><span style="color: maroon">vs</span><span style="color: navy"><b> -> </b></span>tgt.value = <b>create</b><span style="color: navy">(</span><span style="color: blue">'SampledData'</span><span style="color: navy">)</span><b> as </b><span style="color: maroon">vt</span><b> then </b>SampledData<span style="color: navy">(</span><span style="color: maroon">vs</span><span style="color: navy">, </span><span style="color: maroon">vt</span><span style="color: navy">)</span> <i>"Extension-value-SampledData"</i><span style="color: navy">;</span>
src.value<span style="color: navy"> : </span>Signature<b> as </b><span style="color: maroon">vs</span><span style="color: navy"><b> -> </b></span>tgt.value = <b>create</b><span style="color: navy">(</span><span style="color: blue">'Signature'</span><span style="color: navy">)</span><b> as </b><span style="color: maroon">vt</span><b> then </b>Signature<span style="color: navy">(</span><span style="color: maroon">vs</span><span style="color: navy">, </span><span style="color: maroon">vt</span><span style="color: navy">)</span> <i>"Extension-value-Signature"</i><span style="color: navy">;</span>
src.value<span style="color: navy"> : </span>Timing<b> as </b><span style="color: maroon">vs</span><span style="color: navy"><b> -> </b></span>tgt.value = <b>create</b><span style="color: navy">(</span><span style="color: blue">'Timing'</span><span style="color: navy">)</span><b> as </b><span style="color: maroon">vt</span><b> then </b>Timing<span style="color: navy">(</span><span style="color: maroon">vs</span><span style="color: navy">, </span><span style="color: maroon">vt</span><span style="color: navy">)</span> <i>"Extension-value-Timing"</i><span style="color: navy">;</span>
src.value<span style="color: navy"> : </span>Meta<b> as </b><span style="color: maroon">vs</span><span style="color: navy"><b> -> </b></span>tgt.value = <b>create</b><span style="color: navy">(</span><span style="color: blue">'Meta'</span><span style="color: navy">)</span><b> as </b><span style="color: maroon">vt</span><b> then </b>Meta<span style="color: navy">(</span><span style="color: maroon">vs</span><span style="color: navy">, </span><span style="color: maroon">vt</span><span style="color: navy">)</span> <i>"Extension-value-Meta"</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/Extension3to2"/>
<version value="0.1.0"/>
<name value="Extension3to2"/>
<title value="Extension 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="ExtensionTransformsR3toR2"/>
<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/Extension"/>
<mode value="source"/>
<alias value="Extension"/>
</structure>
<structure>
<url value="http://hl7.org/fhir/1.0/Extension"/>
<mode value="target"/>
<alias value="ExtensionR2"/>
</structure>
<import value="http://hl7.org/fhir/StructureMap/primitives3to2"/>
<import value="http://hl7.org/fhir/StructureMap/Element3to2"/>
<import value="http://hl7.org/fhir/StructureMap/Meta3to2"/>
<import value="http://hl7.org/fhir/StructureMap/Address3to2"/>
<import value="http://hl7.org/fhir/StructureMap/Attachment3to2"/>
<import value="http://hl7.org/fhir/StructureMap/ContactPoint3to2"/>
<import value="http://hl7.org/fhir/StructureMap/HumanName3to2"/>
<import value="http://hl7.org/fhir/StructureMap/Identifier3to2"/>
<import value="http://hl7.org/fhir/StructureMap/Coding3to2"/>
<import value="http://hl7.org/fhir/StructureMap/SampledData3to2"/>
<import value="http://hl7.org/fhir/StructureMap/Ratio3to2"/>
<import value="http://hl7.org/fhir/StructureMap/Reference3to2"/>
<import value="http://hl7.org/fhir/StructureMap/Period3to2"/>
<import value="http://hl7.org/fhir/StructureMap/Quantity3to2"/>
<import value="http://hl7.org/fhir/StructureMap/Range3to2"/>
<import value="http://hl7.org/fhir/StructureMap/Annotation3to2"/>
<import value="http://hl7.org/fhir/StructureMap/Signature3to2"/>
<import value="http://hl7.org/fhir/StructureMap/Timing3to2"/>
<import value="http://hl7.org/fhir/StructureMap/CodeableConcept3to2"/>
<group>
<name value="Extension"/>
<extends value="Element"/>
<typeMode value="type-and-types"/>
<input>
<name value="src"/>
<type value="Extension"/>
<mode value="source"/>
</input>
<input>
<name value="tgt"/>
<type value="ExtensionR2"/>
<mode value="target"/>
</input>
<rule>
<name value="Extension-url"/>
<source>
<context value="src"/>
<element value="url"/>
<variable value="vvv"/>
</source>
<target>
<context value="tgt"/>
<element value="url"/>
<variable value="vvv"/>
<transform value="create"/>
</target>
<dependent>
<name value="DefaultMappingGroupAnonymousAlias"/>
<parameter>
<valueId value="vvv"/>
</parameter>
<parameter>
<valueId value="vvv"/>
</parameter>
</dependent>
</rule>
<rule>
<name value="Extension-value-base64Binary"/>
<source>
<context value="src"/>
<type value="base64Binary"/>
<element value="value"/>
<variable value="vs"/>
</source>
<target>
<context value="tgt"/>
<element value="value"/>
<variable value="vt"/>
<transform value="create"/>
<parameter>
<valueString value="base64Binary"/>
</parameter>
</target>
<dependent>
<name value="base64Binary"/>
<parameter>
<valueId value="vs"/>
</parameter>
<parameter>
<valueId value="vt"/>
</parameter>
</dependent>
</rule>
<rule>
<name value="Extension-value-boolean"/>
<source>
<context value="src"/>
<type value="boolean"/>
<element value="value"/>
<variable value="vs"/>
</source>
<target>
<context value="tgt"/>
<element value="value"/>
<variable value="vt"/>
<transform value="create"/>
<parameter>
<valueString value="boolean"/>
</parameter>
</target>
<dependent>
<name value="boolean"/>
<parameter>
<valueId value="vs"/>
</parameter>
<parameter>
<valueId value="vt"/>
</parameter>
</dependent>
</rule>
<rule>
<name value="Extension-value-code"/>
<source>
<context value="src"/>
<type value="code"/>
<element value="value"/>
<variable value="vs"/>
</source>
<target>
<context value="tgt"/>
<element value="value"/>
<variable value="vt"/>
<transform value="create"/>
<parameter>
<valueString value="code"/>
</parameter>
</target>
<dependent>
<name value="code"/>
<parameter>
<valueId value="vs"/>
</parameter>
<parameter>
<valueId value="vt"/>
</parameter>
</dependent>
</rule>
<rule>
<name value="Extension-value-date"/>
<source>
<context value="src"/>
<type value="date"/>
<element value="value"/>
<variable value="vs"/>
</source>
<target>
<context value="tgt"/>
<element value="value"/>
<variable value="vt"/>
<transform value="create"/>
<parameter>
<valueString value="date"/>
</parameter>
</target>
<dependent>
<name value="date"/>
<parameter>
<valueId value="vs"/>
</parameter>
<parameter>
<valueId value="vt"/>
</parameter>
</dependent>
</rule>
<rule>
<name value="Extension-value-dateTime"/>
<source>
<context value="src"/>
<type value="dateTime"/>
<element value="value"/>
<variable value="vs"/>
</source>
<target>
<context value="tgt"/>
<element value="value"/>
<variable value="vt"/>
<transform value="create"/>
<parameter>
<valueString value="dateTime"/>
</parameter>
</target>
<dependent>
<name value="dateTime"/>
<parameter>
<valueId value="vs"/>
</parameter>
<parameter>
<valueId value="vt"/>
</parameter>
</dependent>
</rule>
<rule>
<name value="Extension-value-decimal"/>
<source>
<context value="src"/>
<type value="decimal"/>
<element value="value"/>
<variable value="vs"/>
</source>
<target>
<context value="tgt"/>
<element value="value"/>
<variable value="vt"/>
<transform value="create"/>
<parameter>
<valueString value="decimal"/>
</parameter>
</target>
<dependent>
<name value="decimal"/>
<parameter>
<valueId value="vs"/>
</parameter>
<parameter>
<valueId value="vt"/>
</parameter>
</dependent>
</rule>
<rule>
<name value="Extension-value-id"/>
<source>
<context value="src"/>
<type value="id"/>
<element value="value"/>
<variable value="vs"/>
</source>
<target>
<context value="tgt"/>
<element value="value"/>
<variable value="vt"/>
<transform value="create"/>
<parameter>
<valueString value="id"/>
</parameter>
</target>
<dependent>
<name value="id"/>
<parameter>
<valueId value="vs"/>
</parameter>
<parameter>
<valueId value="vt"/>
</parameter>
</dependent>
</rule>
<rule>
<name value="Extension-value-instant"/>
<source>
<context value="src"/>
<type value="instant"/>
<element value="value"/>
<variable value="vs"/>
</source>
<target>
<context value="tgt"/>
<element value="value"/>
<variable value="vt"/>
<transform value="create"/>
<parameter>
<valueString value="instant"/>
</parameter>
</target>
<dependent>
<name value="instant"/>
<parameter>
<valueId value="vs"/>
</parameter>
<parameter>
<valueId value="vt"/>
</parameter>
</dependent>
</rule>
<rule>
<name value="Extension-value-integer"/>
<source>
<context value="src"/>
<type value="integer"/>
<element value="value"/>
<variable value="vs"/>
</source>
<target>
<context value="tgt"/>
<element value="value"/>
<variable value="vt"/>
<transform value="create"/>
<parameter>
<valueString value="integer"/>
</parameter>
</target>
<dependent>
<name value="integer"/>
<parameter>
<valueId value="vs"/>
</parameter>
<parameter>
<valueId value="vt"/>
</parameter>
</dependent>
</rule>
<rule>
<name value="Extension-value-markdown"/>
<source>
<context value="src"/>
<type value="markdown"/>
<element value="value"/>
<variable value="vs"/>
</source>
<target>
<context value="tgt"/>
<element value="value"/>
<variable value="vt"/>
<transform value="create"/>
<parameter>
<valueString value="markdown"/>
</parameter>
</target>
<dependent>
<name value="markdown"/>
<parameter>
<valueId value="vs"/>
</parameter>
<parameter>
<valueId value="vt"/>
</parameter>
</dependent>
</rule>
<rule>
<name value="Extension-value-oid"/>
<source>
<context value="src"/>
<type value="oid"/>
<element value="value"/>
<variable value="vs"/>
</source>
<target>
<context value="tgt"/>
<element value="value"/>
<variable value="vt"/>
<transform value="create"/>
<parameter>
<valueString value="oid"/>
</parameter>
</target>
<dependent>
<name value="oid"/>
<parameter>
<valueId value="vs"/>
</parameter>
<parameter>
<valueId value="vt"/>
</parameter>
</dependent>
</rule>
<rule>
<name value="Extension-value-positiveInt"/>
<source>
<context value="src"/>
<type value="positiveInt"/>
<element value="value"/>
<variable value="vs"/>
</source>
<target>
<context value="tgt"/>
<element value="value"/>
<variable value="vt"/>
<transform value="create"/>
<parameter>
<valueString value="positiveInt"/>
</parameter>
</target>
<dependent>
<name value="positiveInt"/>
<parameter>
<valueId value="vs"/>
</parameter>
<parameter>
<valueId value="vt"/>
</parameter>
</dependent>
</rule>
<rule>
<name value="Extension-value-string"/>
<source>
<context value="src"/>
<type value="string"/>
<element value="value"/>
<variable value="vs"/>
</source>
<target>
<context value="tgt"/>
<element value="value"/>
<variable value="vt"/>
<transform value="create"/>
<parameter>
<valueString value="string"/>
</parameter>
</target>
<dependent>
<name value="string"/>
<parameter>
<valueId value="vs"/>
</parameter>
<parameter>
<valueId value="vt"/>
</parameter>
</dependent>
</rule>
<rule>
<name value="Extension-value-time"/>
<source>
<context value="src"/>
<type value="time"/>
<element value="value"/>
<variable value="vs"/>
</source>
<target>
<context value="tgt"/>
<element value="value"/>
<variable value="vt"/>
<transform value="create"/>
<parameter>
<valueString value="time"/>
</parameter>
</target>
<dependent>
<name value="time"/>
<parameter>
<valueId value="vs"/>
</parameter>
<parameter>
<valueId value="vt"/>
</parameter>
</dependent>
</rule>
<rule>
<name value="Extension-value-unsignedInt"/>
<source>
<context value="src"/>
<type value="unsignedInt"/>
<element value="value"/>
<variable value="vs"/>
</source>
<target>
<context value="tgt"/>
<element value="value"/>
<variable value="vt"/>
<transform value="create"/>
<parameter>
<valueString value="unsignedInt"/>
</parameter>
</target>
<dependent>
<name value="unsignedInt"/>
<parameter>
<valueId value="vs"/>
</parameter>
<parameter>
<valueId value="vt"/>
</parameter>
</dependent>
</rule>
<rule>
<name value="Extension-value-uri"/>
<source>
<context value="src"/>
<type value="uri"/>
<element value="value"/>
<variable value="vs"/>
</source>
<target>
<context value="tgt"/>
<element value="value"/>
<variable value="vt"/>
<transform value="create"/>
<parameter>
<valueString value="uri"/>
</parameter>
</target>
<dependent>
<name value="uri"/>
<parameter>
<valueId value="vs"/>
</parameter>
<parameter>
<valueId value="vt"/>
</parameter>
</dependent>
</rule>
<rule>
<name value="Extension-value-Address"/>
<source>
<context value="src"/>
<type value="Address"/>
<element value="value"/>
<variable value="vs"/>
</source>
<target>
<context value="tgt"/>
<element value="value"/>
<variable value="vt"/>
<transform value="create"/>
<parameter>
<valueString value="Address"/>
</parameter>
</target>
<dependent>
<name value="Address"/>
<parameter>
<valueId value="vs"/>
</parameter>
<parameter>
<valueId value="vt"/>
</parameter>
</dependent>
</rule>
<rule>
<name value="Extension-value-Annotation"/>
<source>
<context value="src"/>
<type value="Annotation"/>
<element value="value"/>
<variable value="vs"/>
</source>
<target>
<context value="tgt"/>
<element value="value"/>
<variable value="vt"/>
<transform value="create"/>
<parameter>
<valueString value="Annotation"/>
</parameter>
</target>
<dependent>
<name value="Annotation"/>
<parameter>
<valueId value="vs"/>
</parameter>
<parameter>
<valueId value="vt"/>
</parameter>
</dependent>
</rule>
<rule>
<name value="Extension-value-Attachment"/>
<source>
<context value="src"/>
<type value="Attachment"/>
<element value="value"/>
<variable value="vs"/>
</source>
<target>
<context value="tgt"/>
<element value="value"/>
<variable value="vt"/>
<transform value="create"/>
<parameter>
<valueString value="Attachment"/>
</parameter>
</target>
<dependent>
<name value="Attachment"/>
<parameter>
<valueId value="vs"/>
</parameter>
<parameter>
<valueId value="vt"/>
</parameter>
</dependent>
</rule>
<rule>
<name value="Extension-value-CodeableConcept"/>
<source>
<context value="src"/>
<type value="CodeableConcept"/>
<element value="value"/>
<variable value="vs"/>
</source>
<target>
<context value="tgt"/>
<element value="value"/>
<variable value="vt"/>
<transform value="create"/>
<parameter>
<valueString value="CodeableConcept"/>
</parameter>
</target>
<dependent>
<name value="CodeableConcept"/>
<parameter>
<valueId value="vs"/>
</parameter>
<parameter>
<valueId value="vt"/>
</parameter>
</dependent>
</rule>
<rule>
<name value="Extension-value-Coding"/>
<source>
<context value="src"/>
<type value="Coding"/>
<element value="value"/>
<variable value="vs"/>
</source>
<target>
<context value="tgt"/>
<element value="value"/>
<variable value="vt"/>
<transform value="create"/>
<parameter>
<valueString value="Coding"/>
</parameter>
</target>
<dependent>
<name value="Coding"/>
<parameter>
<valueId value="vs"/>
</parameter>
<parameter>
<valueId value="vt"/>
</parameter>
</dependent>
</rule>
<rule>
<name value="Extension-value-ContactPoint"/>
<source>
<context value="src"/>
<type value="ContactPoint"/>
<element value="value"/>
<variable value="vs"/>
</source>
<target>
<context value="tgt"/>
<element value="value"/>
<variable value="vt"/>
<transform value="create"/>
<parameter>
<valueString value="ContactPoint"/>
</parameter>
</target>
<dependent>
<name value="ContactPoint"/>
<parameter>
<valueId value="vs"/>
</parameter>
<parameter>
<valueId value="vt"/>
</parameter>
</dependent>
</rule>
<rule>
<name value="Extension-value-HumanName"/>
<source>
<context value="src"/>
<type value="HumanName"/>
<element value="value"/>
<variable value="vs"/>
</source>
<target>
<context value="tgt"/>
<element value="value"/>
<variable value="vt"/>
<transform value="create"/>
<parameter>
<valueString value="HumanName"/>
</parameter>
</target>
<dependent>
<name value="HumanName"/>
<parameter>
<valueId value="vs"/>
</parameter>
<parameter>
<valueId value="vt"/>
</parameter>
</dependent>
</rule>
<rule>
<name value="Extension-value-Identifier"/>
<source>
<context value="src"/>
<type value="Identifier"/>
<element value="value"/>
<variable value="vs"/>
</source>
<target>
<context value="tgt"/>
<element value="value"/>
<variable value="vt"/>
<transform value="create"/>
<parameter>
<valueString value="Identifier"/>
</parameter>
</target>
<dependent>
<name value="Identifier"/>
<parameter>
<valueId value="vs"/>
</parameter>
<parameter>
<valueId value="vt"/>
</parameter>
</dependent>
</rule>
<rule>
<name value="Extension-value-Period"/>
<source>
<context value="src"/>
<type value="Period"/>
<element value="value"/>
<variable value="vs"/>
</source>
<target>
<context value="tgt"/>
<element value="value"/>
<variable value="vt"/>
<transform value="create"/>
<parameter>
<valueString value="Period"/>
</parameter>
</target>
<dependent>
<name value="Period"/>
<parameter>
<valueId value="vs"/>
</parameter>
<parameter>
<valueId value="vt"/>
</parameter>
</dependent>
</rule>
<rule>
<name value="Extension-value-Quantity"/>
<source>
<context value="src"/>
<type value="Quantity"/>
<element value="value"/>
<variable value="vs"/>
</source>
<target>
<context value="tgt"/>
<element value="value"/>
<variable value="vt"/>
<transform value="create"/>
<parameter>
<valueString value="Quantity"/>
</parameter>
</target>
<dependent>
<name value="Quantity"/>
<parameter>
<valueId value="vs"/>
</parameter>
<parameter>
<valueId value="vt"/>
</parameter>
</dependent>
</rule>
<rule>
<name value="Extension-value-Range"/>
<source>
<context value="src"/>
<type value="Range"/>
<element value="value"/>
<variable value="vs"/>
</source>
<target>
<context value="tgt"/>
<element value="value"/>
<variable value="vt"/>
<transform value="create"/>
<parameter>
<valueString value="Range"/>
</parameter>
</target>
<dependent>
<name value="Range"/>
<parameter>
<valueId value="vs"/>
</parameter>
<parameter>
<valueId value="vt"/>
</parameter>
</dependent>
</rule>
<rule>
<name value="Extension-value-Ratio"/>
<source>
<context value="src"/>
<type value="Ratio"/>
<element value="value"/>
<variable value="vs"/>
</source>
<target>
<context value="tgt"/>
<element value="value"/>
<variable value="vt"/>
<transform value="create"/>
<parameter>
<valueString value="Ratio"/>
</parameter>
</target>
<dependent>
<name value="Ratio"/>
<parameter>
<valueId value="vs"/>
</parameter>
<parameter>
<valueId value="vt"/>
</parameter>
</dependent>
</rule>
<rule>
<name value="Extension-value-Reference"/>
<source>
<context value="src"/>
<type value="Reference"/>
<element value="value"/>
<variable value="vs"/>
</source>
<target>
<context value="tgt"/>
<element value="value"/>
<variable value="vt"/>
<transform value="create"/>
<parameter>
<valueString value="Reference"/>
</parameter>
</target>
<dependent>
<name value="Reference"/>
<parameter>
<valueId value="vs"/>
</parameter>
<parameter>
<valueId value="vt"/>
</parameter>
</dependent>
</rule>
<rule>
<name value="Extension-value-SampledData"/>
<source>
<context value="src"/>
<type value="SampledData"/>
<element value="value"/>
<variable value="vs"/>
</source>
<target>
<context value="tgt"/>
<element value="value"/>
<variable value="vt"/>
<transform value="create"/>
<parameter>
<valueString value="SampledData"/>
</parameter>
</target>
<dependent>
<name value="SampledData"/>
<parameter>
<valueId value="vs"/>
</parameter>
<parameter>
<valueId value="vt"/>
</parameter>
</dependent>
</rule>
<rule>
<name value="Extension-value-Signature"/>
<source>
<context value="src"/>
<type value="Signature"/>
<element value="value"/>
<variable value="vs"/>
</source>
<target>
<context value="tgt"/>
<element value="value"/>
<variable value="vt"/>
<transform value="create"/>
<parameter>
<valueString value="Signature"/>
</parameter>
</target>
<dependent>
<name value="Signature"/>
<parameter>
<valueId value="vs"/>
</parameter>
<parameter>
<valueId value="vt"/>
</parameter>
</dependent>
</rule>
<rule>
<name value="Extension-value-Timing"/>
<source>
<context value="src"/>
<type value="Timing"/>
<element value="value"/>
<variable value="vs"/>
</source>
<target>
<context value="tgt"/>
<element value="value"/>
<variable value="vt"/>
<transform value="create"/>
<parameter>
<valueString value="Timing"/>
</parameter>
</target>
<dependent>
<name value="Timing"/>
<parameter>
<valueId value="vs"/>
</parameter>
<parameter>
<valueId value="vt"/>
</parameter>
</dependent>
</rule>
<rule>
<name value="Extension-value-Meta"/>
<source>
<context value="src"/>
<type value="Meta"/>
<element value="value"/>
<variable value="vs"/>
</source>
<target>
<context value="tgt"/>
<element value="value"/>
<variable value="vt"/>
<transform value="create"/>
<parameter>
<valueString value="Meta"/>
</parameter>
</target>
<dependent>
<name value="Meta"/>
<parameter>
<valueId value="vs"/>
</parameter>
<parameter>
<valueId value="vt"/>
</parameter>
</dependent>
</rule>
</group>
</StructureMap>