FHIR Mapping Language (FML)
0.1.0 - STU 1 World

FHIR Mapping Language (FML), 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/mapping-language-ig/ and changes regularly. See the Directory of published versions

: Extended Metadata Example

Page standards status: Informative

Raw xml | Download


<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 MetadataExtended</b></p><a name="MetadataExtended"> </a><a name="hcMetadataExtended"> </a><pre class="fml">
<span style="color: #cc00cc">/// <b>url</b> = </span><span style="color: blue">'http://hl7.org/fhir/uv/mapping-language/StructureMap/MetadataExtended'</span>
<span style="color: #cc00cc">/// <b>version</b> = </span><span style="color: blue">'0.1.0'</span>
<span style="color: #cc00cc">/// <b>name</b> = </span><span style="color: blue">'MetadataExtended'</span>
<span style="color: #cc00cc">/// <b>title</b> = </span><span style="color: blue">'Extended Metadata Example'</span>
<span style="color: #cc00cc">/// <b>status</b> = </span><span style="color: blue">'active'</span>
<span style="color: #cc00cc">/// <b>description</b> = </span><span style="color: blue">&quot;&quot;&quot;
This is a **multi-line** markdown description.
It demonstrates the extended metadata capabilities.
&quot;&quot;&quot;</span>
<span style="color: #cc00cc">/// <b>experimental</b> = </span><span style="color: blue">true</span>

<b>uses</b><span style="color: navy"> &quot;</span><a href="http://hl7.org/fhir/6.0.0-ballot5/basic.html" title="Basic">http://hl7.org/fhir/StructureDefinition/Basic</a><span style="color: navy">&quot; </span><b>as </b><b>source</b>
<b>uses</b><span style="color: navy"> &quot;</span><a href="http://hl7.org/fhir/6.0.0-ballot5/basic.html" title="Basic">http://hl7.org/fhir/StructureDefinition/Basic</a><span style="color: navy">&quot; </span><b>as </b><b>target</b>

<span style="color: navy">// </span><span style="color: green">Bug: parser rejects complex metadata (jurisdiction) per spec</span>
<span style="color: navy">// </span><span style="color: green">/// jurisdiction =</span>
<span style="color: navy">// </span><span style="color: green">/// jurisdiction.coding =</span>
<span style="color: navy">// </span><span style="color: green">/// jurisdiction.coding.system = &quot;urn:iso:std:iso:3166&quot;</span>
<span style="color: navy">// </span><span style="color: green">/// jurisdiction.coding.code = &quot;US&quot;</span>
<b>group </b>MetadataExtended<span style="color: navy">(</span><b>source</b> <span style="color: maroon">src</span><span style="color: navy"> : </span>Basic, <b>target</b> <span style="color: maroon">tgt</span><span style="color: navy"> : </span>Basic<span style="color: navy">)</span><span style="color: navy"> {
</span>  src.id<b> as </b><span style="color: maroon">v</span><span style="color: navy"><b> -&gt; </b></span>tgt.id = <span style="color: maroon">v</span><span style="color: navy">;</span>
<span style="color: navy">}

</span></pre></div>
  </text>
  <url
       value="http://hl7.org/fhir/uv/mapping-language/StructureMap/MetadataExtended"/>
  <version value="0.1.0"/>
  <name value="MetadataExtended"/>
  <title value="Extended Metadata Example"/>
  <status value="active"/>
  <description
               value="
This is a **multi-line** markdown description.
It demonstrates the extended metadata capabilities.
"/>
  <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>
    <documentation
                   value="Bug: parser rejects complex metadata (jurisdiction) per spec
/// jurisdiction =
/// jurisdiction.coding =
/// jurisdiction.coding.system = &quot;urn:iso:std:iso:3166&quot;
/// jurisdiction.coding.code = &quot;US&quot;"/>
    <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"/>
        <element value="id"/>
        <variable value="v"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="id"/>
        <transform value="copy"/>
        <parameter>
          <valueId value="v"/>
        </parameter>
      </target>
      <name value="id"/>
    </rule>
    <name value="MetadataExtended"/>
  </group>
  <experimental value="true"/>
  <id value="MetadataExtended"/>
  <language value="en"/>
</StructureMap>