@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.0/CodeSystem/reason-medication-given-codes> a fhir:CodeSystem ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:id [ fhir:v "reason-medication-given-codes"] ; # 
  fhir:text [
     fhir:status [ fhir:v "generated" ] ;
     fhir:div "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p class=\"res-header-id\"><b>Generated Narrative: CodeSystem reason-medication-given-codes</b></p><a name=\"reason-medication-given-codes\"> </a><a name=\"hcreason-medication-given-codes\"> </a><p>This case-sensitive code system <code>http://terminology.hl7.org/CodeSystem/reason-medication-given</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\">a<a name=\"reason-medication-given-codes-a\"> </a></td><td>None</td><td>No reason known.</td></tr><tr><td style=\"white-space:nowrap\">b<a name=\"reason-medication-given-codes-b\"> </a></td><td>Given as Ordered</td><td>The administration was following an ordered protocol.</td></tr><tr><td style=\"white-space:nowrap\">c<a name=\"reason-medication-given-codes-c\"> </a></td><td>Emergency</td><td>The administration was needed to treat an emergency.</td></tr></table></div>"^^rdf:XMLLiteral
  ] ; # 
  fhir:extension ( [
     fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status"^^xsd:anyURI ] ;
     fhir:value [
       a fhir:code ;
       fhir:v "draft"
     ]
  ] [
     fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm"^^xsd:anyURI ] ;
     fhir:value [
       a fhir:integer ;
       fhir:v 1
     ]
  ] [
     fhir:extension ( [
       fhir:url [ fhir:v "packageId"^^xsd:anyURI ] ;
       fhir:value [
         a fhir:id ;
         fhir:v "hl7.fhir.uv.xver-r4.r4b"
       ]
     ] [
       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/reason-medication-given"^^xsd:anyURI] ; # 
  fhir:version [ fhir:v "4.0.1"] ; # 
  fhir:name [ fhir:v "ReasonMedicationGivenCodes"] ; # 
  fhir:title [ fhir:v "Reason Medication Given Codes"] ; # 
  fhir:status [ fhir:v "draft"] ; # 
  fhir:experimental [ fhir:v false] ; # 
  fhir:date [ fhir:v "2025-09-13T16:11:23-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:description [ fhir:v "This value set is provided as an example. The value set to instantiate this attribute should be drawn from a robust terminology code system that consists of or contains concepts to support the medication process."] ; # 
  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/reason-medication-given-codes|4.3.0"^^xsd:anyURI ;
     fhir:link <http://hl7.org/fhir/ValueSet/reason-medication-given-codes|4.3.0>
  ] ; # 
  fhir:content [ fhir:v "complete"] ; # 
  fhir:concept ( [
     fhir:code [ fhir:v "a" ] ;
     fhir:display [ fhir:v "None" ] ;
     fhir:definition [ fhir:v "No reason known." ]
  ] [
     fhir:code [ fhir:v "b" ] ;
     fhir:display [ fhir:v "Given as Ordered" ] ;
     fhir:definition [ fhir:v "The administration was following an ordered protocol." ]
  ] [
     fhir:code [ fhir:v "c" ] ;
     fhir:display [ fhir:v "Emergency" ] ;
     fhir:definition [ fhir:v "The administration was needed to treat an emergency." ]
  ] ) . # 

# -------------------------------------------------------------------------------------

