@prefix fhir: <http://hl7.org/fhir/> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

# - resource -------------------------------------------------------------------

<http://terminology.hl7.org/CodeSystem/v2-0167> a fhir:CodeSystem ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:id [ fhir:v "v2-0167"] ; # 
  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 v2-0167</b></p><a name=\"v2-0167\"> </a><a name=\"hcv2-0167\"> </a><a name=\"v2-0167-en-US\"> </a><p><b>Properties</b></p><p><b>This code system defines the following properties for its concepts</b></p><table class=\"grid\"><tr><td><b>Name</b></td><td><b>Code</b></td><td><b>URI</b></td><td><b>Type</b></td><td><b>Description</b></td></tr><tr><td>status</td><td>status</td><td>http://terminology.hl7.org/CodeSystem/utg-concept-properties#status</td><td>code</td><td>Status of the concept</td></tr><tr><td>deprecated</td><td>deprecated</td><td>http://terminology.hl7.org/CodeSystem/utg-concept-properties#v2-table-deprecated</td><td>code</td><td>Version of HL7 in which the code was deprecated</td></tr></table><p><b>Concepts</b></p><p>This case-sensitive code system <code>http://terminology.hl7.org/CodeSystem/v2-0167</code> defines the following codes in a Is-A hierarchy:</p><table class=\"codes\"><tr><td style=\"white-space:nowrap\"><b>Code</b></td><td><b>Display</b></td><td><b>Definition</b></td><td><b>Deutsch (German, de)</b></td></tr><tr><td style=\"white-space:nowrap\">N<a name=\"v2-0167-N\"> </a></td><td>No substitute was dispensed.  This is equivalent to the default (null) value.</td><td>No substitute was dispensed.  This is equivalent to the default (null) value.</td><td>keine Substitution</td></tr><tr><td style=\"white-space:nowrap\">G<a name=\"v2-0167-G\"> </a></td><td>A generic substitution was dispensed.</td><td>A generic substitution was dispensed.</td><td>Substitution durch Generika</td></tr><tr><td style=\"white-space:nowrap\">T<a name=\"v2-0167-T\"> </a></td><td>A therapeutic substitution was dispensed.</td><td>A therapeutic substitution was dispensed.</td><td>therapieorientierte Substitution</td></tr><tr><td style=\"white-space:nowrap\">0<a name=\"v2-0167-0\"> </a></td><td>No product selection indicated</td><td>No product selection indicated</td><td/></tr><tr><td style=\"white-space:nowrap\">1<a name=\"v2-0167-1\"> </a></td><td>Substitution not allowed by prescriber</td><td>Substitution not allowed by prescriber</td><td/></tr><tr><td style=\"white-space:nowrap\">2<a name=\"v2-0167-2\"> </a></td><td>Substitution allowed - patient requested product dispensed</td><td>Substitution allowed - patient requested product dispensed</td><td/></tr><tr><td style=\"white-space:nowrap\">3<a name=\"v2-0167-3\"> </a></td><td>Substitution allowed - pharmacist selected product dispensed</td><td>Substitution allowed - pharmacist selected product dispensed</td><td/></tr><tr><td style=\"white-space:nowrap\">4<a name=\"v2-0167-4\"> </a></td><td>Substitution allowed - generic drug not in stock</td><td>Substitution allowed - generic drug not in stock</td><td/></tr><tr><td style=\"white-space:nowrap\">5<a name=\"v2-0167-5\"> </a></td><td>Substitution allowed - brand drug dispensed as a generic</td><td>Substitution allowed - brand drug dispensed as a generic</td><td/></tr><tr><td style=\"white-space:nowrap\">7<a name=\"v2-0167-7\"> </a></td><td>Substitution not allowed - brand drug mandated by law</td><td>Substitution not allowed - brand drug mandated by law</td><td/></tr><tr><td style=\"white-space:nowrap\">8<a name=\"v2-0167-8\"> </a></td><td>Substitution allowed - generic drug not available in marketplace</td><td>Substitution allowed - generic drug not available in marketplace</td><td/></tr></table></div>"
  ] ; # 
  fhir:extension ( [
     fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg"^^xsd:anyURI ] ;
     fhir:value [ fhir:v "oo" ]
  ] ) ; # 
  fhir:url [ fhir:v "http://terminology.hl7.org/CodeSystem/v2-0167"^^xsd:anyURI] ; # 
  fhir:identifier ( [
     fhir:system [ fhir:v "urn:ietf:rfc:3986"^^xsd:anyURI ] ;
     fhir:value [ fhir:v "urn:oid:2.16.840.1.113883.18.85" ]
  ] ) ; # 
  fhir:version [ fhir:v "2.0.0"] ; # 
  fhir:name [ fhir:v "SubstitutionStatus"] ; # 
  fhir:title [ fhir:v "substitutionStatus"] ; # 
  fhir:status [ fhir:v "active"] ; # 
  fhir:experimental [ fhir:v "false"^^xsd:boolean] ; # 
  fhir:date [ fhir:v "2019-12-01"^^xsd:date] ; # 
  fhir:publisher [ fhir:v "Health Level Seven International"] ; # 
  fhir:contact ( [
     fhir:telecom ( [
       fhir:system [ fhir:v "url" ] ;
       fhir:value [ fhir:v "http://hl7.org" ]
     ] [
       fhir:system [ fhir:v "email" ] ;
       fhir:value [ fhir:v "hq@HL7.org" ]
     ] )
  ] ) ; # 
  fhir:description [ fhir:v "HL7-defined code system of concepts  which specify the substitution status.  Used in HL7 Version 2.x messaging in the RXE, RXD, and RXG segments."] ; # 
  fhir:purpose [ fhir:v "Underlying Master Code System for V2 table 0167 (Substitution Status)"] ; # 
  fhir:copyright [ fhir:v "This material derives from the HL7 Terminology (THO). THO is copyright ©1989+ Health Level Seven International and is made available under the CC0 designation. For more licensing information see: https://terminology.hl7.org/license.html"] ; # 
  fhir:caseSensitive [ fhir:v "true"^^xsd:boolean] ; # 
  fhir:valueSet [
     fhir:v "http://terminology.hl7.org/ValueSet/v2-0167"^^xsd:anyURI ;
     fhir:link <http://terminology.hl7.org/ValueSet/v2-0167>
  ] ; # 
  fhir:hierarchyMeaning [ fhir:v "is-a"] ; # 
  fhir:compositional [ fhir:v "false"^^xsd:boolean] ; # 
  fhir:versionNeeded [ fhir:v "false"^^xsd:boolean] ; # 
  fhir:content [ fhir:v "complete"] ; # 
  fhir:property ( [
     fhir:code [ fhir:v "status" ] ;
     fhir:uri [ fhir:v "http://terminology.hl7.org/CodeSystem/utg-concept-properties#status"^^xsd:anyURI ] ;
     fhir:description [ fhir:v "Status of the concept" ] ;
     fhir:type [ fhir:v "code" ]
  ] [
     fhir:code [ fhir:v "deprecated" ] ;
     fhir:uri [ fhir:v "http://terminology.hl7.org/CodeSystem/utg-concept-properties#v2-table-deprecated"^^xsd:anyURI ] ;
     fhir:description [ fhir:v "Version of HL7 in which the code was deprecated" ] ;
     fhir:type [ fhir:v "code" ]
  ] ) ; # 
  fhir:concept ( [
     fhir:id [ fhir:v "1797" ] ;
     fhir:code [ fhir:v "N" ] ;
     fhir:display [ fhir:v "No substitute was dispensed.  This is equivalent to the default (null) value." ] ;
     fhir:definition [ fhir:v "No substitute was dispensed.  This is equivalent to the default (null) value." ] ;
     fhir:designation ( [
       fhir:language [ fhir:v "de" ] ;
       fhir:use [
         fhir:system [ fhir:v "http://terminology.hl7.org/CodeSystem/hl7TermMaintInfra"^^xsd:anyURI ] ;
         fhir:code [ fhir:v "preferredForLanguage" ]
       ] ;
       fhir:value [ fhir:v "keine Substitution" ]
     ] ) ;
     fhir:property ( [
       fhir:code [ fhir:v "status" ] ;
       fhir:value [ fhir:v "A" ]
     ] )
  ] [
     fhir:id [ fhir:v "1798" ] ;
     fhir:code [ fhir:v "G" ] ;
     fhir:display [ fhir:v "A generic substitution was dispensed." ] ;
     fhir:definition [ fhir:v "A generic substitution was dispensed." ] ;
     fhir:designation ( [
       fhir:language [ fhir:v "de" ] ;
       fhir:use [
         fhir:system [ fhir:v "http://terminology.hl7.org/CodeSystem/hl7TermMaintInfra"^^xsd:anyURI ] ;
         fhir:code [ fhir:v "preferredForLanguage" ]
       ] ;
       fhir:value [ fhir:v "Substitution durch Generika" ]
     ] ) ;
     fhir:property ( [
       fhir:code [ fhir:v "status" ] ;
       fhir:value [ fhir:v "A" ]
     ] )
  ] [
     fhir:id [ fhir:v "1799" ] ;
     fhir:code [ fhir:v "T" ] ;
     fhir:display [ fhir:v "A therapeutic substitution was dispensed." ] ;
     fhir:definition [ fhir:v "A therapeutic substitution was dispensed." ] ;
     fhir:designation ( [
       fhir:language [ fhir:v "de" ] ;
       fhir:use [
         fhir:system [ fhir:v "http://terminology.hl7.org/CodeSystem/hl7TermMaintInfra"^^xsd:anyURI ] ;
         fhir:code [ fhir:v "preferredForLanguage" ]
       ] ;
       fhir:value [ fhir:v "therapieorientierte Substitution" ]
     ] ) ;
     fhir:property ( [
       fhir:code [ fhir:v "status" ] ;
       fhir:value [ fhir:v "A" ]
     ] )
  ] [
     fhir:id [ fhir:v "1800" ] ;
     fhir:code [ fhir:v "0" ] ;
     fhir:display [ fhir:v "No product selection indicated" ] ;
     fhir:definition [ fhir:v "No product selection indicated" ] ;
     fhir:property ( [
       fhir:code [ fhir:v "status" ] ;
       fhir:value [ fhir:v "A" ]
     ] )
  ] [
     fhir:id [ fhir:v "1801" ] ;
     fhir:code [ fhir:v "1" ] ;
     fhir:display [ fhir:v "Substitution not allowed by prescriber" ] ;
     fhir:definition [ fhir:v "Substitution not allowed by prescriber" ] ;
     fhir:property ( [
       fhir:code [ fhir:v "status" ] ;
       fhir:value [ fhir:v "A" ]
     ] )
  ] [
     fhir:id [ fhir:v "1802" ] ;
     fhir:code [ fhir:v "2" ] ;
     fhir:display [ fhir:v "Substitution allowed - patient requested product dispensed" ] ;
     fhir:definition [ fhir:v "Substitution allowed - patient requested product dispensed" ] ;
     fhir:property ( [
       fhir:code [ fhir:v "status" ] ;
       fhir:value [ fhir:v "A" ]
     ] )
  ] [
     fhir:id [ fhir:v "1803" ] ;
     fhir:code [ fhir:v "3" ] ;
     fhir:display [ fhir:v "Substitution allowed - pharmacist selected product dispensed" ] ;
     fhir:definition [ fhir:v "Substitution allowed - pharmacist selected product dispensed" ] ;
     fhir:property ( [
       fhir:code [ fhir:v "status" ] ;
       fhir:value [ fhir:v "A" ]
     ] )
  ] [
     fhir:id [ fhir:v "1804" ] ;
     fhir:code [ fhir:v "4" ] ;
     fhir:display [ fhir:v "Substitution allowed - generic drug not in stock" ] ;
     fhir:definition [ fhir:v "Substitution allowed - generic drug not in stock" ] ;
     fhir:property ( [
       fhir:code [ fhir:v "status" ] ;
       fhir:value [ fhir:v "A" ]
     ] )
  ] [
     fhir:id [ fhir:v "1805" ] ;
     fhir:code [ fhir:v "5" ] ;
     fhir:display [ fhir:v "Substitution allowed - brand drug dispensed as a generic" ] ;
     fhir:definition [ fhir:v "Substitution allowed - brand drug dispensed as a generic" ] ;
     fhir:property ( [
       fhir:code [ fhir:v "status" ] ;
       fhir:value [ fhir:v "A" ]
     ] )
  ] [
     fhir:id [ fhir:v "1806" ] ;
     fhir:code [ fhir:v "7" ] ;
     fhir:display [ fhir:v "Substitution not allowed - brand drug mandated by law" ] ;
     fhir:definition [ fhir:v "Substitution not allowed - brand drug mandated by law" ] ;
     fhir:property ( [
       fhir:code [ fhir:v "status" ] ;
       fhir:value [ fhir:v "A" ]
     ] )
  ] [
     fhir:id [ fhir:v "1807" ] ;
     fhir:code [ fhir:v "8" ] ;
     fhir:display [ fhir:v "Substitution allowed - generic drug not available in marketplace" ] ;
     fhir:definition [ fhir:v "Substitution allowed - generic drug not available in marketplace" ] ;
     fhir:property ( [
       fhir:code [ fhir:v "status" ] ;
       fhir:value [ fhir:v "A" ]
     ] )
  ] ) . # 

# -------------------------------------------------------------------------------------

