@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-claim-appeal-stage-cs> a fhir:CodeSystem ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:Resource.id [ fhir:value "vn-claim-appeal-stage-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-claim-appeal-stage-cs</b></p><a name=\"vn-claim-appeal-stage-cs\"> </a><a name=\"hcvn-claim-appeal-stage-cs\"> </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>codeSource</td><td>codeSource</td><td>http://fhir.hl7.org.vn/core/CodeSystem/vn-claim-appeal-stage-cs#codeSource</td><td>code</td><td>Nguồn của mã: project-assigned — mã do VN Core đặt vì văn bản căn cứ không ban hành bộ mã.</td></tr></table><p><b>Concepts</b></p><p>This case-sensitive code system <code>http://fhir.hl7.org.vn/core/CodeSystem/vn-claim-appeal-stage-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><td><b>codeSource</b></td><td><b>English (English, en)</b></td></tr><tr><td style=\"white-space:nowrap\">submitted<a name=\"vn-claim-appeal-stage-cs-submitted\"> </a></td><td>Đã gửi kiến nghị</td><td>Cơ sở khám bệnh, chữa bệnh đã gửi kiến nghị nhưng chưa có xác nhận tiếp nhận.</td><td>project-assigned</td><td>Appeal submitted</td></tr><tr><td style=\"white-space:nowrap\">under-review-by-insurer<a name=\"vn-claim-appeal-stage-cs-under-review-by-insurer\"> </a></td><td>Cơ quan BHXH đang xem xét lại</td><td>Kiến nghị đang được chính cơ quan bảo hiểm xã hội xem xét lại theo NĐ 188/2025/NĐ-CP Điều 51 khoản 3 hoặc Điều 52 khoản 4, nhánh thứ nhất.</td><td>project-assigned</td><td>Under review by the social insurance agency</td></tr><tr><td style=\"white-space:nowrap\">escalated-to-authority<a name=\"vn-claim-appeal-stage-cs-escalated-to-authority\"> </a></td><td>Đã chuyển cơ quan có thẩm quyền</td><td>Kiến nghị đã được chuyển tới cơ quan có thẩm quyền xem xét, giải quyết theo quy định của pháp luật — nhánh thứ hai của Điều 51 khoản 3 và Điều 52 khoản 4.</td><td>project-assigned</td><td>Escalated to the competent authority</td></tr><tr><td style=\"white-space:nowrap\">upheld<a name=\"vn-claim-appeal-stage-cs-upheld\"> </a></td><td>Giữ nguyên quyết định</td><td>Kết quả giải quyết giữ nguyên việc từ chối hoặc thu hồi.</td><td>project-assigned</td><td>Original decision upheld</td></tr><tr><td style=\"white-space:nowrap\">reversed<a name=\"vn-claim-appeal-stage-cs-reversed\"> </a></td><td>Chấp nhận kiến nghị</td><td>Kết quả giải quyết chấp nhận kiến nghị, huỷ hoặc điều chỉnh việc từ chối/thu hồi.</td><td>project-assigned</td><td>Decision reversed</td></tr><tr><td style=\"white-space:nowrap\">withdrawn<a name=\"vn-claim-appeal-stage-cs-withdrawn\"> </a></td><td>Rút kiến nghị</td><td>Cơ sở khám bệnh, chữa bệnh rút kiến nghị trước khi có kết quả giải quyết.</td><td>project-assigned</td><td>Appeal withdrawn</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 "governing" ]
       ] ;
       fhir:Coding.system [ fhir:value "http://fhir.hl7.org.vn/core/CodeSystem/vn-legal-document-ref-cs" ] ;
       fhir:Coding.code [ fhir:value "ND-188-2025" ]
     ]
  ] ;
  fhir:CodeSystem.url [ fhir:value "http://fhir.hl7.org.vn/core/CodeSystem/vn-claim-appeal-stage-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.19" ]
  ] ;
  fhir:CodeSystem.version [ fhir:value "0.10.0"] ;
  fhir:CodeSystem.name [ fhir:value "VNClaimAppealStageCS"] ;
  fhir:CodeSystem.title [ fhir:value "Giai đoạn kiến nghị chi phí BHYT (bộ mã) — BHYT Cost Appeal Stage Code System"] ;
  fhir:CodeSystem.status [ fhir:value "draft"] ;
  fhir:CodeSystem.experimental [ fhir:value "false"^^xsd:boolean] ;
  fhir:CodeSystem.date [ fhir:value "2026-08-06"^^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 "Giai đoạn nghiệp vụ của một kiến nghị xem xét lại việc từ chối thanh toán hoặc thu hồi chi phí\nkhám bệnh, chữa bệnh bảo hiểm y tế.\n\n**Căn cứ.** NĐ 188/2025/NĐ-CP Điều 51 khoản 3 (kiến nghị việc từ chối thanh toán) và Điều 52\nkhoản 4 (kiến nghị việc thu hồi) đều cho cơ sở khám bệnh, chữa bệnh hai đường đi: kiến nghị\nchính cơ quan bảo hiểm xã hội xem xét lại, HOẶC kiến nghị cơ quan có thẩm quyền xem xét, giải\nquyết theo quy định của pháp luật. Điều 53 khoản 1 nói tới `kết quả giải quyết cuối cùng của cơ\nquan có thẩm quyền`, tức hai đường này có thể nối tiếp nhau chứ không loại trừ.\n\n**Vì sao là CodeSystem riêng chứ không dùng `Task.status`.** `Task.status` mô tả vòng đời KỸ THUẬT\ncủa công việc (requested, in-progress, completed…), không phân biệt được kiến nghị đang ở cơ quan\nbảo hiểm xã hội hay đã chuyển lên cơ quan có thẩm quyền — mà đó chính là khác biệt pháp lý quan\ntrọng nhất của quy trình này.\n\nToàn bộ mã do dự án tự đặt: hai điều luật trên quy định QUYỀN kiến nghị và trách nhiệm giải quyết,\nkhông ban hành danh mục mã trạng thá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.purpose [ fhir:value "Mã trong bộ này là ĐỊNH DANH KỸ THUẬT do VN Core đặt để tham chiếu ổn định trong hồ sơ FHIR — văn bản pháp luật nêu ở căn cứ quy định nội dung của từng khái niệm nhưng không ban hành bộ mã. Khi đối chiếu với văn bản, tra theo `display` và `definition`, không tra theo `code`."] ;
  fhir:CodeSystem.caseSensitive [ fhir:value "true"^^xsd:boolean] ;
  fhir:CodeSystem.content [ fhir:value "complete"] ;
  fhir:CodeSystem.count [ fhir:value "6"^^xsd:nonNegativeInteger] ;
  fhir:CodeSystem.property [
     fhir:index -1 ;
     fhir:CodeSystem.property.code [ fhir:value "codeSource" ] ;
     fhir:CodeSystem.property.uri [ fhir:value "http://fhir.hl7.org.vn/core/CodeSystem/vn-claim-appeal-stage-cs#codeSource" ] ;
     fhir:CodeSystem.property.description [ fhir:value "Nguồn của mã: project-assigned — mã do VN Core đặt vì văn bản căn cứ không ban hành bộ mã." ] ;
     fhir:CodeSystem.property.type [ fhir:value "code" ]
  ] ;
  fhir:CodeSystem.concept [
     fhir:index -1 ;
     fhir:CodeSystem.concept.code [ fhir:value "submitted" ] ;
     fhir:CodeSystem.concept.display [ fhir:value "Đã gửi kiến nghị" ] ;
     fhir:CodeSystem.concept.definition [ fhir:value "Cơ sở khám bệnh, chữa bệnh đã gửi kiến nghị nhưng chưa có xác nhận tiếp nhận." ] ;
     fhir:CodeSystem.concept.designation [
       fhir:index -1 ;
       fhir:CodeSystem.concept.designation.language [ fhir:value "en" ] ;
       fhir:CodeSystem.concept.designation.value [ fhir:value "Appeal submitted" ]
     ] ;
     fhir:CodeSystem.concept.property [
       fhir:index -1 ;
       fhir:CodeSystem.concept.property.code [ fhir:value "codeSource" ] ;
       fhir:CodeSystem.concept.property.valueCode [ fhir:value "project-assigned" ]
     ]
  ], [
     fhir:index -1 ;
     fhir:CodeSystem.concept.code [ fhir:value "under-review-by-insurer" ] ;
     fhir:CodeSystem.concept.display [ fhir:value "Cơ quan BHXH đang xem xét lại" ] ;
     fhir:CodeSystem.concept.definition [ fhir:value "Kiến nghị đang được chính cơ quan bảo hiểm xã hội xem xét lại theo NĐ 188/2025/NĐ-CP Điều 51 khoản 3 hoặc Điều 52 khoản 4, nhánh thứ nhất." ] ;
     fhir:CodeSystem.concept.designation [
       fhir:index -1 ;
       fhir:CodeSystem.concept.designation.language [ fhir:value "en" ] ;
       fhir:CodeSystem.concept.designation.value [ fhir:value "Under review by the social insurance agency" ]
     ] ;
     fhir:CodeSystem.concept.property [
       fhir:index -1 ;
       fhir:CodeSystem.concept.property.code [ fhir:value "codeSource" ] ;
       fhir:CodeSystem.concept.property.valueCode [ fhir:value "project-assigned" ]
     ]
  ], [
     fhir:index -1 ;
     fhir:CodeSystem.concept.code [ fhir:value "escalated-to-authority" ] ;
     fhir:CodeSystem.concept.display [ fhir:value "Đã chuyển cơ quan có thẩm quyền" ] ;
     fhir:CodeSystem.concept.definition [ fhir:value "Kiến nghị đã được chuyển tới cơ quan có thẩm quyền xem xét, giải quyết theo quy định của pháp luật — nhánh thứ hai của Điều 51 khoản 3 và Điều 52 khoản 4." ] ;
     fhir:CodeSystem.concept.designation [
       fhir:index -1 ;
       fhir:CodeSystem.concept.designation.language [ fhir:value "en" ] ;
       fhir:CodeSystem.concept.designation.value [ fhir:value "Escalated to the competent authority" ]
     ] ;
     fhir:CodeSystem.concept.property [
       fhir:index -1 ;
       fhir:CodeSystem.concept.property.code [ fhir:value "codeSource" ] ;
       fhir:CodeSystem.concept.property.valueCode [ fhir:value "project-assigned" ]
     ]
  ], [
     fhir:index -1 ;
     fhir:CodeSystem.concept.code [ fhir:value "upheld" ] ;
     fhir:CodeSystem.concept.display [ fhir:value "Giữ nguyên quyết định" ] ;
     fhir:CodeSystem.concept.definition [ fhir:value "Kết quả giải quyết giữ nguyên việc từ chối hoặc thu hồi." ] ;
     fhir:CodeSystem.concept.designation [
       fhir:index -1 ;
       fhir:CodeSystem.concept.designation.language [ fhir:value "en" ] ;
       fhir:CodeSystem.concept.designation.value [ fhir:value "Original decision upheld" ]
     ] ;
     fhir:CodeSystem.concept.property [
       fhir:index -1 ;
       fhir:CodeSystem.concept.property.code [ fhir:value "codeSource" ] ;
       fhir:CodeSystem.concept.property.valueCode [ fhir:value "project-assigned" ]
     ]
  ], [
     fhir:index -1 ;
     fhir:CodeSystem.concept.code [ fhir:value "reversed" ] ;
     fhir:CodeSystem.concept.display [ fhir:value "Chấp nhận kiến nghị" ] ;
     fhir:CodeSystem.concept.definition [ fhir:value "Kết quả giải quyết chấp nhận kiến nghị, huỷ hoặc điều chỉnh việc từ chối/thu hồi." ] ;
     fhir:CodeSystem.concept.designation [
       fhir:index -1 ;
       fhir:CodeSystem.concept.designation.language [ fhir:value "en" ] ;
       fhir:CodeSystem.concept.designation.value [ fhir:value "Decision reversed" ]
     ] ;
     fhir:CodeSystem.concept.property [
       fhir:index -1 ;
       fhir:CodeSystem.concept.property.code [ fhir:value "codeSource" ] ;
       fhir:CodeSystem.concept.property.valueCode [ fhir:value "project-assigned" ]
     ]
  ], [
     fhir:index -1 ;
     fhir:CodeSystem.concept.code [ fhir:value "withdrawn" ] ;
     fhir:CodeSystem.concept.display [ fhir:value "Rút kiến nghị" ] ;
     fhir:CodeSystem.concept.definition [ fhir:value "Cơ sở khám bệnh, chữa bệnh rút kiến nghị trước khi có kết quả giải quyết." ] ;
     fhir:CodeSystem.concept.designation [
       fhir:index -1 ;
       fhir:CodeSystem.concept.designation.language [ fhir:value "en" ] ;
       fhir:CodeSystem.concept.designation.value [ fhir:value "Appeal withdrawn" ]
     ] ;
     fhir:CodeSystem.concept.property [
       fhir:index -1 ;
       fhir:CodeSystem.concept.property.code [ fhir:value "codeSource" ] ;
       fhir:CodeSystem.concept.property.valueCode [ fhir:value "project-assigned" ]
     ]
  ] .

# - ontology header ------------------------------------------------------------

<http://fhir.hl7.org.vn/core/CodeSystem/vn-claim-appeal-stage-cs.ttl> a owl:Ontology ;
  owl:imports fhir:fhir.ttl .

# -------------------------------------------------------------------------------------

