@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-representation-selection-basis-cs> a fhir:CodeSystem ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:Resource.id [ fhir:value "vn-representation-selection-basis-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-representation-selection-basis-cs</b></p><a name=\"vn-representation-selection-basis-cs\"> </a><a name=\"hcvn-representation-selection-basis-cs\"> </a><p>This case-sensitive code system <code>http://fhir.hl7.org.vn/core/CodeSystem/vn-representation-selection-basis-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>English (English, en)</b></td></tr><tr><td style=\"white-space:nowrap\">adult-patient-selected<a name=\"vn-representation-selection-basis-cs-adult-patient-selected\"> </a></td><td>Do người bệnh thành niên tự lựa chọn</td><td>Người đại diện do chính người bệnh là người thành niên tự lựa chọn — Luật 15/2023/QH15 Điều 8 khoản 2 điểm a. Việc thay thế người đại diện thuộc nhóm này phải có xác nhận của người bệnh (khoản 3 điểm a).</td><td>Selected by the adult patient</td></tr><tr><td style=\"white-space:nowrap\">family-selected<a name=\"vn-representation-selection-basis-cs-family-selected\"> </a></td><td>Do thành viên gia đình lựa chọn</td><td>Người do thành viên gia đình của người bệnh lựa chọn, trong trường hợp người bệnh là người thành niên không thể tự lựa chọn và không có uỷ quyền trước khi rơi vào tình trạng không thể hoặc có khó khăn trong nhận thức, làm chủ hành vi — Điều 8 khoản 2 điểm b.</td><td>Selected by a family member</td></tr><tr><td style=\"white-space:nowrap\">civil-code-representative<a name=\"vn-representation-selection-basis-cs-civil-code-representative\"> </a></td><td>Đại diện theo Bộ luật Dân sự</td><td>Người đại diện theo uỷ quyền hoặc người đại diện theo pháp luật của người bệnh theo quy định của Bộ luật Dân sự — Điều 8 khoản 2 điểm c. Nhánh này dẫn sang Bộ luật 91/2015/QH13: Điều 136 (đại diện theo pháp luật của cá nhân), Điều 138 (đại diện theo uỷ quyền), Điều 52-54 (giám hộ đương nhiên và cử, chỉ định người giám hộ).</td><td>Civil Code representative</td></tr><tr><td style=\"white-space:nowrap\">responsible-legal-entity-appointed<a name=\"vn-representation-selection-basis-cs-responsible-legal-entity-appointed\"> </a></td><td>Đại diện hoặc người được phân công của pháp nhân chịu trách nhiệm</td><td>Người đại diện theo pháp luật của pháp nhân, hoặc người được pháp nhân phân công, khi pháp nhân đó chịu trách nhiệm quản lý, chăm sóc, nuôi dưỡng người bệnh — Điều 8 khoản 2 điểm d.</td><td>Representative or appointee of the responsible legal entity</td></tr><tr><td style=\"white-space:nowrap\">voluntary-obligation-performer<a name=\"vn-representation-selection-basis-cs-voluntary-obligation-performer\"> </a></td><td>Người tự nguyện thực hiện nghĩa vụ của người bệnh</td><td>Người không thuộc các nhóm tại điểm a, b, c và d nhưng tự nguyện thực hiện nghĩa vụ của người bệnh theo quy định của Bộ luật Dân sự — Điều 8 khoản 2 điểm đ.</td><td>Voluntary performer of the patient's obligations</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 "L-15-2023" ]
     ]
  ], [
     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 "L-91-2015" ]
     ]
  ] ;
  fhir:CodeSystem.url [ fhir:value "http://fhir.hl7.org.vn/core/CodeSystem/vn-representation-selection-basis-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.158" ]
  ] ;
  fhir:CodeSystem.version [ fhir:value "0.10.0"] ;
  fhir:CodeSystem.name [ fhir:value "VNRepresentationSelectionBasisCS"] ;
  fhir:CodeSystem.title [ fhir:value "Căn cứ lựa chọn người đại diện — Patient Representative Selection Basis CodeSystem"] ;
  fhir:CodeSystem.status [ fhir:value "active"] ;
  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 "Năm nhóm căn cứ lựa chọn người đại diện của người bệnh theo Luật 15/2023/QH15 Điều 8 khoản 2 điểm a-đ.\n\nĐây là taxonomy **nhóm lựa chọn**, không thay thế việc ghi điều/khoản pháp lý cụ thể: một thẩm quyền thường dựa trên nhiều quy định đồng thời (ví dụ cha, mẹ đại diện cho con chưa thành niên dựa trên cả Điều 8 khoản 2 điểm c Luật KCB và Điều 136 khoản 1 Bộ luật Dân sự). Vì vậy VN Core dùng năm mã ổn định ở đây và ghi điều khoản chi tiết bằng trường lặp riêng, thay vì tạo một mã cho mỗi điều khoản.\n\nCăn cứ: Luật 15/2023/QH15 (Luật Khám bệnh, chữa bệnh) Điều 8 khoản 2; Bộ luật 91/2015/QH13 (Bộ luật Dân sự) Điều 46-63 và Điều 135-141 cho các nhánh dẫn chiếu tại điểm c, d và đ. / Five statutory bases for selecting a patient's representative under the Law on Medical Examination and Treatment, Article 8(2)."] ;
  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.copyright [ fhir:value "Quốc hội — Luật Khám bệnh, chữa bệnh 15/2023/QH15 Điều 8 khoản 2."] ;
  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 "adult-patient-selected" ] ;
     fhir:CodeSystem.concept.display [ fhir:value "Do người bệnh thành niên tự lựa chọn" ] ;
     fhir:CodeSystem.concept.definition [ fhir:value "Người đại diện do chính người bệnh là người thành niên tự lựa chọn — Luật 15/2023/QH15 Điều 8 khoản 2 điểm a. Việc thay thế người đại diện thuộc nhóm này phải có xác nhận của người bệnh (khoản 3 điểm a)." ] ;
     fhir:CodeSystem.concept.designation [
       fhir:index -1 ;
       fhir:CodeSystem.concept.designation.language [ fhir:value "en" ] ;
       fhir:CodeSystem.concept.designation.value [ fhir:value "Selected by the adult patient" ]
     ]
  ], [
     fhir:index -1 ;
     fhir:CodeSystem.concept.code [ fhir:value "family-selected" ] ;
     fhir:CodeSystem.concept.display [ fhir:value "Do thành viên gia đình lựa chọn" ] ;
     fhir:CodeSystem.concept.definition [ fhir:value "Người do thành viên gia đình của người bệnh lựa chọn, trong trường hợp người bệnh là người thành niên không thể tự lựa chọn và không có uỷ quyền trước khi rơi vào tình trạng không thể hoặc có khó khăn trong nhận thức, làm chủ hành vi — Điều 8 khoản 2 điểm b." ] ;
     fhir:CodeSystem.concept.designation [
       fhir:index -1 ;
       fhir:CodeSystem.concept.designation.language [ fhir:value "en" ] ;
       fhir:CodeSystem.concept.designation.value [ fhir:value "Selected by a family member" ]
     ]
  ], [
     fhir:index -1 ;
     fhir:CodeSystem.concept.code [ fhir:value "civil-code-representative" ] ;
     fhir:CodeSystem.concept.display [ fhir:value "Đại diện theo Bộ luật Dân sự" ] ;
     fhir:CodeSystem.concept.definition [ fhir:value "Người đại diện theo uỷ quyền hoặc người đại diện theo pháp luật của người bệnh theo quy định của Bộ luật Dân sự — Điều 8 khoản 2 điểm c. Nhánh này dẫn sang Bộ luật 91/2015/QH13: Điều 136 (đại diện theo pháp luật của cá nhân), Điều 138 (đại diện theo uỷ quyền), Điều 52-54 (giám hộ đương nhiên và cử, chỉ định người giám hộ)." ] ;
     fhir:CodeSystem.concept.designation [
       fhir:index -1 ;
       fhir:CodeSystem.concept.designation.language [ fhir:value "en" ] ;
       fhir:CodeSystem.concept.designation.value [ fhir:value "Civil Code representative" ]
     ]
  ], [
     fhir:index -1 ;
     fhir:CodeSystem.concept.code [ fhir:value "responsible-legal-entity-appointed" ] ;
     fhir:CodeSystem.concept.display [ fhir:value "Đại diện hoặc người được phân công của pháp nhân chịu trách nhiệm" ] ;
     fhir:CodeSystem.concept.definition [ fhir:value "Người đại diện theo pháp luật của pháp nhân, hoặc người được pháp nhân phân công, khi pháp nhân đó chịu trách nhiệm quản lý, chăm sóc, nuôi dưỡng người bệnh — Điều 8 khoản 2 điểm d." ] ;
     fhir:CodeSystem.concept.designation [
       fhir:index -1 ;
       fhir:CodeSystem.concept.designation.language [ fhir:value "en" ] ;
       fhir:CodeSystem.concept.designation.value [ fhir:value "Representative or appointee of the responsible legal entity" ]
     ]
  ], [
     fhir:index -1 ;
     fhir:CodeSystem.concept.code [ fhir:value "voluntary-obligation-performer" ] ;
     fhir:CodeSystem.concept.display [ fhir:value "Người tự nguyện thực hiện nghĩa vụ của người bệnh" ] ;
     fhir:CodeSystem.concept.definition [ fhir:value "Người không thuộc các nhóm tại điểm a, b, c và d nhưng tự nguyện thực hiện nghĩa vụ của người bệnh theo quy định của Bộ luật Dân sự — Điều 8 khoản 2 điểm đ." ] ;
     fhir:CodeSystem.concept.designation [
       fhir:index -1 ;
       fhir:CodeSystem.concept.designation.language [ fhir:value "en" ] ;
       fhir:CodeSystem.concept.designation.value [ fhir:value "Voluntary performer of the patient's obligations" ]
     ]
  ] .

# - ontology header ------------------------------------------------------------

<http://fhir.hl7.org.vn/core/CodeSystem/vn-representation-selection-basis-cs.ttl> a owl:Ontology ;
  owl:imports fhir:fhir.ttl .

# -------------------------------------------------------------------------------------

