{
  "resourceType": "CodeSystem",
  "id": "graph-compartment-rule",
  "meta": {
    "lastUpdated": "2023-03-26T15:21:02.749+11:00",
    "profile": [
      "http://hl7.org/fhir/StructureDefinition/shareablecodesystem"
    ]
  },
  "text": {
    "status": "generated",
    "div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p>This 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>"
  },
  "extension": [
    {
      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg",
      "valueCode": "fhir"
    },
    {
      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
      "valueCode": "trial-use"
    },
    {
      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
      "valueInteger": 1
    }
  ],
  "url": "http://hl7.org/fhir/graph-compartment-rule",
  "identifier": [
    {
      "system": "urn:ietf:rfc:3986",
      "value": "urn:oid:2.16.840.1.113883.4.642.4.281"
    },
    {
      "use": "old",
      "system": "urn:ietf:rfc:3986",
      "value": "urn:oid:2.16.840.1.113883.4.642.1.276"
    }
  ],
  "version": "5.0.0",
  "name": "GraphCompartmentRule",
  "title": "Graph Compartment Rule",
  "status": "active",
  "experimental": false,
  "date": "2021-01-05T10:01:24+11:00",
  "publisher": "HL7 (FHIR Project)",
  "contact": [
    {
      "telecom": [
        {
          "system": "url",
          "value": "http://hl7.org/fhir"
        },
        {
          "system": "email",
          "value": "fhir@lists.hl7.org"
        }
      ]
    }
  ],
  "description": "How a compartment must be linked.",
  "jurisdiction": [
    {
      "coding": [
        {
          "system": "http://unstats.un.org/unsd/methods/m49/m49.htm",
          "code": "001",
          "display": "World"
        }
      ]
    }
  ],
  "caseSensitive": true,
  "valueSet": "http://hl7.org/fhir/ValueSet/graph-compartment-rule",
  "content": "complete",
  "concept": [
    {
      "code": "identical",
      "display": "Identical",
      "definition": "The compartment must be identical (the same literal reference)."
    },
    {
      "code": "matching",
      "display": "Matching",
      "definition": "The compartment must be the same - the record must be about the same patient, but the reference may be different."
    },
    {
      "code": "different",
      "display": "Different",
      "definition": "The compartment must be different."
    },
    {
      "code": "custom",
      "display": "Custom",
      "definition": "The compartment rule is defined in the accompanying FHIRPath expression."
    }
  ]
}