@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/NamingSystem/vn-gcs-ns> a fhir:NamingSystem ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:Resource.id [ fhir:value "vn-gcs-ns"] ;
  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: NamingSystem vn-gcs-ns</b></p><a name=\"vn-gcs-ns\"> </a><a name=\"hcvn-gcs-ns\"> </a><h3>Summary</h3><table class=\"grid\"><tr><td>Defining URL</td><td>http://fhir.hl7.org.vn/core/NamingSystem/vn-gcs-ns</td></tr><tr><td>Version</td><td>0.10.0</td></tr><tr><td>Name</td><td>VNGCS</td></tr><tr><td>Status</td><td>draft</td></tr><tr><td>Definition</td><td><div><p>Hệ thống định danh Mã giấy chứng sinh (MA_GCS) do cơ sở khám bệnh, chữa bệnh cấp\ntheo QĐ 2919/QĐ-BYT (hiệu lực 01/10/2025).\nKHÔNG PHẢI số Giấy khai sinh: Giấy chứng sinh do cơ sở khám bệnh, chữa bệnh cấp ngay sau khi\ntrẻ ra đời; Giấy khai sinh do Uỷ ban nhân dân cấp sau đó theo thủ tục hộ tịch. Khác cơ quan cấp,\nkhác thời điểm, khác cấu trúc số — số Giấy khai sinh dùng sid/gks, không dùng namespace này.\nCẤU TRÚC: đúng 18 ký tự dạng XXXXX.GCS.ZZZZZ.YY — 5 ký tự số thứ tự tăng dần của giấy đã cấp\ntrong năm tại cơ sở, literal GCS, 5 ký tự mã cơ sở khám bệnh chữa bệnh, 2 số cuối của năm.\nSố thứ tự chỉ duy nhất TRONG một cơ sở và một năm, nên mã nhúng sẵn cả mã cơ sở lẫn năm để đạt\ntính duy nhất toàn quốc — không được cắt bớt phần nào khi trao đổi.\nCăn cứ:</p>\n<ul>\n<li><strong>QĐ 2919/QĐ-BYT</strong> — hiệu lực 01/10/2025 — chuẩn và định dạng dữ liệu điện tử Giấy chứng sinh;\nbãi bỏ QĐ 1898/QĐ-BYT và bãi bỏ Bảng 9 của QĐ 130/QĐ-BYT</li>\n<li><strong>NĐ 63/2024/NĐ-CP</strong> — 10/6/2024 — liên thông điện tử đăng ký khai sinh, đăng ký thường trú,\ncấp thẻ BHYT cho trẻ em dưới 6 tuổi.</li>\n</ul>\n</div></td></tr><tr><td>Publisher</td><td>Omi HealthTech / VN Core FHIR Community Initiative</td></tr><tr><td>OID</td><td>2.25.161089673617632664299011809196868855799.31.12 (for OID based terminology systems)</td></tr></table><h3>Identifiers</h3><table class=\"grid\"><tr><td><b>Type</b></td><td><b>Value</b></td><td><b>Preferred</b></td></tr><tr><td>URI</td><td>http://fhir.hl7.org.vn/core/sid/gcs</td><td>true</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-document-ref-cs" ] ;
       fhir:Coding.code [ fhir:value "QD-2919-2025" ]
     ]
  ], [
     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-document-ref-cs" ] ;
       fhir:Coding.code [ fhir:value "ND-63-2024" ]
     ]
  ], [
     fhir:index -1 ;
     fhir:Extension.url [ fhir:value "http://hl7.org/fhir/5.0/StructureDefinition/extension-NamingSystem.url" ] ;
     fhir:Extension.valueUri [ fhir:value "http://fhir.hl7.org.vn/core/NamingSystem/vn-gcs-ns" ]
  ], [
     fhir:index -1 ;
     fhir:Extension.url [ fhir:value "http://hl7.org/fhir/5.0/StructureDefinition/extension-NamingSystem.version" ] ;
     fhir:Extension.valueString [ fhir:value "0.10.0" ]
  ] ;
  fhir:NamingSystem.name [ fhir:value "VNGCS"] ;
  fhir:NamingSystem.status [ fhir:value "draft"] ;
  fhir:NamingSystem.kind [ fhir:value "identifier"] ;
  fhir:NamingSystem.date [ fhir:value "2026-08-06"^^xsd:date] ;
  fhir:NamingSystem.publisher [ fhir:value "Omi HealthTech / VN Core FHIR Community Initiative"] ;
  fhir:NamingSystem.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:NamingSystem.responsible [ fhir:value "Cơ sở khám bệnh, chữa bệnh cấp giấy chứng sinh"] ;
  fhir:NamingSystem.description [ fhir:value "Hệ thống định danh Mã giấy chứng sinh (MA_GCS) do cơ sở khám bệnh, chữa bệnh cấp\ntheo QĐ 2919/QĐ-BYT (hiệu lực 01/10/2025).\nKHÔNG PHẢI số Giấy khai sinh: Giấy chứng sinh do cơ sở khám bệnh, chữa bệnh cấp ngay sau khi\ntrẻ ra đời; Giấy khai sinh do Uỷ ban nhân dân cấp sau đó theo thủ tục hộ tịch. Khác cơ quan cấp,\nkhác thời điểm, khác cấu trúc số — số Giấy khai sinh dùng sid/gks, không dùng namespace này.\nCẤU TRÚC: đúng 18 ký tự dạng XXXXX.GCS.ZZZZZ.YY — 5 ký tự số thứ tự tăng dần của giấy đã cấp\ntrong năm tại cơ sở, literal GCS, 5 ký tự mã cơ sở khám bệnh chữa bệnh, 2 số cuối của năm.\nSố thứ tự chỉ duy nhất TRONG một cơ sở và một năm, nên mã nhúng sẵn cả mã cơ sở lẫn năm để đạt\ntính duy nhất toàn quốc — không được cắt bớt phần nào khi trao đổi.\nCăn cứ:\n- **QĐ 2919/QĐ-BYT** — hiệu lực 01/10/2025 — chuẩn và định dạng dữ liệu điện tử Giấy chứng sinh;\n  bãi bỏ QĐ 1898/QĐ-BYT và bãi bỏ Bảng 9 của QĐ 130/QĐ-BYT\n- **NĐ 63/2024/NĐ-CP** — 10/6/2024 — liên thông điện tử đăng ký khai sinh, đăng ký thường trú,\n  cấp thẻ BHYT cho trẻ em dưới 6 tuổi."] ;
  fhir:NamingSystem.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:NamingSystem.usage [ fhir:value "Dùng cho Composition.identifier và DocumentReference.identifier của giấy chứng sinh. Format: 18 ký tự XXXXX.GCS.ZZZZZ.YY"] ;
  fhir:NamingSystem.uniqueId [
     fhir:index -1 ;
     fhir:NamingSystem.uniqueId.type [ fhir:value "uri" ] ;
     fhir:NamingSystem.uniqueId.value [ fhir:value "http://fhir.hl7.org.vn/core/sid/gcs" ] ;
     fhir:NamingSystem.uniqueId.preferred [ fhir:value "true"^^xsd:boolean ]
  ] .

# - ontology header ------------------------------------------------------------

<http://fhir.hl7.org.vn/core/NamingSystem/vn-gcs-ns.ttl> a owl:Ontology ;
  owl:imports fhir:fhir.ttl .

# -------------------------------------------------------------------------------------

