<CodeSystem xmlns="http://hl7.org/fhir">
  <id value="graph-compartment-rule" />
  <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>GraphCompartmentRule</h2>
      <div>
        <p>How a compartment must be linked</p>
      </div>
      <p>This code system http://hl7.org/fhir/graph-compartment-rule defines the following codes:</p>
      <table class="codes">
        <tr>
          <td>
            <b>Code</b>
          </td>
          <td>
            <b>Display</b>
          </td>
          <td>
            <b>Definition</b>
          </td>
        </tr>
        <tr>
          <td>identical
                  <a name="graph-compartment-rule-identical"></a></td>
          <td>Identical</td>
          <td>The compartment must be identical (the same literal reference)</td>
        </tr>
        <tr>
          <td>matching
                  <a name="graph-compartment-rule-matching"></a></td>
          <td>Matching</td>
          <td>The compartment must be the same - the record must be about the same patient, but the reference may be different</td>
        </tr>
        <tr>
          <td>different
                  <a name="graph-compartment-rule-different"></a></td>
          <td>Different</td>
          <td>The compartment must be different</td>
        </tr>
        <tr>
          <td>custom
                  <a name="graph-compartment-rule-custom"></a></td>
          <td>Custom</td>
          <td>The compartment rule is defined in the accompanying FHIRPath expression</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/graph-compartment-rule" />
  <identifier>
    <system value="urn:ietf:rfc:3986" />
    <value value="urn:oid:2.16.840.1.113883.4.642.1.276" />
  </identifier>
  <version value="3.0.1" />
  <name value="GraphCompartmentRule" />
  <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 a compartment must be linked" />
  <caseSensitive value="true" />
  <valueSet value="http://hl7.org/fhir/ValueSet/graph-compartment-rule" />
  <content value="complete" />
  <concept>
    <code value="identical" />
    <display value="Identical" />
    <definition value="The compartment must be identical (the same literal reference)" />
  </concept>
  <concept>
    <code value="matching" />
    <display value="Matching" />
    <definition value="The compartment must be the same - the record must be about the same patient, but the reference may be different" />
  </concept>
  <concept>
    <code value="different" />
    <display value="Different" />
    <definition value="The compartment must be different" />
  </concept>
  <concept>
    <code value="custom" />
    <display value="Custom" />
    <definition value="The compartment rule is defined in the accompanying FHIRPath expression" />
  </concept>
</CodeSystem>