<?xml version="1.0" encoding="UTF-8"?>

<StructureMap xmlns="http://hl7.org/fhir" resourceDefinition="http://hl7.org/fhir/StructureDefinition/StructureMap|0.1.0">
  <text>
    <status value="generated"/><div xmlns="http://www.w3.org/1999/xhtml"><p class="res-header-id"><b>Generated Narrative: StructureMap TransformC</b></p><a name="TransformC"> </a><a name="hcTransformC"> </a><p><b>url</b>: <a href="http://hl7.org/fhir/uv/fml/StructureMap/TransformC">http://hl7.org/fhir/uv/fml/StructureMap/TransformC</a></p><p><b>name</b>: TransformC</p><p><b>status</b>: Active</p><p><b>description</b>: </p><div><p>Example demonstrating the c transform to create a Coding</p>
</div><blockquote><p><b>structure</b></p><p><b>url</b>: <a href="http://hl7.org/fhir/R5/basic.html">Basic</a></p><p><b>mode</b>: Source Structure Definition</p></blockquote><blockquote><p><b>structure</b></p><p><b>url</b>: <a href="http://hl7.org/fhir/R5/basic.html">Basic</a></p><p><b>mode</b>: Target Structure Definition</p></blockquote><blockquote><p><b>group</b></p><p><b>name</b>: TransformC</p><blockquote><p><b>input</b></p><p><b>mode</b>: Source Instance</p><p><b>name</b>: src</p><p><b>type</b>: Basic</p></blockquote><blockquote><p><b>input</b></p><p><b>mode</b>: Target Instance</p><p><b>name</b>: tgt</p><p><b>type</b>: Basic</p></blockquote><blockquote><p><b>rule</b></p><h3>Sources</h3><table class="grid"><tr><td style="display: none">-</td><td><b>Context</b></td></tr><tr><td style="display: none">*</td><td>src</td></tr></table><h3>Targets</h3><table class="grid"><tr><td style="display: none">-</td><td><b>Context</b></td><td><b>Element</b></td><td><b>Variable</b></td></tr><tr><td style="display: none">*</td><td>tgt</td><td>code</td><td>cc</td></tr></table><blockquote><p><b>rule</b></p><h3>Sources</h3><table class="grid"><tr><td style="display: none">-</td><td><b>Context</b></td></tr><tr><td style="display: none">*</td><td>src</td></tr></table><blockquote><p><b>target</b></p><p><b>context</b>: cc</p><p><b>element</b>: coding</p><p><b>transform</b>: c</p><blockquote><p><b>parameter</b></p><p><b>value</b>: http://example.org/cs</p></blockquote><blockquote><p><b>parameter</b></p><p><b>value</b>: test</p></blockquote><blockquote><p><b>parameter</b></p><p><b>value</b>: Test Coding</p></blockquote></blockquote><p><b>name</b>: r1</p></blockquote><p><b>name</b>: r2</p></blockquote></blockquote></div>
  </text>
  <url value="http://hl7.org/fhir/uv/fml/StructureMap/TransformC"/>
  <name value="TransformC"/>
  <status value="active"/>
  <description value="Example demonstrating the c transform to create a Coding"/>
  <structure>
    <url value="http://hl7.org/fhir/StructureDefinition/Basic"/>
    <mode value="source"/>
  </structure>
  <structure>
    <url value="http://hl7.org/fhir/StructureDefinition/Basic"/>
    <mode value="target"/>
  </structure>
  <group>
    <name value="TransformC"/>
    <input>
      <mode value="source"/>
      <name value="src"/>
      <type value="Basic"/>
    </input>
    <input>
      <mode value="target"/>
      <name value="tgt"/>
      <type value="Basic"/>
    </input>
    <rule>
      <source>
        <context value="src"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="code"/>
        <variable value="cc"/>
      </target>
      <rule>
        <source>
          <context value="src"/>
        </source>
        <target>
          <context value="cc"/>
          <element value="coding"/>
          <transform value="c"/>
          <parameter>
            <valueString value="http://example.org/cs"/>
          </parameter>
          <parameter>
            <valueString value="test"/>
          </parameter>
          <parameter>
            <valueString value="Test Coding"/>
          </parameter>
        </target>
        <name value="r1"/>
      </rule>
      <name value="r2"/>
    </rule>
  </group>
  <id value="TransformC"/>
</StructureMap>