@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-end-of-treatment-reason-cs> a fhir:CodeSystem ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:Resource.id [ fhir:value "bha-end-of-treatment-reason-cs"] ;
  fhir:Resource.language [ fhir:value "en"] ;
  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-end-of-treatment-reason-cs</b></p><a name=\"bha-end-of-treatment-reason-cs\"> </a><a name=\"hcbha-end-of-treatment-reason-cs\"> </a><p>This case-sensitive code system <code>http://bha.colorado.gov/fhir/bha-ig/CodeSystem/bha-end-of-treatment-reason-cs</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-end-of-treatment-reason-cs-1\"> </a></td><td>Attendance</td></tr><tr><td style=\"white-space:nowrap\">2<a name=\"bha-end-of-treatment-reason-cs-2\"> </a></td><td>Client Decision</td></tr><tr><td style=\"white-space:nowrap\">3<a name=\"bha-end-of-treatment-reason-cs-3\"> </a></td><td>Client stopped coming and contact efforts failed</td></tr><tr><td style=\"white-space:nowrap\">4<a name=\"bha-end-of-treatment-reason-cs-4\"> </a></td><td>Financial/Payments</td></tr><tr><td style=\"white-space:nowrap\">5<a name=\"bha-end-of-treatment-reason-cs-5\"> </a></td><td>Lack of Progress</td></tr><tr><td style=\"white-space:nowrap\">6<a name=\"bha-end-of-treatment-reason-cs-6\"> </a></td><td>Medical Reasons</td></tr><tr><td style=\"white-space:nowrap\">7<a name=\"bha-end-of-treatment-reason-cs-7\"> </a></td><td>Military Deployment</td></tr><tr><td style=\"white-space:nowrap\">8<a name=\"bha-end-of-treatment-reason-cs-8\"> </a></td><td>Moved</td></tr><tr><td style=\"white-space:nowrap\">9<a name=\"bha-end-of-treatment-reason-cs-9\"> </a></td><td>Incarcerated</td></tr><tr><td style=\"white-space:nowrap\">10<a name=\"bha-end-of-treatment-reason-cs-10\"> </a></td><td>Died</td></tr><tr><td style=\"white-space:nowrap\">11<a name=\"bha-end-of-treatment-reason-cs-11\"> </a></td><td>Agency closed/No longer in business</td></tr></table></div>"
  ] ;
  fhir:DomainResource.extension [
     fhir:index -1 ;
     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 -1 ;
         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 -1 ;
         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-end-of-treatment-reason-cs"] ;
  fhir:CodeSystem.version [ fhir:value "0.3.0-current"] ;
  fhir:CodeSystem.name [ fhir:value "BHAEndOfTreatmentReasonCS"] ;
  fhir:CodeSystem.title [ fhir:value "BHA End of Treatment Reasons"] ;
  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 -1 ;
     fhir:ContactDetail.name [ fhir:value "Colorado Behavioral Health Administration" ] ;
     fhir:ContactDetail.telecom [
       fhir:index -1 ;
       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 "End of Treatment Reasons for BHA services/admissions. Valid values align with ACT sheet Appendix ACT-Ascent."] ;
  fhir:CodeSystem.jurisdiction [
     fhir:index -1 ;
     fhir:CodeableConcept.coding [
       fhir:index -1 ;
       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 "11"^^xsd:nonNegativeInteger] ;
  fhir:CodeSystem.concept [
     fhir:index -1 ;
     fhir:CodeSystem.concept.code [ fhir:value "1" ] ;
     fhir:CodeSystem.concept.display [ fhir:value "Attendance" ]
  ], [
     fhir:index -1 ;
     fhir:CodeSystem.concept.code [ fhir:value "2" ] ;
     fhir:CodeSystem.concept.display [ fhir:value "Client Decision" ]
  ], [
     fhir:index -1 ;
     fhir:CodeSystem.concept.code [ fhir:value "3" ] ;
     fhir:CodeSystem.concept.display [ fhir:value "Client stopped coming and contact efforts failed" ]
  ], [
     fhir:index -1 ;
     fhir:CodeSystem.concept.code [ fhir:value "4" ] ;
     fhir:CodeSystem.concept.display [ fhir:value "Financial/Payments" ]
  ], [
     fhir:index -1 ;
     fhir:CodeSystem.concept.code [ fhir:value "5" ] ;
     fhir:CodeSystem.concept.display [ fhir:value "Lack of Progress" ]
  ], [
     fhir:index -1 ;
     fhir:CodeSystem.concept.code [ fhir:value "6" ] ;
     fhir:CodeSystem.concept.display [ fhir:value "Medical Reasons" ]
  ], [
     fhir:index -1 ;
     fhir:CodeSystem.concept.code [ fhir:value "7" ] ;
     fhir:CodeSystem.concept.display [ fhir:value "Military Deployment" ]
  ], [
     fhir:index -1 ;
     fhir:CodeSystem.concept.code [ fhir:value "8" ] ;
     fhir:CodeSystem.concept.display [ fhir:value "Moved" ]
  ], [
     fhir:index -1 ;
     fhir:CodeSystem.concept.code [ fhir:value "9" ] ;
     fhir:CodeSystem.concept.display [ fhir:value "Incarcerated" ]
  ], [
     fhir:index -1 ;
     fhir:CodeSystem.concept.code [ fhir:value "10" ] ;
     fhir:CodeSystem.concept.display [ fhir:value "Died" ]
  ], [
     fhir:index -1 ;
     fhir:CodeSystem.concept.code [ fhir:value "11" ] ;
     fhir:CodeSystem.concept.display [ fhir:value "Agency closed/No longer in business" ]
  ] .

# - ontology header ------------------------------------------------------------

<http://bha.colorado.gov/fhir/bha-ig/CodeSystem/bha-end-of-treatment-reason-cs.ttl> a owl:Ontology ;
  owl:imports fhir:fhir.ttl .

# -------------------------------------------------------------------------------------

