{
  "resourceType" : "CodeSystem",
  "id" : "medicationdispense-category",
  "text" : {
    "status" : "generated",
    "div" : "<div xmlns=\"http://www.w3.org/1999/xhtml\">\n            <p>This code system http://terminology.hl7.org/CodeSystem/medicationdispense-category defines the following codes:</p>\n            <table class=\"codes\">\n              <tr>\n                <td style=\"white-space:nowrap\">\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 style=\"white-space:nowrap\">inpatient\n                  <a name=\"medicationdispense-category-inpatient\"> </a>\n                </td>\n                <td>Inpatient</td>\n                <td>Includes dispenses for medications to be administered or consumed in an inpatient or acute care setting.</td>\n              </tr>\n              <tr>\n                <td style=\"white-space:nowrap\">outpatient\n                  <a name=\"medicationdispense-category-outpatient\"> </a>\n                </td>\n                <td>Outpatient</td>\n                <td>Includes dispenses for medications to be administered or consumed in an outpatient setting (for example, Emergency Department, Outpatient Clinic, Outpatient Surgery, Doctor's office).</td>\n              </tr>\n              <tr>\n                <td style=\"white-space:nowrap\">community\n                  <a name=\"medicationdispense-category-community\"> </a>\n                </td>\n                <td>Community</td>\n                <td>Includes dispenses for medications to be administered or consumed by the patient in their home (this would include long term care or nursing homes, hospices, etc.).</td>\n              </tr>\n              <tr>\n                <td style=\"white-space:nowrap\">discharge\n                  <a name=\"medicationdispense-category-discharge\"> </a>\n                </td>\n                <td>Discharge</td>\n                <td>Includes dispenses for medications created when the patient is being released from a facility.</td>\n              </tr>\n            </table>\n          </div>"
  },
  "extension" : [{
    "extension" : [{
      "url" : "packageId",
      "valueId" : "hl7.fhir.uv.xver-r4b.r5"
    },
    {
      "url" : "version",
      "valueString" : "0.1.0"
    },
    {
      "url" : "uri",
      "valueUri" : "http://hl7.org/fhir/uv/xver/ImplementationGuide/hl7.fhir.uv.xver-r4b.r5"
    }],
    "url" : "http://hl7.org/fhir/StructureDefinition/package-source"
  },
  {
    "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg",
    "valueCode" : "phx"
  }],
  "url" : "http://terminology.hl7.org/CodeSystem/medicationdispense-category",
  "version" : "4.3.0",
  "name" : "Medication Dispense Category Codes",
  "status" : "draft",
  "experimental" : false,
  "date" : "2026-03-20T14:38:32+11:00",
  "publisher" : "Pharmacy",
  "contact" : [{
    "name" : "Pharmacy",
    "telecom" : [{
      "system" : "url",
      "value" : "http://www.hl7.org/Special/committees/medication"
    }]
  }],
  "jurisdiction" : [{
    "coding" : [{
      "system" : "http://unstats.un.org/unsd/methods/m49/m49.htm",
      "code" : "001",
      "display" : "World"
    }]
  }],
  "caseSensitive" : true,
  "valueSet" : "http://hl7.org/fhir/ValueSet/medicationdispense-category",
  "content" : "complete",
  "concept" : [{
    "code" : "inpatient",
    "display" : "Inpatient",
    "definition" : "Includes dispenses for medications to be administered or consumed in an inpatient or acute care setting."
  },
  {
    "code" : "outpatient",
    "display" : "Outpatient",
    "definition" : "Includes dispenses for medications to be administered or consumed in an outpatient setting (for example, Emergency Department, Outpatient Clinic, Outpatient Surgery, Doctor's office)."
  },
  {
    "code" : "community",
    "display" : "Community",
    "definition" : "Includes dispenses for medications to be administered or consumed by the patient in their home (this would include long term care or nursing homes, hospices, etc.)."
  },
  {
    "code" : "discharge",
    "display" : "Discharge",
    "definition" : "Includes dispenses for medications created when the patient is being released from a facility."
  }]
}