@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://fhir.hl7.org.vn/core/CodeSystem/vn-kcbdb-facility-registration-status-cs> a fhir:CodeSystem ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:Resource.id [ fhir:value "vn-kcbdb-facility-registration-status-cs"] ;
  fhir:Resource.language [ fhir:value "vi"] ;
  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 vn-kcbdb-facility-registration-status-cs</b></p><a name=\"vn-kcbdb-facility-registration-status-cs\"> </a><a name=\"hcvn-kcbdb-facility-registration-status-cs\"> </a><p>This case-sensitive code system <code>http://fhir.hl7.org.vn/core/CodeSystem/vn-kcbdb-facility-registration-status-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><td><b>Definition</b></td></tr><tr><td style=\"white-space:nowrap\">0<a name=\"vn-kcbdb-facility-registration-status-cs-0\"> </a></td><td>Chờ đăng ký</td><td>Theo QĐ 2682/QĐ-BYT, Phần III.1 STT 15 ('Tình trạng CSKCB'): mã 0 = Chờ đăng ký.</td></tr><tr><td style=\"white-space:nowrap\">1<a name=\"vn-kcbdb-facility-registration-status-cs-1\"> </a></td><td>Chờ duyệt</td><td>Theo QĐ 2682/QĐ-BYT, Phần III.1 STT 15 ('Tình trạng CSKCB'): mã 1 = Chờ duyệt.</td></tr><tr><td style=\"white-space:nowrap\">2<a name=\"vn-kcbdb-facility-registration-status-cs-2\"> </a></td><td>Từ chối duyệt</td><td>Theo QĐ 2682/QĐ-BYT, Phần III.1 STT 15 ('Tình trạng CSKCB'): mã 2 = Từ chối duyệt.</td></tr><tr><td style=\"white-space:nowrap\">3<a name=\"vn-kcbdb-facility-registration-status-cs-3\"> </a></td><td>Đang hoạt động</td><td>Theo QĐ 2682/QĐ-BYT, Phần III.1 STT 15 ('Tình trạng CSKCB'): mã 3 = Đang hoạt động.</td></tr><tr><td style=\"white-space:nowrap\">4<a name=\"vn-kcbdb-facility-registration-status-cs-4\"> </a></td><td>Ngừng hoạt động</td><td>Theo QĐ 2682/QĐ-BYT, Phần III.1 STT 15 ('Tình trạng CSKCB'): mã 4 = Ngừng hoạt động.</td></tr></table></div>"
  ] ;
  fhir:DomainResource.extension [
     fhir:index -1 ;
     fhir:Extension.url [ fhir:value "http://fhir.hl7.org.vn/core/StructureDefinition/vn-ext-legal-basis" ] ;
     fhir:Extension.valueCoding [
       fhir:Element.extension [
         fhir:index -1 ;
         fhir:Extension.url [ fhir:value "http://fhir.hl7.org.vn/core/StructureDefinition/vn-ext-legal-basis-role" ] ;
         fhir:Extension.valueCode [ fhir:value "issuing" ]
       ] ;
       fhir:Coding.system [ fhir:value "http://fhir.hl7.org.vn/core/CodeSystem/vn-legal-document-ref-cs" ] ;
       fhir:Coding.code [ fhir:value "QD-2682-2026" ]
     ]
  ] ;
  fhir:CodeSystem.url [ fhir:value "http://fhir.hl7.org.vn/core/CodeSystem/vn-kcbdb-facility-registration-status-cs"] ;
  fhir:CodeSystem.identifier [
     fhir:index -1 ;
     fhir:Identifier.system [ fhir:value "urn:ietf:rfc:3986" ] ;
     fhir:Identifier.value [ fhir:value "urn:oid:2.25.161089673617632664299011809196868855799.16.64" ]
  ] ;
  fhir:CodeSystem.version [ fhir:value "0.10.0"] ;
  fhir:CodeSystem.name [ fhir:value "VNKCBDBFacilityRegistrationStatusCS"] ;
  fhir:CodeSystem.title [ fhir:value "Tình trạng đăng ký cơ sở KCB trong CSDL — KCB Database Facility Registration Status CodeSystem"] ;
  fhir:CodeSystem.status [ fhir:value "draft"] ;
  fhir:CodeSystem.experimental [ fhir:value "false"^^xsd:boolean] ;
  fhir:CodeSystem.date [ fhir:value "2026-09-05"^^xsd:date] ;
  fhir:CodeSystem.publisher [ fhir:value "Omi HealthTech / VN Core FHIR Community Initiative"] ;
  fhir:CodeSystem.contact [
     fhir:index -1 ;
     fhir:ContactDetail.name [ fhir:value "Omi HealthTech / VN Core FHIR Community Initiative" ] ;
     fhir:ContactDetail.telecom [
       fhir:index -1 ;
       fhir:ContactPoint.system [ fhir:value "url" ] ;
       fhir:ContactPoint.value [ fhir:value "https://hl7.org.vn" ]
     ], [
       fhir:index -1 ;
       fhir:ContactPoint.system [ fhir:value "email" ] ;
       fhir:ContactPoint.value [ fhir:value "info@hl7.org.vn" ]
     ]
  ], [
     fhir:index -1 ;
     fhir:ContactDetail.name [ fhir:value "Omi HealthTech (OmiGroup)" ] ;
     fhir:ContactDetail.telecom [
       fhir:index -1 ;
       fhir:ContactPoint.system [ fhir:value "url" ] ;
       fhir:ContactPoint.value [ fhir:value "https://omihealthtech.vn" ]
     ], [
       fhir:index -1 ;
       fhir:ContactPoint.system [ fhir:value "url" ] ;
       fhir:ContactPoint.value [ fhir:value "https://omigroup.vn" ]
     ], [
       fhir:index -1 ;
       fhir:ContactPoint.system [ fhir:value "email" ] ;
       fhir:ContactPoint.value [ fhir:value "info@hl7.org.vn" ]
     ]
  ] ;
  fhir:CodeSystem.description [ fhir:value "Giá trị của trường 'Tình trạng CSKCB' (Phần III.1 STT 15 QĐ 2682/QĐ-BYT) — trạng thái quy trình đăng ký/duyệt hồ sơ cơ sở trên CSDL. KHÔNG phải trạng thái giấy phép hoạt động (vn-operating-license-status-cs) hay Organization.active."] ;
  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 "VN" ] ;
       fhir:Coding.display [ fhir:value "Viet Nam" ]
     ]
  ] ;
  fhir:CodeSystem.copyright [ fhir:value "Bộ Y tế Việt Nam — QĐ 2682/QĐ-BYT (22/08/2026), Phụ lục Nội hàm dữ liệu, Phần III.1 STT 15 ('Tình trạng CSKCB')."] ;
  fhir:CodeSystem.caseSensitive [ fhir:value "true"^^xsd:boolean] ;
  fhir:CodeSystem.content [ fhir:value "complete"] ;
  fhir:CodeSystem.count [ fhir:value "5"^^xsd:nonNegativeInteger] ;
  fhir:CodeSystem.concept [
     fhir:index -1 ;
     fhir:CodeSystem.concept.code [ fhir:value "0" ] ;
     fhir:CodeSystem.concept.display [ fhir:value "Chờ đăng ký" ] ;
     fhir:CodeSystem.concept.definition [ fhir:value "Theo QĐ 2682/QĐ-BYT, Phần III.1 STT 15 ('Tình trạng CSKCB'): mã 0 = Chờ đăng ký." ]
  ], [
     fhir:index -1 ;
     fhir:CodeSystem.concept.code [ fhir:value "1" ] ;
     fhir:CodeSystem.concept.display [ fhir:value "Chờ duyệt" ] ;
     fhir:CodeSystem.concept.definition [ fhir:value "Theo QĐ 2682/QĐ-BYT, Phần III.1 STT 15 ('Tình trạng CSKCB'): mã 1 = Chờ duyệt." ]
  ], [
     fhir:index -1 ;
     fhir:CodeSystem.concept.code [ fhir:value "2" ] ;
     fhir:CodeSystem.concept.display [ fhir:value "Từ chối duyệt" ] ;
     fhir:CodeSystem.concept.definition [ fhir:value "Theo QĐ 2682/QĐ-BYT, Phần III.1 STT 15 ('Tình trạng CSKCB'): mã 2 = Từ chối duyệt." ]
  ], [
     fhir:index -1 ;
     fhir:CodeSystem.concept.code [ fhir:value "3" ] ;
     fhir:CodeSystem.concept.display [ fhir:value "Đang hoạt động" ] ;
     fhir:CodeSystem.concept.definition [ fhir:value "Theo QĐ 2682/QĐ-BYT, Phần III.1 STT 15 ('Tình trạng CSKCB'): mã 3 = Đang hoạt động." ]
  ], [
     fhir:index -1 ;
     fhir:CodeSystem.concept.code [ fhir:value "4" ] ;
     fhir:CodeSystem.concept.display [ fhir:value "Ngừng hoạt động" ] ;
     fhir:CodeSystem.concept.definition [ fhir:value "Theo QĐ 2682/QĐ-BYT, Phần III.1 STT 15 ('Tình trạng CSKCB'): mã 4 = Ngừng hoạt động." ]
  ] .

# - ontology header ------------------------------------------------------------

<http://fhir.hl7.org.vn/core/CodeSystem/vn-kcbdb-facility-registration-status-cs.ttl> a owl:Ontology ;
  owl:imports fhir:fhir.ttl .

# -------------------------------------------------------------------------------------

