@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-conversion-direction-cs> a fhir:CodeSystem ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:Resource.id [ fhir:value "vn-conversion-direction-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-conversion-direction-cs</b></p><a name=\"vn-conversion-direction-cs\"> </a><a name=\"hcvn-conversion-direction-cs\"> </a><p>This case-sensitive code system <code>http://fhir.hl7.org.vn/core/CodeSystem/vn-conversion-direction-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\">paper-to-data<a name=\"vn-conversion-direction-cs-paper-to-data\"> </a></td><td>Văn bản giấy → thông điệp dữ liệu</td><td>Chuyển đổi từ văn bản giấy sang thông điệp dữ liệu, theo Luật 20/2023/QH15 Điều 12 khoản 1. Yêu cầu: bảo đảm toàn vẹn, truy cập được để tham chiếu, có ký hiệu riêng và thông tin bên chuyển đổi; riêng giấy phép/chứng nhận/chứng chỉ/văn bản xác nhận, chấp thuận thì thêm chữ ký số của bên chuyển đổi.</td><td>Paper document to data message</td></tr><tr><td style=\"white-space:nowrap\">data-to-paper<a name=\"vn-conversion-direction-cs-data-to-paper\"> </a></td><td>Thông điệp dữ liệu → văn bản giấy</td><td>Chuyển đổi từ thông điệp dữ liệu sang văn bản giấy, theo Luật 20/2023/QH15 Điều 12 khoản 2. Yêu cầu: bảo đảm toàn vẹn, có thông tin xác định hệ thống thông tin và chủ quản hệ thống đã tạo lập/gửi/nhận/lưu trữ thông điệp gốc để tra cứu, có ký hiệu riêng và thông tin bên chuyển đổi.</td><td>Data message to paper document</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-20-2023" ]
     ]
  ] ;
  fhir:CodeSystem.url [ fhir:value "http://fhir.hl7.org.vn/core/CodeSystem/vn-conversion-direction-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.27" ]
  ] ;
  fhir:CodeSystem.version [ fhir:value "0.10.0"] ;
  fhir:CodeSystem.name [ fhir:value "VNConversionDirectionCS"] ;
  fhir:CodeSystem.title [ fhir:value "Chiều chuyển đổi giấy ↔ điện tử — Paper/Electronic Conversion Direction"] ;
  fhir:CodeSystem.status [ fhir:value "draft"] ;
  fhir:CodeSystem.experimental [ fhir:value "false"^^xsd:boolean] ;
  fhir:CodeSystem.date [ fhir:value "2026-08-05"^^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 "Hai chiều chuyển đổi hình thức giữa văn bản giấy và thông điệp dữ liệu theo Luật Giao dịch điện tử 20/2023/QH15 Điều 12. Hai chiều được quy định ở hai khoản khác nhau với yêu cầu riêng, nên phải phân biệt tường minh."] ;
  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 Giao dịch điện tử số 20/2023/QH15, Điều 12."] ;
  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 "paper-to-data" ] ;
     fhir:CodeSystem.concept.display [ fhir:value "Văn bản giấy → thông điệp dữ liệu" ] ;
     fhir:CodeSystem.concept.definition [ fhir:value "Chuyển đổi từ văn bản giấy sang thông điệp dữ liệu, theo Luật 20/2023/QH15 Điều 12 khoản 1. Yêu cầu: bảo đảm toàn vẹn, truy cập được để tham chiếu, có ký hiệu riêng và thông tin bên chuyển đổi; riêng giấy phép/chứng nhận/chứng chỉ/văn bản xác nhận, chấp thuận thì thêm chữ ký số của bên chuyển đổi." ] ;
     fhir:CodeSystem.concept.designation [
       fhir:index -1 ;
       fhir:CodeSystem.concept.designation.language [ fhir:value "en" ] ;
       fhir:CodeSystem.concept.designation.value [ fhir:value "Paper document to data message" ]
     ]
  ], [
     fhir:index -1 ;
     fhir:CodeSystem.concept.code [ fhir:value "data-to-paper" ] ;
     fhir:CodeSystem.concept.display [ fhir:value "Thông điệp dữ liệu → văn bản giấy" ] ;
     fhir:CodeSystem.concept.definition [ fhir:value "Chuyển đổi từ thông điệp dữ liệu sang văn bản giấy, theo Luật 20/2023/QH15 Điều 12 khoản 2. Yêu cầu: bảo đảm toàn vẹn, có thông tin xác định hệ thống thông tin và chủ quản hệ thống đã tạo lập/gửi/nhận/lưu trữ thông điệp gốc để tra cứu, có ký hiệu riêng và thông tin bên chuyển đổi." ] ;
     fhir:CodeSystem.concept.designation [
       fhir:index -1 ;
       fhir:CodeSystem.concept.designation.language [ fhir:value "en" ] ;
       fhir:CodeSystem.concept.designation.value [ fhir:value "Data message to paper document" ]
     ]
  ] .

# - ontology header ------------------------------------------------------------

<http://fhir.hl7.org.vn/core/CodeSystem/vn-conversion-direction-cs.ttl> a owl:Ontology ;
  owl:imports fhir:fhir.ttl .

# -------------------------------------------------------------------------------------

