{
  "resourceType": "CodeSystem",
  "id": "graph-compartment-rule",
  "meta": {
    "lastUpdated": "2017-04-18T21:44:43.294+00:00"
  },
  "text": {
    "status": "generated",
    "div": "<div xmlns=\"http://www.w3.org/1999/xhtml\">\n            <h2>GraphCompartmentRule</h2>\n            <div>\n              <p>How a compartment must be linked</p>\n\n            </div>\n            <p>This code system http://hl7.org/fhir/graph-compartment-rule defines the following codes:</p>\n            <table class=\"codes\">\n              <tr>\n                <td>\n                  <b>Code</b>\n                </td>\n                <td>\n                  <b>Display</b>\n                </td>\n                <td>\n                  <b>Definition</b>\n                </td>\n              </tr>\n              <tr>\n                <td>identical\n                  <a name=\"graph-compartment-rule-identical\"> </a>\n                </td>\n                <td>Identical</td>\n                <td>The compartment must be identical (the same literal reference)</td>\n              </tr>\n              <tr>\n                <td>matching\n                  <a name=\"graph-compartment-rule-matching\"> </a>\n                </td>\n                <td>Matching</td>\n                <td>The compartment must be the same - the record must be about the same patient, but the reference may be different</td>\n              </tr>\n              <tr>\n                <td>different\n                  <a name=\"graph-compartment-rule-different\"> </a>\n                </td>\n                <td>Different</td>\n                <td>The compartment must be different</td>\n              </tr>\n              <tr>\n                <td>custom\n                  <a name=\"graph-compartment-rule-custom\"> </a>\n                </td>\n                <td>Custom</td>\n                <td>The compartment rule is defined in the accompanying FHIRPath expression</td>\n              </tr>\n            </table>\n          </div>"
  },
  "extension": [
    {
      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-ballot-status",
      "valueString": "Informative"
    },
    {
      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
      "valueInteger": 0
    },
    {
      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg",
      "valueCode": "fhir"
    }
  ],
  "url": "http://hl7.org/fhir/graph-compartment-rule",
  "identifier": {
    "system": "urn:ietf:rfc:3986",
    "value": "urn:oid:2.16.840.1.113883.4.642.1.276"
  },
  "version": "3.0.1",
  "name": "GraphCompartmentRule",
  "status": "draft",
  "experimental": false,
  "date": "2017-04-18T21:44:43+00: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",
  "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"
    }
  ]
}