@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-domain-cs> a fhir:CodeSystem ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:Resource.id [ fhir:value "vn-representation-domain-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-domain-cs</b></p><a name=\"vn-representation-domain-cs\"> </a><a name=\"hcvn-representation-domain-cs\"> </a><p>This case-sensitive code system <code>http://fhir.hl7.org.vn/core/CodeSystem/vn-representation-domain-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\">healthcare-decision<a name=\"vn-representation-domain-cs-healthcare-decision\"> </a></td><td>Đại diện quyết định khám chữa bệnh</td><td>Thẩm quyền quyết định thay người bệnh trong khám chữa bệnh — Luật 15/2023/QH15 Điều 8 (người đại diện của người bệnh, năm nhóm căn cứ lựa chọn tại khoản 2 điểm a-đ). GIỚI HẠN: Điều 15 của cùng luật quy định nhóm người được quyết định thay TUỲ TỪNG TÌNH HUỐNG — không suy rằng mọi người thuộc Điều 8 đều có quyền quyết định thay trong mọi trường hợp.</td><td>Healthcare decision representation</td></tr><tr><td style=\"white-space:nowrap\">data-subject-rights<a name=\"vn-representation-domain-cs-data-subject-rights\"> </a></td><td>Đại diện thực hiện quyền chủ thể dữ liệu</td><td>Thẩm quyền thay mặt chủ thể dữ liệu thực hiện các quyền đối với dữ liệu cá nhân (đồng ý, rút đồng ý, truy cập, chỉnh sửa, xoá) — Luật 91/2025/QH15 Điều 24 (đại diện cho trẻ em, người mất/hạn chế năng lực hành vi dân sự); nền đại diện dân sự theo Bộ luật Dân sự 91/2015/QH13 Điều 134-143.</td><td>Data-subject rights representation</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 "issuing" ]
       ] ;
       fhir:Coding.system [ fhir:value "http://fhir.hl7.org.vn/core/CodeSystem/vn-legal-document-ref-cs" ] ;
       fhir:Coding.code [ fhir:value "L-91-2025" ]
     ]
  ], [
     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 "foundational" ]
       ] ;
       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-domain-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.157" ]
  ] ;
  fhir:CodeSystem.version [ fhir:value "0.10.0"] ;
  fhir:CodeSystem.name [ fhir:value "VNRepresentationDomainCS"] ;
  fhir:CodeSystem.title [ fhir:value "Miền thẩm quyền đại diện — Vietnam Representation Authority Domain CodeSystem"] ;
  fhir:CodeSystem.status [ fhir:value "active"] ;
  fhir:CodeSystem.experimental [ fhir:value "false"^^xsd:boolean] ;
  fhir:CodeSystem.date [ fhir:value "2026-08-07"^^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 "Miền (domain) mà một thẩm quyền đại diện có hiệu lực. Hai miền xuất phát từ hai\nnhánh pháp luật KHÁC NHAU và trao hai loại quyền KHÁC NHAU — kiểm toán 06-07/08/2026 (analysis/90\n§6.2) xác định việc gộp chúng trong một token là over-promote quyền đại diện:\n\n1. Đại diện QUYẾT ĐỊNH KHÁM CHỮA BỆNH (Luật 15/2023/QH15 Điều 8): quyết định thay người bệnh về\n   phương án điều trị, ký cam kết, nhận thông tin sức khoẻ trong khuôn khổ khám chữa bệnh.\n2. Đại diện THỰC HIỆN QUYỀN CHỦ THỂ DỮ LIỆU (Luật 91/2025/QH15 Điều 24; Bộ luật Dân sự 91/2015/QH13\n   Điều 134-143): thay mặt chủ thể dữ liệu đồng ý/rút đồng ý, truy cập, yêu cầu chỉnh sửa hoặc xoá\n   dữ liệu cá nhân — ví dụ cha/mẹ xem Sổ Sức khoẻ điện tử của con trên VNeID.\n\nMột người có thể giữ cả hai thẩm quyền, nhưng mỗi thẩm quyền là MỘT token riêng với căn cứ, phạm vi,\nbằng chứng và thời hạn riêng — có quyền quyết định KCB không suy ra có quyền dữ liệu và ngược lạ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.copyright [ fhir:value "Luật 15/2023/QH15 (Khám bệnh, chữa bệnh); Luật 91/2025/QH15 (Bảo vệ dữ liệu cá nhân); Bộ luật Dân sự 91/2015/QH13."] ;
  fhir:CodeSystem.caseSensitive [ fhir:value "true"^^xsd:boolean] ;
  fhir:CodeSystem.content [ fhir:value "complete"] ;
  fhir:CodeSystem.count [ fhir:value "2"^^xsd:nonNegativeInteger] ;
  fhir:CodeSystem.concept [
     fhir:index -1 ;
     fhir:CodeSystem.concept.code [ fhir:value "healthcare-decision" ] ;
     fhir:CodeSystem.concept.display [ fhir:value "Đại diện quyết định khám chữa bệnh" ] ;
     fhir:CodeSystem.concept.definition [ fhir:value "Thẩm quyền quyết định thay người bệnh trong khám chữa bệnh — Luật 15/2023/QH15 Điều 8 (người đại diện của người bệnh, năm nhóm căn cứ lựa chọn tại khoản 2 điểm a-đ). GIỚI HẠN: Điều 15 của cùng luật quy định nhóm người được quyết định thay TUỲ TỪNG TÌNH HUỐNG — không suy rằng mọi người thuộc Điều 8 đều có quyền quyết định thay trong mọi trường hợp." ] ;
     fhir:CodeSystem.concept.designation [
       fhir:index -1 ;
       fhir:CodeSystem.concept.designation.language [ fhir:value "en" ] ;
       fhir:CodeSystem.concept.designation.value [ fhir:value "Healthcare decision representation" ]
     ]
  ], [
     fhir:index -1 ;
     fhir:CodeSystem.concept.code [ fhir:value "data-subject-rights" ] ;
     fhir:CodeSystem.concept.display [ fhir:value "Đại diện thực hiện quyền chủ thể dữ liệu" ] ;
     fhir:CodeSystem.concept.definition [ fhir:value "Thẩm quyền thay mặt chủ thể dữ liệu thực hiện các quyền đối với dữ liệu cá nhân (đồng ý, rút đồng ý, truy cập, chỉnh sửa, xoá) — Luật 91/2025/QH15 Điều 24 (đại diện cho trẻ em, người mất/hạn chế năng lực hành vi dân sự); nền đại diện dân sự theo Bộ luật Dân sự 91/2015/QH13 Điều 134-143." ] ;
     fhir:CodeSystem.concept.designation [
       fhir:index -1 ;
       fhir:CodeSystem.concept.designation.language [ fhir:value "en" ] ;
       fhir:CodeSystem.concept.designation.value [ fhir:value "Data-subject rights representation" ]
     ]
  ] .

# - ontology header ------------------------------------------------------------

<http://fhir.hl7.org.vn/core/CodeSystem/vn-representation-domain-cs.ttl> a owl:Ontology ;
  owl:imports fhir:fhir.ttl .

# -------------------------------------------------------------------------------------

