@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-legal-basis-role-cs> a fhir:CodeSystem ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:Resource.id [ fhir:value "vn-legal-basis-role-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-legal-basis-role-cs</b></p><a name=\"vn-legal-basis-role-cs\"> </a><a name=\"hcvn-legal-basis-role-cs\"> </a><p>This case-sensitive code system <code>http://fhir.hl7.org.vn/core/CodeSystem/vn-legal-basis-role-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\">issuing<a name=\"vn-legal-basis-role-cs-issuing\"> </a></td><td>Ban hành nội dung</td><td>Văn bản BAN HÀNH chính nội dung của artifact — danh mục mã, biểu mẫu, bảng chỉ tiêu hoặc quy tắc mà artifact biểu diễn. Trả lời câu hỏi 'mã này từ đâu ra'. Ví dụ: Phụ lục 3 QĐ 5937/QĐ-BYT ban hành danh mục mã nhóm chi phí.</td><td>Issuing — publishes the content itself</td></tr><tr><td style=\"white-space:nowrap\">governing<a name=\"vn-legal-basis-role-cs-governing\"> </a></td><td>Quy định cách dùng</td><td>Văn bản quy định CÁCH DÙNG, cách ghi hoặc điều kiện áp dụng nội dung, nhưng KHÔNG ban hành nội dung đó. Ví dụ: QĐ 3176/QĐ-BYT quy định cách ghi trường MA_NHOM trong XML, còn danh mục mã do QĐ 5937/QĐ-BYT ban hành.</td><td>Governing — regulates how the content is used</td></tr><tr><td style=\"white-space:nowrap\">foundational<a name=\"vn-legal-basis-role-cs-foundational\"> </a></td><td>Nền tảng lĩnh vực</td><td>Luật, nghị định hoặc văn bản khung tạo thẩm quyền cho lĩnh vực mà artifact phục vụ, không đi vào chi tiết nội dung. Ví dụ: Luật Khám bệnh, chữa bệnh với các artifact về cơ sở KCB.</td><td>Foundational — domain-level legal authority</td></tr><tr><td style=\"white-space:nowrap\">historical<a name=\"vn-legal-basis-role-cs-historical\"> </a></td><td>Chỉ tra cứu lịch sử</td><td>Văn bản đã hết hiệu lực hoặc bị thay thế, giữ trong căn cứ CHỈ để giải nghĩa dữ liệu cũ. CẤM dùng làm căn cứ cho quyết định hiện hành. Ví dụ: NĐ 146/2018/NĐ-CP là khung phân nhóm lịch sử của bộ mã thẻ BHYT.</td><td>Historical — legacy reference only, not current authority</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-basis-exception-cs" ] ;
       fhir:Coding.code [ fhir:value "local-design" ]
     ]
  ] ;
  fhir:CodeSystem.url [ fhir:value "http://fhir.hl7.org.vn/core/CodeSystem/vn-legal-basis-role-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.126" ]
  ] ;
  fhir:CodeSystem.version [ fhir:value "0.10.0"] ;
  fhir:CodeSystem.name [ fhir:value "VNLegalBasisRoleCS"] ;
  fhir:CodeSystem.title [ fhir:value "Vai trò văn bản trong căn cứ pháp lý — VN Legal Basis Role CodeSystem"] ;
  fhir:CodeSystem.status [ fhir:value "active"] ;
  fhir:CodeSystem.experimental [ fhir:value "false"^^xsd:boolean] ;
  fhir:CodeSystem.date [ fhir:value "2026-08-16"^^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 "Vai trò của một văn bản trong tuyên bố căn cứ pháp lý của artifact: ban hành nội dung, quy định cách dùng, làm nền tảng lĩnh vực, hay chỉ mang tính lịch sử.\nDùng qua extension `vn-ext-legal-basis-role` gắn trên chính Coding của `vn-ext-legal-basis`.\nEnglish: Role a legal document plays in an artifact's legal-basis assertion — issuing the content, governing its use, providing the domain foundation, or historical reference only."] ;
  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 "Vai của văn bản trong căn cứ pháp lý (ban hành nội dung / quy định cách dùng / nền tảng lĩnh vực / chỉ tra cứu lịch sử) — hạ tầng quản trị của IG. Phân biệt vai là cách người tra ngược biết văn bản nào thật sự BAN HÀNH bộ mã. Mã do VN Core đặt."] ;
  fhir:CodeSystem.copyright [ fhir:value "Omi HealthTech / VN Core FHIR Community Initiative. Taxonomy siêu dữ liệu do dự án đặt; không có văn bản pháp luật nào ban hành bộ mã này."] ;
  fhir:CodeSystem.caseSensitive [ fhir:value "true"^^xsd:boolean] ;
  fhir:CodeSystem.content [ fhir:value "complete"] ;
  fhir:CodeSystem.count [ fhir:value "4"^^xsd:nonNegativeInteger] ;
  fhir:CodeSystem.concept [
     fhir:index -1 ;
     fhir:CodeSystem.concept.code [ fhir:value "issuing" ] ;
     fhir:CodeSystem.concept.display [ fhir:value "Ban hành nội dung" ] ;
     fhir:CodeSystem.concept.definition [ fhir:value "Văn bản BAN HÀNH chính nội dung của artifact — danh mục mã, biểu mẫu, bảng chỉ tiêu hoặc quy tắc mà artifact biểu diễn. Trả lời câu hỏi 'mã này từ đâu ra'. Ví dụ: Phụ lục 3 QĐ 5937/QĐ-BYT ban hành danh mục mã nhóm chi phí." ] ;
     fhir:CodeSystem.concept.designation [
       fhir:index -1 ;
       fhir:CodeSystem.concept.designation.language [ fhir:value "en" ] ;
       fhir:CodeSystem.concept.designation.value [ fhir:value "Issuing — publishes the content itself" ]
     ]
  ], [
     fhir:index -1 ;
     fhir:CodeSystem.concept.code [ fhir:value "governing" ] ;
     fhir:CodeSystem.concept.display [ fhir:value "Quy định cách dùng" ] ;
     fhir:CodeSystem.concept.definition [ fhir:value "Văn bản quy định CÁCH DÙNG, cách ghi hoặc điều kiện áp dụng nội dung, nhưng KHÔNG ban hành nội dung đó. Ví dụ: QĐ 3176/QĐ-BYT quy định cách ghi trường MA_NHOM trong XML, còn danh mục mã do QĐ 5937/QĐ-BYT ban hành." ] ;
     fhir:CodeSystem.concept.designation [
       fhir:index -1 ;
       fhir:CodeSystem.concept.designation.language [ fhir:value "en" ] ;
       fhir:CodeSystem.concept.designation.value [ fhir:value "Governing — regulates how the content is used" ]
     ]
  ], [
     fhir:index -1 ;
     fhir:CodeSystem.concept.code [ fhir:value "foundational" ] ;
     fhir:CodeSystem.concept.display [ fhir:value "Nền tảng lĩnh vực" ] ;
     fhir:CodeSystem.concept.definition [ fhir:value "Luật, nghị định hoặc văn bản khung tạo thẩm quyền cho lĩnh vực mà artifact phục vụ, không đi vào chi tiết nội dung. Ví dụ: Luật Khám bệnh, chữa bệnh với các artifact về cơ sở KCB." ] ;
     fhir:CodeSystem.concept.designation [
       fhir:index -1 ;
       fhir:CodeSystem.concept.designation.language [ fhir:value "en" ] ;
       fhir:CodeSystem.concept.designation.value [ fhir:value "Foundational — domain-level legal authority" ]
     ]
  ], [
     fhir:index -1 ;
     fhir:CodeSystem.concept.code [ fhir:value "historical" ] ;
     fhir:CodeSystem.concept.display [ fhir:value "Chỉ tra cứu lịch sử" ] ;
     fhir:CodeSystem.concept.definition [ fhir:value "Văn bản đã hết hiệu lực hoặc bị thay thế, giữ trong căn cứ CHỈ để giải nghĩa dữ liệu cũ. CẤM dùng làm căn cứ cho quyết định hiện hành. Ví dụ: NĐ 146/2018/NĐ-CP là khung phân nhóm lịch sử của bộ mã thẻ BHYT." ] ;
     fhir:CodeSystem.concept.designation [
       fhir:index -1 ;
       fhir:CodeSystem.concept.designation.language [ fhir:value "en" ] ;
       fhir:CodeSystem.concept.designation.value [ fhir:value "Historical — legacy reference only, not current authority" ]
     ]
  ] .

# - ontology header ------------------------------------------------------------

<http://fhir.hl7.org.vn/core/CodeSystem/vn-legal-basis-role-cs.ttl> a owl:Ontology ;
  owl:imports fhir:fhir.ttl .

# -------------------------------------------------------------------------------------

