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

<CodeSystem xmlns="http://hl7.org/fhir">
  <id value="graph-compartment-rule"/>
  <meta>
    <profile value="http://hl7.org/fhir/StructureDefinition/shareablecodesystem"/>
  </meta>
  <text>
    <status value="generated"/><div xmlns="http://www.w3.org/1999/xhtml"><p class="res-header-id"><b>Generated Narrative: CodeSystem graph-compartment-rule</b></p><a name="graph-compartment-rule"> </a><a name="hcgraph-compartment-rule"> </a><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"/><p style="margin-bottom: 0px">Profile: <a href="http://hl7.org/fhir/R5/shareablecodesystem.html">Shareable CodeSystem</a></p></div><p>This case-sensitive code system <code>http://hl7.org/fhir/graph-compartment-rule</code> defines the following codes:</p><table class="codes"><tr><td style="white-space:nowrap"><b>Code</b></td><td><b>Display</b></td><td><b>Definition</b></td></tr><tr><td style="white-space:nowrap">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 style="white-space:nowrap">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 style="white-space:nowrap">different<a name="graph-compartment-rule-different"> </a></td><td>Different</td><td>The compartment must be different.</td></tr><tr><td style="white-space:nowrap">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-wg">
    <valueCode value="fhir"/>
  </extension>
  <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status">
    <valueCode value="trial-use"/>
  </extension>
  <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm">
    <valueInteger value="1"/>
  </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.4.281"/>
  </identifier>
  <identifier>
    <use value="old"/>
    <system value="urn:ietf:rfc:3986"/>
    <value value="urn:oid:2.16.840.1.113883.4.642.1.276"/>
  </identifier>
  <version value="0.1.0"/>
  <name value="GraphCompartmentRule"/>
  <title value="Graph Compartment Rule"/>
  <status value="active"/>
  <experimental value="false"/>
  <date value="2021-01-05T10:01:24+11:00"/>
  <publisher value="HL7 International / FHIR Infrastructure"/>
  <contact>
    <name value="HL7 International / FHIR Infrastructure"/>
    <telecom>
      <system value="url"/>
      <value value="http://www.hl7.org/Special/committees/fiwg"/>
    </telecom>
  </contact>
  <description value="How a compartment must be linked."/>
  <jurisdiction>
    <coding>
      <system value="http://unstats.un.org/unsd/methods/m49/m49.htm"/>
      <code value="001"/>
      <display value="World"/>
    </coding>
  </jurisdiction>
  <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>