@prefix fhir: <http://hl7.org/fhir/> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

# - resource -------------------------------------------------------------------

<http://hl7.org/fhir/4.3/CodeSystem/medicationdispense-category> a fhir:CodeSystem ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:id [ fhir:v "medicationdispense-category"] ; # 
  fhir:text [
     fhir:status [ fhir:v "generated" ] ;
     fhir: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>"^^rdf:XMLLiteral
  ] ; # 
  fhir:extension ( [
     fhir:extension ( [
       fhir:url [ fhir:v "packageId"^^xsd:anyURI ] ;
       fhir:value [
         a fhir:id ;
         fhir:v "hl7.fhir.uv.xver-r4b.r4"
       ]
     ] [
       fhir:url [ fhir:v "version"^^xsd:anyURI ] ;
       fhir:value [
         a fhir:string ;
         fhir:v "0.0.1-snapshot-2"
       ]
     ] ) ;
     fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/package-source"^^xsd:anyURI ]
  ] [
     fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg"^^xsd:anyURI ] ;
     fhir:value [
       a fhir:code ;
       fhir:v "phx"
     ]
  ] ) ; # 
  fhir:url [ fhir:v "http://terminology.hl7.org/CodeSystem/medicationdispense-category"^^xsd:anyURI] ; # 
  fhir:version [ fhir:v "4.3.0"] ; # 
  fhir:name [ fhir:v "Medication Dispense Category Codes"] ; # 
  fhir:status [ fhir:v "draft"] ; # 
  fhir:experimental [ fhir:v false] ; # 
  fhir:date [ fhir:v "2025-09-13T16:38:45-04:00"^^xsd:dateTime] ; # 
  fhir:publisher [ fhir:v "Pharmacy"] ; # 
  fhir:contact ( [
     fhir:name [ fhir:v "Pharmacy" ] ;
     fhir:telecom ( [
       fhir:system [ fhir:v "url" ] ;
       fhir:value [ fhir:v "http://www.hl7.org/Special/committees/medication" ]
     ] )
  ] ) ; # 
  fhir:jurisdiction ( [
     fhir:coding ( [
       fhir:system [ fhir:v "http://unstats.un.org/unsd/methods/m49/m49.htm"^^xsd:anyURI ] ;
       fhir:code [ fhir:v "001" ] ;
       fhir:display [ fhir:v "World" ]
     ] )
  ] ) ; # 
  fhir:caseSensitive [ fhir:v true] ; # 
  fhir:valueSet [
     fhir:v "http://hl7.org/fhir/ValueSet/medicationdispense-category|4.0.1"^^xsd:anyURI ;
     fhir:link <http://hl7.org/fhir/ValueSet/medicationdispense-category|4.0.1>
  ] ; # 
  fhir:content [ fhir:v "complete"] ; # 
  fhir:concept ( [
     fhir:code [ fhir:v "inpatient" ] ;
     fhir:display [ fhir:v "Inpatient" ] ;
     fhir:definition [ fhir:v "Includes dispenses for medications to be administered or consumed in an inpatient or acute care setting." ]
  ] [
     fhir:code [ fhir:v "outpatient" ] ;
     fhir:display [ fhir:v "Outpatient" ] ;
     fhir:definition [ fhir:v "Includes dispenses for medications to be administered or consumed in an outpatient setting (for example, Emergency Department, Outpatient Clinic, Outpatient Surgery, Doctor's office)." ]
  ] [
     fhir:code [ fhir:v "community" ] ;
     fhir:display [ fhir:v "Community" ] ;
     fhir:definition [ fhir:v "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.)." ]
  ] [
     fhir:code [ fhir:v "discharge" ] ;
     fhir:display [ fhir:v "Discharge" ] ;
     fhir:definition [ fhir:v "Includes dispenses for medications created when the patient is being released from a facility." ]
  ] ) . # 

# -------------------------------------------------------------------------------------

