<?xml version="1.0" encoding="UTF-8"?><CodeSystem xmlns="http://hl7.org/fhir"><id value="medicationdispense-category"/><meta><lastUpdated value="2026-03-29T21:54:20.327+00:00"/></meta><text><status value="generated"/><div xmlns="http://www.w3.org/1999/xhtml"><p class="res-header-id"><b>Generated Narrative: CodeSystem medicationdispense-category</b></p><a name="medicationdispense-category"> </a><a name="hcmedicationdispense-category"> </a><p>This case-sensitive code system <code>http://hl7.org/fhir/CodeSystem/medicationdispense-category</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">inpatient<a name="medicationdispense-category-inpatient"> </a></td><td>Inpatient</td><td>Includes dispenses for medications to be administered or consumed in an inpatient or acute care setting.</td></tr><tr><td style="white-space:nowrap">outpatient<a name="medicationdispense-category-outpatient"> </a></td><td>Outpatient</td><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></tr><tr><td style="white-space:nowrap">community<a name="medicationdispense-category-community"> </a></td><td>Community</td><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></tr><tr><td style="white-space:nowrap">discharge<a name="medicationdispense-category-discharge"> </a></td><td>Discharge</td><td>Includes dispenses for medications created when the patient is being released from a facility.</td></tr></table></div></text><extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-wg"><valueCode value="phx"/></extension><extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status"><valueCode value="informative"/></extension><url value="http://hl7.org/fhir/CodeSystem/medicationdispense-category"/><identifier><system value="urn:ietf:rfc:3986"/><value value="urn:oid:2.16.840.1.113883.4.642.4.1806"/></identifier><version value="6.0.0-ballot4"/><name value="MedicationDispenseCategoryCodes"/><title value="Medication Dispense Category Codes"/><status value="active"/><experimental value="false"/><publisher value="HL7 International"/><description value="Medication Dispense Category Codes &#xA; **Note to Balloters: This code system is expected to move to [terminology.hl7.org](http://terminology.hl7.org)**"/><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/medicationdispense-category"/><content value="complete"/><concept><code value="inpatient"/><display value="Inpatient"/><definition value="Includes dispenses for medications to be administered or consumed in an inpatient or acute care setting."/></concept><concept><code value="outpatient"/><display value="Outpatient"/><definition value="Includes dispenses for medications to be administered or consumed in an outpatient setting (for example, Emergency Department, Outpatient Clinic, Outpatient Surgery, Doctor's office)."/></concept><concept><code value="community"/><display value="Community"/><definition value="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.)."/></concept><concept><code value="discharge"/><display value="Discharge"/><definition value="Includes dispenses for medications created when the patient is being released from a facility."/></concept></CodeSystem>