@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-aefi-classification-cs> a fhir:CodeSystem ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:Resource.id [ fhir:value "vn-aefi-classification-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-aefi-classification-cs</b></p><a name=\"vn-aefi-classification-cs\"> </a><a name=\"hcvn-aefi-classification-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-aefi-classification-cs#codeSource</td><td>code</td><td>Nguồn của mã: project-assigned (VN Core tự đặt vì văn bản định nghĩa khái niệm bằng văn xuôi, không ban hành bộ mã).</td></tr><tr><td>Parent</td><td>parent</td><td>http://hl7.org/fhir/concept-properties#parent</td><td>code</td><td>Mã cha trong cây phân loại.</td></tr></table><p><b>Concepts</b></p><p>This case-sensitive code system <code>http://fhir.hl7.org.vn/core/CodeSystem/vn-aefi-classification-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>Parent</b></td><td><b>English (English, en)</b></td></tr><tr><td style=\"white-space:nowrap\">aefi<a name=\"vn-aefi-classification-cs-aefi\"> </a></td><td>Sự cố bất lợi sau tiêm chủng</td><td>Hiện tượng bất thường về sức khoẻ bao gồm các biểu hiện tại chỗ tiêm hoặc toàn thân xảy ra sau tiêm chủng, KHÔNG NHẤT THIẾT do việc sử dụng vắc xin, sinh phẩm. Theo TT 13/2026/TT-BYT Điều 2 khoản 2, khái niệm này bao gồm cả phản ứng thông thường lẫn tai biến nặng. Dùng ở tầng category; khi đã phân loại được thì ghi thêm một trong hai mã con tại seriousness.</td><td>project-assigned</td><td/><td>Adverse event following immunization (AEFI)</td></tr><tr><td style=\"white-space:nowrap\">common-reaction<a name=\"vn-aefi-classification-cs-common-reaction\"> </a></td><td>Phản ứng thông thường sau tiêm chủng</td><td>Các biểu hiện lâm sàng thường gặp, CÓ THỂ TỰ KHỎI và KHÔNG GÂY ẢNH HƯỞNG LÂU DÀI, xảy ra sau khi sử dụng vắc xin, sinh phẩm. Theo TT 13/2026/TT-BYT Điều 2 khoản 3. Không dùng mã này khi sự cố để lại di chứng hoặc gây tử vong — hai kết cục đó thuộc định nghĩa tai biến nặng.</td><td>project-assigned</td><td>aefi</td><td>Common reaction following immunization</td></tr><tr><td style=\"white-space:nowrap\">serious-aefi<a name=\"vn-aefi-classification-cs-serious-aefi\"> </a></td><td>Tai biến nặng sau tiêm chủng</td><td>Sự cố bất lợi sau tiêm chủng CÓ THỂ ĐE DOẠ ĐẾN TÍNH MẠNG người được tiêm chủng HOẶC ĐỂ LẠI DI CHỨNG HOẶC LÀM người được tiêm chủng TỬ VONG. Theo NĐ 165/2026/NĐ-CP Điều 2 khoản 7 — định nghĩa nằm ở nghị định, không ở TT 13/2026/TT-BYT. Hai kết cục di chứng dẫn đến khuyết tật và tử vong còn là căn cứ bồi thường nhà nước theo NĐ 165/2026/NĐ-CP Điều 50 khoản 2.</td><td>project-assigned</td><td>aefi</td><td>Serious adverse event following immunization</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 "TT-13-2026" ]
     ]
  ], [
     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-165-2026" ]
     ]
  ] ;
  fhir:CodeSystem.url [ fhir:value "http://fhir.hl7.org.vn/core/CodeSystem/vn-aefi-classification-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.2" ]
  ] ;
  fhir:CodeSystem.version [ fhir:value "0.10.0"] ;
  fhir:CodeSystem.name [ fhir:value "VNAEFIClassificationCS"] ;
  fhir:CodeSystem.title [ fhir:value "Phân loại sự cố bất lợi sau tiêm chủng — VN AEFI Classification CodeSystem"] ;
  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 "Ba tầng phân loại sự cố bất lợi sau tiêm chủng (AEFI) theo đúng cấu trúc định nghĩa của pháp luật:\nmột tầng bao trùm và hai nhánh con loại trừ nhau.\n\n```\naefi (sự cố bất lợi sau tiêm chủng)\n├── common-reaction (phản ứng thông thường)\n└── serious-aefi   (tai biến nặng)\n```\n\n**Vì sao ba mã chứ không phải hai.** TT 13/2026/TT-BYT Điều 2 khoản 2 định nghĩa \"sự cố bất lợi\nsau tiêm chủng\" là khái niệm BAO TRÙM — *\"bao gồm phản ứng thông thường sau tiêm chủng và tai biến\nnặng sau tiêm chủng\"*. Bỏ tầng cha đi thì không còn cách nào khai một sự cố đã ghi nhận nhưng chưa\nphân loại xong, trong khi thực tế báo cáo ban đầu thường ở đúng trạng thái đó.\n\n**Mã do dự án đặt, không phải mã pháp định.** Cả ba văn bản đều định nghĩa khái niệm bằng văn xuôi\nvà KHÔNG ban hành bộ mã. Toàn bộ mã ở đây mang `codeSource = project-assigned`; căn cứ pháp lý\ntrong định nghĩa chỉ để neo ngữ nghĩa, không biến slug thành mã của Bộ Y tế.\n\n**Ranh giới.** CodeSystem này phân loại MỨC ĐỘ NGHIÊM TRỌNG theo pháp luật (`seriousness`), không\nphải biểu hiện lâm sàng (`event`), không phải mức độ nặng nhẹ của triệu chứng (`severity`), cũng\nkhông phải kết cục (`outcome`) hay quan hệ nhân quả (`causality`). Bốn trục đó độc lập với nhau —\nmột phản ứng thông thường vẫn có thể `severity = severe` (sốt cao), và một tai biến nặng vẫn có\nthể `outcome = resolved`."] ;
  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 "Phân loại pháp lý mức độ nghiêm trọng của sự cố bất lợi sau tiêm chủng, dùng tại AdverseEvent.category (tầng cha) và AdverseEvent.seriousness (hai nhánh con) của VNCoreAdverseEventPostImmunization."] ;
  fhir:CodeSystem.copyright [ fhir:value "Khái niệm theo TT 13/2026/TT-BYT Điều 2 và NĐ 165/2026/NĐ-CP Điều 2; mã do VN Core đặt."] ;
  fhir:CodeSystem.caseSensitive [ fhir:value "true"^^xsd:boolean] ;
  fhir:CodeSystem.content [ fhir:value "complete"] ;
  fhir:CodeSystem.count [ fhir:value "3"^^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-aefi-classification-cs#codeSource" ] ;
     fhir:CodeSystem.property.description [ fhir:value "Nguồn của mã: project-assigned (VN Core tự đặt vì văn bản định nghĩa khái niệm bằng văn xuôi, không ban hành bộ mã)." ] ;
     fhir:CodeSystem.property.type [ fhir:value "code" ]
  ], [
     fhir:index -1 ;
     fhir:CodeSystem.property.code [ fhir:value "parent" ] ;
     fhir:CodeSystem.property.uri [ fhir:value "http://hl7.org/fhir/concept-properties#parent" ] ;
     fhir:CodeSystem.property.description [ fhir:value "Mã cha trong cây phân loại." ] ;
     fhir:CodeSystem.property.type [ fhir:value "code" ]
  ] ;
  fhir:CodeSystem.concept [
     fhir:index -1 ;
     fhir:CodeSystem.concept.code [ fhir:value "aefi" ] ;
     fhir:CodeSystem.concept.display [ fhir:value "Sự cố bất lợi sau tiêm chủng" ] ;
     fhir:CodeSystem.concept.definition [ fhir:value "Hiện tượng bất thường về sức khoẻ bao gồm các biểu hiện tại chỗ tiêm hoặc toàn thân xảy ra sau tiêm chủng, KHÔNG NHẤT THIẾT do việc sử dụng vắc xin, sinh phẩm. Theo TT 13/2026/TT-BYT Điều 2 khoản 2, khái niệm này bao gồm cả phản ứng thông thường lẫn tai biến nặng. Dùng ở tầng category; khi đã phân loại được thì ghi thêm một trong hai mã con tại seriousness." ] ;
     fhir:CodeSystem.concept.designation [
       fhir:index -1 ;
       fhir:CodeSystem.concept.designation.language [ fhir:value "en" ] ;
       fhir:CodeSystem.concept.designation.value [ fhir:value "Adverse event following immunization (AEFI)" ]
     ] ;
     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 "common-reaction" ] ;
     fhir:CodeSystem.concept.display [ fhir:value "Phản ứng thông thường sau tiêm chủng" ] ;
     fhir:CodeSystem.concept.definition [ fhir:value "Các biểu hiện lâm sàng thường gặp, CÓ THỂ TỰ KHỎI và KHÔNG GÂY ẢNH HƯỞNG LÂU DÀI, xảy ra sau khi sử dụng vắc xin, sinh phẩm. Theo TT 13/2026/TT-BYT Điều 2 khoản 3. Không dùng mã này khi sự cố để lại di chứng hoặc gây tử vong — hai kết cục đó thuộc định nghĩa tai biến nặng." ] ;
     fhir:CodeSystem.concept.designation [
       fhir:index -1 ;
       fhir:CodeSystem.concept.designation.language [ fhir:value "en" ] ;
       fhir:CodeSystem.concept.designation.value [ fhir:value "Common reaction following immunization" ]
     ] ;
     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.property.code [ fhir:value "parent" ] ;
       fhir:CodeSystem.concept.property.valueCode [ fhir:value "aefi" ]
     ]
  ], [
     fhir:index -1 ;
     fhir:CodeSystem.concept.code [ fhir:value "serious-aefi" ] ;
     fhir:CodeSystem.concept.display [ fhir:value "Tai biến nặng sau tiêm chủng" ] ;
     fhir:CodeSystem.concept.definition [ fhir:value "Sự cố bất lợi sau tiêm chủng CÓ THỂ ĐE DOẠ ĐẾN TÍNH MẠNG người được tiêm chủng HOẶC ĐỂ LẠI DI CHỨNG HOẶC LÀM người được tiêm chủng TỬ VONG. Theo NĐ 165/2026/NĐ-CP Điều 2 khoản 7 — định nghĩa nằm ở nghị định, không ở TT 13/2026/TT-BYT. Hai kết cục di chứng dẫn đến khuyết tật và tử vong còn là căn cứ bồi thường nhà nước theo NĐ 165/2026/NĐ-CP Điều 50 khoản 2." ] ;
     fhir:CodeSystem.concept.designation [
       fhir:index -1 ;
       fhir:CodeSystem.concept.designation.language [ fhir:value "en" ] ;
       fhir:CodeSystem.concept.designation.value [ fhir:value "Serious adverse event following immunization" ]
     ] ;
     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.property.code [ fhir:value "parent" ] ;
       fhir:CodeSystem.concept.property.valueCode [ fhir:value "aefi" ]
     ]
  ] .

# - ontology header ------------------------------------------------------------

<http://fhir.hl7.org.vn/core/CodeSystem/vn-aefi-classification-cs.ttl> a owl:Ontology ;
  owl:imports fhir:fhir.ttl .

# -------------------------------------------------------------------------------------

