<CodeSystem xmlns="http://hl7.org/fhir">
  <id value="resource-aggregation-mode" />
  <meta>
    <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
  </meta>
  <text>
    <status value="generated" />
    <div xmlns="http://www.w3.org/1999/xhtml">
      <h2>AggregationMode</h2>
      <div>
        <p>How resource references can be aggregated.</p>
      </div>
      <p>This code system http://hl7.org/fhir/resource-aggregation-mode defines the following codes:</p>
      <table class="codes">
        <tr>
          <td>
            <b>Lvl</b>
          </td>
          <td>
            <b>Code</b>
          </td>
          <td>
            <b>Display</b>
          </td>
          <td>
            <b>Definition</b>
          </td>
        </tr>
        <tr>
          <td>1</td>
          <td>contained
                  <a name="resource-aggregation-mode-contained"></a></td>
          <td>Contained</td>
          <td>The reference is a local reference to a contained resource.</td>
        </tr>
        <tr>
          <td>1</td>
          <td>referenced
                  <a name="resource-aggregation-mode-referenced"></a></td>
          <td>Referenced</td>
          <td>The reference to a resource that has to be resolved externally to the resource that includes the reference.</td>
        </tr>
        <tr>
          <td>2</td>
          <td>  bundled
                  <a name="resource-aggregation-mode-bundled"></a></td>
          <td>Bundled</td>
          <td>The resource the reference points to will be found in the same bundle as the resource that includes the reference.</td>
        </tr>
      </table>
    </div>
  </text>
  <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-ballot-status">
    <valueString value="Informative" />
  </extension>
  <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm">
    <valueInteger value="0" />
  </extension>
  <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-wg">
    <valueCode value="fhir" />
  </extension>
  <url value="http://hl7.org/fhir/resource-aggregation-mode" />
  <identifier>
    <system value="urn:ietf:rfc:3986" />
    <value value="urn:oid:2.16.840.1.113883.4.642.1.79" />
  </identifier>
  <version value="3.0.1" />
  <name value="AggregationMode" />
  <status value="draft" />
  <experimental value="false" />
  <date value="2017-04-19T07:44:43+10:00" />
  <publisher value="HL7 (FHIR Project)" />
  <contact>
    <telecom>
      <system value="url" />
      <value value="http://hl7.org/fhir" />
    </telecom>
    <telecom>
      <system value="email" />
      <value value="fhir@lists.hl7.org" />
    </telecom>
  </contact>
  <description value="How resource references can be aggregated." />
  <caseSensitive value="true" />
  <valueSet value="http://hl7.org/fhir/ValueSet/resource-aggregation-mode" />
  <content value="complete" />
  <concept>
    <code value="contained" />
    <display value="Contained" />
    <definition value="The reference is a local reference to a contained resource." />
  </concept>
  <concept>
    <code value="referenced" />
    <display value="Referenced" />
    <definition value="The reference to a resource that has to be resolved externally to the resource that includes the reference." />
    <concept>
      <code value="bundled" />
      <display value="Bundled" />
      <definition value="The resource the reference points to will be found in the same bundle as the resource that includes the reference." />
    </concept>
  </concept>
</CodeSystem>