<CodeSystem xmlns="http://hl7.org/fhir">
  <id value="graph-compartment-rule" />
  <text>
    <status value="generated" />
    <div xmlns="http://www.w3.org/1999/xhtml">
      <p>The narrative has been removed to reduce the size of the distribution of the Hl7.Fhir.Specification library</p>
    </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.0" />
  <name value="GraphCompartmentRule" />
  <status value="draft" />
  <experimental value="false" />
  <date value="2017-04-03T11:27:53+00: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>