@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-document-form-cs> a fhir:CodeSystem ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:Resource.id [ fhir:value "vn-document-form-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-document-form-cs</b></p><a name=\"vn-document-form-cs\"> </a><a name=\"hcvn-document-form-cs\"> </a><p>This case-sensitive code system <code>http://fhir.hl7.org.vn/core/CodeSystem/vn-document-form-cs</code> defines the following code:</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>English (English, en)</b></td></tr><tr><td style=\"white-space:nowrap\">CT07<a name=\"vn-document-form-cs-CT07\"> </a></td><td>Giấy chứng nhận nghỉ việc hưởng BHXH</td><td>Mã biểu mẫu xác định giấy tờ là Giấy chứng nhận nghỉ việc hưởng bảo hiểm xã hội. Theo QĐ 3176/QĐ-BYT, MAU_SO = CT07. Điều kiện mặc định: khi cơ sở KBCB để trống trường MAU_SO thì hệ thống tự điền CT07.</td><td>BHXH sick-leave certificate form (default value when MAU_SO is left blank)</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:Coding.system [ fhir:value "http://fhir.hl7.org.vn/core/CodeSystem/vn-legal-document-ref-cs" ] ;
       fhir:Coding.code [ fhir:value "QD-3176-2024" ]
     ]
  ] ;
  fhir:CodeSystem.url [ fhir:value "http://fhir.hl7.org.vn/core/CodeSystem/vn-document-form-cs"] ;
  fhir:CodeSystem.version [ fhir:value "0.6.1"] ;
  fhir:CodeSystem.name [ fhir:value "VNDocumentFormCS"] ;
  fhir:CodeSystem.title [ fhir:value "Mã biểu mẫu giấy tờ — Vietnam Document Form CodeSystem"] ;
  fhir:CodeSystem.status [ fhir:value "draft"] ;
  fhir:CodeSystem.experimental [ fhir:value "false"^^xsd:boolean] ;
  fhir:CodeSystem.date [ fhir:value "2026-07-10"^^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 "Danh mục MÃ BIỂU MẪU GIẤY TỜ (document form code) do BYT/BHXH ban hành, dùng để xác định loại giấy tờ/biểu mẫu trong hồ sơ KCB điện tử gửi BHXH — trường MAU_SO (Bảng 11, QĐ 3176/QĐ-BYT). Mã ánh xạ về `DocumentReference.type` / `Composition.type`. LƯU Ý: đây KHÔNG phải \"mẫu số thẻ BHYT\" — mã này không liên quan đến cấu trúc/mẫu thẻ BHYT; nó chỉ định danh loại biểu mẫu giấy tờ (vd giấy chứng nhận nghỉ việc hưởng BHXH). Họ mã theo quy ước CTxx có thể mở rộng khi BYT/BHXH ban hành thêm biểu mẫu mới."] ;
  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Đ 3176/QĐ-BYT (29/10/2024). Trường MAU_SO (STT 22, Bảng 11 — Giấy chứng nhận nghỉ việc hưởng BHXH). Họ mã CTxx do BYT/BHXH ban hành, có thể mở rộng khi có thêm biểu mẫu giấy tờ mới."] ;
  fhir:CodeSystem.caseSensitive [ fhir:value "true"^^xsd:boolean] ;
  fhir:CodeSystem.content [ fhir:value "complete"] ;
  fhir:CodeSystem.count [ fhir:value "1"^^xsd:nonNegativeInteger] ;
  fhir:CodeSystem.concept [
     fhir:index -1 ;
     fhir:CodeSystem.concept.code [ fhir:value "CT07" ] ;
     fhir:CodeSystem.concept.display [ fhir:value "Giấy chứng nhận nghỉ việc hưởng BHXH" ] ;
     fhir:CodeSystem.concept.definition [ fhir:value "Mã biểu mẫu xác định giấy tờ là Giấy chứng nhận nghỉ việc hưởng bảo hiểm xã hội. Theo QĐ 3176/QĐ-BYT, MAU_SO = CT07. Điều kiện mặc định: khi cơ sở KBCB để trống trường MAU_SO thì hệ thống tự điền CT07." ] ;
     fhir:CodeSystem.concept.designation [
       fhir:index -1 ;
       fhir:CodeSystem.concept.designation.language [ fhir:value "en" ] ;
       fhir:CodeSystem.concept.designation.value [ fhir:value "BHXH sick-leave certificate form (default value when MAU_SO is left blank)" ]
     ]
  ] .

# - ontology header ------------------------------------------------------------

<http://fhir.hl7.org.vn/core/CodeSystem/vn-document-form-cs.ttl> a owl:Ontology ;
  owl:imports fhir:fhir.ttl .

# -------------------------------------------------------------------------------------

