Release 4B

This page is part of the FHIR Specification (v4.3.0: R4B - STU). The current version which supercedes this version is 5.0.0. For a full list of available versions, see the Directory of published versions . Page versions: R5 R4B R4 R3

Structuremap-example.xml

FHIR Infrastructure Work GroupMaturity Level: N/AStandards Status: InformativeCompartments: Not linked to any defined compartments

Raw XML (canonical form + also see XML Format Specification)

Jump past Narrative

Example (id = "example")

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

<StructureMap xmlns="http://hl7.org/fhir">
  <id value="example"/> 
  <text> 
    <status value="generated"/> 
    <div xmlns="http://www.w3.org/1999/xhtml">
      <p> 
        <b> Generated Narrative</b> 
      </p> 
      <div style="display: inline-block; background-color: #d9e0e7; padding: 6px; margin: 4px; border: 1px
       solid #8da1b4; border-radius: 5px; line-height: 60%">
        <p style="margin-bottom: 0px">Resource &quot;example&quot; </p> 
      </div> 
      <p> 
        <b> url</b> : 
        <code> http://hl7.org/fhir/StructureMap/example</code> 
      </p> 
      <p> 
        <b> identifier</b> : id: urn:oid:37843577-95fb-4adb-84c0-8837188a7bf3
      </p> 
      <p> 
        <b> version</b> : 0.1
      </p> 
      <p> 
        <b> name</b> : ExampleMap
      </p> 
      <p> 
        <b> title</b> : Example Map
      </p> 
      <p> 
        <b> status</b> : draft
      </p> 
      <p> 
        <b> date</b> : 2017-03-09
      </p> 
      <p> 
        <b> publisher</b> : HL7 FHIR Standard
      </p> 
      <p> 
        <b> contact</b> : 
        <a href="http://hl7.org/fhir">http://hl7.org/fhir</a> 
      </p> 
      <p> 
        <b> description</b> : Example Structure Map
      </p> 
      <p> 
        <b> jurisdiction</b> : Oceania 
        <span style="background: LightGoldenRodYellow; margin: 4px; border: 1px solid khaki"> (m49.htm#009)</span> 
      </p> 
      <blockquote> 
        <p> 
          <b> group</b> 
        </p> 
        <p> 
          <b> name</b> : Examples
        </p> 
        <p> 
          <b> typeMode</b> : none
        </p> 
        <p> 
          <b> documentation</b> : test -&gt; testValue
        </p> 
        <h3> Inputs</h3> 
        <table class="grid">
          <tr> 
            <td> -</td> 
            <td> 
              <b> Name</b> 
            </td> 
            <td> 
              <b> Mode</b> 
            </td> 
          </tr> 
          <tr> 
            <td> *</td> 
            <td> test</td> 
            <td> source</td> 
          </tr> 
        </table> 
        <blockquote> 
          <p> 
            <b> rule</b> 
          </p> 
          <p> 
            <b> name</b> : rule1
          </p> 
          <h3> Sources</h3> 
          <table class="grid">
            <tr> 
              <td> -</td> 
              <td> 
                <b> Context</b> 
              </td> 
              <td> 
                <b> Type</b> 
              </td> 
              <td> 
                <b> Element</b> 
              </td> 
              <td> 
                <b> Variable</b> 
              </td> 
            </tr> 
            <tr> 
              <td> *</td> 
              <td> Source</td> 
              <td> SourceClassA</td> 
              <td> test</td> 
              <td> t</td> 
            </tr> 
          </table> 
          <h3> Targets</h3> 
          <table class="grid">
            <tr> 
              <td> -</td> 
              <td> 
                <b> Context</b> 
              </td> 
              <td> 
                <b> ContextType</b> 
              </td> 
              <td> 
                <b> Element</b> 
              </td> 
              <td> 
                <b> Transform</b> 
              </td> 
            </tr> 
            <tr> 
              <td> *</td> 
              <td> Destination</td> 
              <td> variable</td> 
              <td> testValue</td> 
              <td> copy</td> 
            </tr> 
          </table> 
        </blockquote> 
      </blockquote> 
    </div> 
  </text> 
  <url value="http://hl7.org/fhir/StructureMap/example"/> 
  <identifier> 
    <system value="urn:ietf:rfc:3986"/> 
    <value value="urn:oid:37843577-95fb-4adb-84c0-8837188a7bf3"/> 
  </identifier> 
  <version value="0.1"/> 
  <name value="ExampleMap"/> 
  <title value="Example Map"/> 
  <status value="draft"/> 
  <experimental value="true"/> 
  <date value="2017-03-09"/> 
  <publisher value="HL7 FHIR Standard"/> 
  <contact> 
    <telecom> 
      <system value="url"/> 
      <value value="http://hl7.org/fhir"/> 
    </telecom> 
  </contact> 
  <description value="Example Structure Map"/> 
  <jurisdiction> 
    <coding> 
      <system value="http://unstats.un.org/unsd/methods/m49/m49.htm"/> 
      <code value="009"/> 
      <display value="Oceania"/> 
    </coding> 
  </jurisdiction> 
  <group> 
    <name value="Examples"/> 
    <typeMode value="none"/> 
    <documentation value="test -&gt; testValue"/> 
    <input> 
      <name value="test"/> 
      <mode value="source"/> 
    </input> 
    <rule> 
      <name value="rule1"/> 
      <source> 
        <context value="Source"/> 
        <type value="SourceClassA"/> 
        <element value="test"/> 
        <variable value="t"/> 
      </source> 
      <target> 
        <context value="Destination"/> 
        <contextType value="variable"/> 
        <element value="testValue"/> 
        <transform value="copy"/> 
      </target> 
    </rule> 
  </group> 
</StructureMap> 

Usage note: every effort has been made to ensure that the examples are correct and useful, but they are not a normative part of the specification.