@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://bha.colorado.gov/fhir/bha-ig/CodeSystem/bha-referral-source> a fhir:CodeSystem ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:Resource.id [ fhir:value "bha-referral-source"] ;
  fhir:DomainResource.text [
     fhir:Narrative.status [ fhir:value "generated" ] ;
     fhir:Narrative.div "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p class=\"res-header-id\"><b>Generated Narrative: CodeSystem bha-referral-source</b></p><a name=\"bha-referral-source\"> </a><a name=\"hcbha-referral-source\"> </a><p>This case-sensitive code system <code>http://bha.colorado.gov/fhir/bha-ig/CodeSystem/bha-referral-source</code> defines the following codes:</p><table class=\"codes\"><tr><td style=\"white-space:nowrap\"><b>Code</b></td><td><b>Display</b></td></tr><tr><td style=\"white-space:nowrap\">1<a name=\"bha-referral-source-1\"> </a></td><td>Individual (self, family, friend)</td></tr><tr><td style=\"white-space:nowrap\">2<a name=\"bha-referral-source-2\"> </a></td><td>Alcohol/drug use care provider</td></tr><tr><td style=\"white-space:nowrap\">3<a name=\"bha-referral-source-3\"> </a></td><td>Other health care provider (e.g., medical, mental)</td></tr><tr><td style=\"white-space:nowrap\">4<a name=\"bha-referral-source-4\"> </a></td><td>School (educational)</td></tr><tr><td style=\"white-space:nowrap\">5<a name=\"bha-referral-source-5\"> </a></td><td>Employer</td></tr><tr><td style=\"white-space:nowrap\">6<a name=\"bha-referral-source-6\"> </a></td><td>Social/Human Services</td></tr><tr><td style=\"white-space:nowrap\">7<a name=\"bha-referral-source-7\"> </a></td><td>Non-DUI Criminal Justice (Probation, Parole/TASC, SB-94, Community Corrections)</td></tr><tr><td style=\"white-space:nowrap\">8<a name=\"bha-referral-source-8\"> </a></td><td>DUI/DWI Criminal Justice</td></tr><tr><td style=\"white-space:nowrap\">9<a name=\"bha-referral-source-9\"> </a></td><td>Involuntary Commitment</td></tr><tr><td style=\"white-space:nowrap\">10<a name=\"bha-referral-source-10\"> </a></td><td>Other Community Referral</td></tr><tr><td style=\"white-space:nowrap\">11<a name=\"bha-referral-source-11\"> </a></td><td>Drug Court</td></tr><tr><td style=\"white-space:nowrap\">12<a name=\"bha-referral-source-12\"> </a></td><td>STIRT</td></tr><tr><td style=\"white-space:nowrap\">13<a name=\"bha-referral-source-13\"> </a></td><td>Crisis System</td></tr><tr><td style=\"white-space:nowrap\">14<a name=\"bha-referral-source-14\"> </a></td><td>I MATTER</td></tr><tr><td style=\"white-space:nowrap\">15<a name=\"bha-referral-source-15\"> </a></td><td>Residential Facility, Mental Health</td></tr><tr><td style=\"white-space:nowrap\">16<a name=\"bha-referral-source-16\"> </a></td><td>Residential Facility, Other</td></tr><tr><td style=\"white-space:nowrap\">17<a name=\"bha-referral-source-17\"> </a></td><td>Referral source not known</td></tr></table></div>"
  ] ;
  fhir:DomainResource.extension [
     fhir:index 0 ;
     fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm" ] ;
     fhir:Extension.valueInteger [
       fhir:value "1"^^xsd:integer ;
       fhir:Element.extension [
         fhir:index 0 ;
         fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/structuredefinition-conformance-derivedFrom" ] ;
         fhir:Extension.valueCanonical [
           fhir:value "http://bha.colorado.gov/fhir/bha-ig/ImplementationGuide/us.co.bha-ig" ;
           fhir:link <http://bha.colorado.gov/fhir/bha-ig/ImplementationGuide/us.co.bha-ig>
         ]
       ]
     ]
  ], [
     fhir:index 1 ;
     fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status" ] ;
     fhir:Extension.valueCode [
       fhir:value "trial-use" ;
       fhir:Element.extension [
         fhir:index 0 ;
         fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/structuredefinition-conformance-derivedFrom" ] ;
         fhir:Extension.valueCanonical [
           fhir:value "http://bha.colorado.gov/fhir/bha-ig/ImplementationGuide/us.co.bha-ig" ;
           fhir:link <http://bha.colorado.gov/fhir/bha-ig/ImplementationGuide/us.co.bha-ig>
         ]
       ]
     ]
  ] ;
  fhir:CodeSystem.url [ fhir:value "http://bha.colorado.gov/fhir/bha-ig/CodeSystem/bha-referral-source"] ;
  fhir:CodeSystem.version [ fhir:value "0.3.0-current"] ;
  fhir:CodeSystem.name [ fhir:value "BHAReferralSourceCS"] ;
  fhir:CodeSystem.title [ fhir:value "BHA Referral Source"] ;
  fhir:CodeSystem.status [ fhir:value "active"] ;
  fhir:CodeSystem.experimental [ fhir:value "false"^^xsd:boolean] ;
  fhir:CodeSystem.date [ fhir:value "2026-07-06T17:11:10+00:00"^^xsd:dateTime] ;
  fhir:CodeSystem.publisher [ fhir:value "Colorado Behavioral Health Administration"] ;
  fhir:CodeSystem.contact [
     fhir:index 0 ;
     fhir:ContactDetail.name [ fhir:value "Colorado Behavioral Health Administration" ] ;
     fhir:ContactDetail.telecom [
       fhir:index 0 ;
       fhir:ContactPoint.system [ fhir:value "url" ] ;
       fhir:ContactPoint.value [ fhir:value "https://bha.colorado.gov" ]
     ], [
       fhir:index 1 ;
       fhir:ContactPoint.system [ fhir:value "email" ] ;
       fhir:ContactPoint.value [ fhir:value "FHIRFeedback@state.co.us" ]
     ]
  ] ;
  fhir:CodeSystem.description [ fhir:value "Code system for referral sources used in BHA admission process"] ;
  fhir:CodeSystem.jurisdiction [
     fhir:index 0 ;
     fhir:CodeableConcept.coding [
       fhir:index 0 ;
       fhir:Coding.system [ fhir:value "urn:iso:std:iso:3166" ] ;
       fhir:Coding.code [ fhir:value "USA" ]
     ]
  ] ;
  fhir:CodeSystem.caseSensitive [ fhir:value "true"^^xsd:boolean] ;
  fhir:CodeSystem.content [ fhir:value "complete"] ;
  fhir:CodeSystem.count [ fhir:value "17"^^xsd:nonNegativeInteger] ;
  fhir:CodeSystem.concept [
     fhir:index 0 ;
     fhir:CodeSystem.concept.code [ fhir:value "1" ] ;
     fhir:CodeSystem.concept.display [ fhir:value "Individual (self, family, friend)" ]
  ], [
     fhir:index 1 ;
     fhir:CodeSystem.concept.code [ fhir:value "2" ] ;
     fhir:CodeSystem.concept.display [ fhir:value "Alcohol/drug use care provider" ]
  ], [
     fhir:index 2 ;
     fhir:CodeSystem.concept.code [ fhir:value "3" ] ;
     fhir:CodeSystem.concept.display [ fhir:value "Other health care provider (e.g., medical, mental)" ]
  ], [
     fhir:index 3 ;
     fhir:CodeSystem.concept.code [ fhir:value "4" ] ;
     fhir:CodeSystem.concept.display [ fhir:value "School (educational)" ]
  ], [
     fhir:index 4 ;
     fhir:CodeSystem.concept.code [ fhir:value "5" ] ;
     fhir:CodeSystem.concept.display [ fhir:value "Employer" ]
  ], [
     fhir:index 5 ;
     fhir:CodeSystem.concept.code [ fhir:value "6" ] ;
     fhir:CodeSystem.concept.display [ fhir:value "Social/Human Services" ]
  ], [
     fhir:index 6 ;
     fhir:CodeSystem.concept.code [ fhir:value "7" ] ;
     fhir:CodeSystem.concept.display [ fhir:value "Non-DUI Criminal Justice (Probation, Parole/TASC, SB-94, Community Corrections)" ]
  ], [
     fhir:index 7 ;
     fhir:CodeSystem.concept.code [ fhir:value "8" ] ;
     fhir:CodeSystem.concept.display [ fhir:value "DUI/DWI Criminal Justice" ]
  ], [
     fhir:index 8 ;
     fhir:CodeSystem.concept.code [ fhir:value "9" ] ;
     fhir:CodeSystem.concept.display [ fhir:value "Involuntary Commitment" ]
  ], [
     fhir:index 9 ;
     fhir:CodeSystem.concept.code [ fhir:value "10" ] ;
     fhir:CodeSystem.concept.display [ fhir:value "Other Community Referral" ]
  ], [
     fhir:index 10 ;
     fhir:CodeSystem.concept.code [ fhir:value "11" ] ;
     fhir:CodeSystem.concept.display [ fhir:value "Drug Court" ]
  ], [
     fhir:index 11 ;
     fhir:CodeSystem.concept.code [ fhir:value "12" ] ;
     fhir:CodeSystem.concept.display [ fhir:value "STIRT" ]
  ], [
     fhir:index 12 ;
     fhir:CodeSystem.concept.code [ fhir:value "13" ] ;
     fhir:CodeSystem.concept.display [ fhir:value "Crisis System" ]
  ], [
     fhir:index 13 ;
     fhir:CodeSystem.concept.code [ fhir:value "14" ] ;
     fhir:CodeSystem.concept.display [ fhir:value "I MATTER" ]
  ], [
     fhir:index 14 ;
     fhir:CodeSystem.concept.code [ fhir:value "15" ] ;
     fhir:CodeSystem.concept.display [ fhir:value "Residential Facility, Mental Health" ]
  ], [
     fhir:index 15 ;
     fhir:CodeSystem.concept.code [ fhir:value "16" ] ;
     fhir:CodeSystem.concept.display [ fhir:value "Residential Facility, Other" ]
  ], [
     fhir:index 16 ;
     fhir:CodeSystem.concept.code [ fhir:value "17" ] ;
     fhir:CodeSystem.concept.display [ fhir:value "Referral source not known" ]
  ] .

# - ontology header ------------------------------------------------------------

<http://bha.colorado.gov/fhir/bha-ig/CodeSystem/bha-referral-source.ttl> a owl:Ontology ;
  owl:imports fhir:fhir.ttl .

# -------------------------------------------------------------------------------------

