@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-composition-section-cs> a fhir:CodeSystem ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:Resource.id [ fhir:value "vn-composition-section-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-composition-section-cs</b></p><a name=\"vn-composition-section-cs\"> </a><a name=\"hcvn-composition-section-cs\"> </a><p><b>Properties</b></p><p><b>This code system defines the following properties for its concepts</b></p><table class=\"grid\"><tr><td><b>Name</b></td><td><b>Code</b></td><td><b>URI</b></td><td><b>Type</b></td><td><b>Description</b></td></tr><tr><td>codeSource</td><td>codeSource</td><td>http://fhir.hl7.org.vn/core/CodeSystem/vn-composition-section-cs#codeSource</td><td>code</td><td>Nguồn của mã: project-assigned — mã do VN Core đặt vì văn bản căn cứ không ban hành bộ mã.</td></tr></table><p><b>Concepts</b></p><p>This case-sensitive code system <code>http://fhir.hl7.org.vn/core/CodeSystem/vn-composition-section-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>codeSource</b></td></tr><tr><td style=\"white-space:nowrap\">birth-mother<a name=\"vn-composition-section-cs-birth-mother\"> </a></td><td>Thông tin người mẹ</td><td>Section trỏ RelatedPerson là mẹ của trẻ trong giấy chứng sinh. Mẫu giấy chứng sinh (Phụ lục I QĐ 2919/QĐ-BYT) có khối thông tin mẹ bắt buộc — họ tên, ngày sinh, dân tộc, nơi cư trú, giấy tờ tuỳ thân, mã số BHXH; ánh xạ vn-fhir của VNBirthCertificateLM trỏ chúng vào VNCoreRelatedPerson.</td><td>project-assigned</td></tr><tr><td style=\"white-space:nowrap\">birth-facts<a name=\"vn-composition-section-cs-birth-facts\"> </a></td><td>Chỉ số lúc sinh</td><td>Section trỏ các Observation ghi chỉ số của trẻ lúc sinh: cân nặng (ánh xạ vn-fhir trỏ VNCoreObservationBodyWeight), và các chỉ số khác nếu cơ sở ghi nhận. Mẫu giấy chứng sinh có ô cân nặng bắt buộc.</td><td>project-assigned</td></tr><tr><td style=\"white-space:nowrap\">surrogacy-parties<a name=\"vn-composition-section-cs-surrogacy-parties\"> </a></td><td>Các bên của việc mang thai hộ</td><td>Section liệt kê đủ bốn bên của giấy chứng sinh mang thai hộ theo Phụ lục II QĐ 2919/QĐ-BYT: người vợ và người chồng bên mang thai hộ, người vợ và người chồng bên nhờ mang thai hộ.</td><td>project-assigned</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 "governing" ]
       ] ;
       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:CodeSystem.url [ fhir:value "http://fhir.hl7.org.vn/core/CodeSystem/vn-composition-section-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.22" ]
  ] ;
  fhir:CodeSystem.version [ fhir:value "0.10.0"] ;
  fhir:CodeSystem.name [ fhir:value "VNCompositionSectionCS"] ;
  fhir:CodeSystem.title [ fhir:value "Mã section tài liệu VN Core (bộ mã) — VN Core Composition Section Code System"] ;
  fhir:CodeSystem.status [ fhir:value "draft"] ;
  fhir:CodeSystem.experimental [ fhir:value "false"^^xsd:boolean] ;
  fhir:CodeSystem.date [ fhir:value "2026-08-14"^^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 "Mã định danh section cho các Composition đặc thù Việt Nam khi LOINC không có mã section\ntương đương. Khởi tạo 0.10.0 với một mã cho section \"các bên của việc mang thai hộ\" (giấy\nchứng sinh mang thai hộ theo QĐ 2919/QĐ-BYT Phụ lục II) — section này cần mã ổn định để\nprofile slice được bằng discriminator pattern thay vì dựa vào title tiếng Việt (P1 #9,\nround 3 14/08/2026). Các Composition VN khác bổ sung mã vào đây khi có nhu cầu slice."] ;
  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.caseSensitive [ fhir:value "true"^^xsd:boolean] ;
  fhir:CodeSystem.content [ fhir:value "complete"] ;
  fhir:CodeSystem.count [ fhir:value "3"^^xsd:nonNegativeInteger] ;
  fhir:CodeSystem.property [
     fhir:index -1 ;
     fhir:CodeSystem.property.code [ fhir:value "codeSource" ] ;
     fhir:CodeSystem.property.uri [ fhir:value "http://fhir.hl7.org.vn/core/CodeSystem/vn-composition-section-cs#codeSource" ] ;
     fhir:CodeSystem.property.description [ fhir:value "Nguồn của mã: project-assigned — mã do VN Core đặt vì văn bản căn cứ không ban hành bộ mã." ] ;
     fhir:CodeSystem.property.type [ fhir:value "code" ]
  ] ;
  fhir:CodeSystem.concept [
     fhir:index -1 ;
     fhir:CodeSystem.concept.code [ fhir:value "birth-mother" ] ;
     fhir:CodeSystem.concept.display [ fhir:value "Thông tin người mẹ" ] ;
     fhir:CodeSystem.concept.definition [ fhir:value "Section trỏ RelatedPerson là mẹ của trẻ trong giấy chứng sinh. Mẫu giấy chứng sinh (Phụ lục I QĐ 2919/QĐ-BYT) có khối thông tin mẹ bắt buộc — họ tên, ngày sinh, dân tộc, nơi cư trú, giấy tờ tuỳ thân, mã số BHXH; ánh xạ vn-fhir của VNBirthCertificateLM trỏ chúng vào VNCoreRelatedPerson." ] ;
     fhir:CodeSystem.concept.property [
       fhir:index -1 ;
       fhir:CodeSystem.concept.property.code [ fhir:value "codeSource" ] ;
       fhir:CodeSystem.concept.property.valueCode [ fhir:value "project-assigned" ]
     ]
  ], [
     fhir:index -1 ;
     fhir:CodeSystem.concept.code [ fhir:value "birth-facts" ] ;
     fhir:CodeSystem.concept.display [ fhir:value "Chỉ số lúc sinh" ] ;
     fhir:CodeSystem.concept.definition [ fhir:value "Section trỏ các Observation ghi chỉ số của trẻ lúc sinh: cân nặng (ánh xạ vn-fhir trỏ VNCoreObservationBodyWeight), và các chỉ số khác nếu cơ sở ghi nhận. Mẫu giấy chứng sinh có ô cân nặng bắt buộc." ] ;
     fhir:CodeSystem.concept.property [
       fhir:index -1 ;
       fhir:CodeSystem.concept.property.code [ fhir:value "codeSource" ] ;
       fhir:CodeSystem.concept.property.valueCode [ fhir:value "project-assigned" ]
     ]
  ], [
     fhir:index -1 ;
     fhir:CodeSystem.concept.code [ fhir:value "surrogacy-parties" ] ;
     fhir:CodeSystem.concept.display [ fhir:value "Các bên của việc mang thai hộ" ] ;
     fhir:CodeSystem.concept.definition [ fhir:value "Section liệt kê đủ bốn bên của giấy chứng sinh mang thai hộ theo Phụ lục II QĐ 2919/QĐ-BYT: người vợ và người chồng bên mang thai hộ, người vợ và người chồng bên nhờ mang thai hộ." ] ;
     fhir:CodeSystem.concept.property [
       fhir:index -1 ;
       fhir:CodeSystem.concept.property.code [ fhir:value "codeSource" ] ;
       fhir:CodeSystem.concept.property.valueCode [ fhir:value "project-assigned" ]
     ]
  ] .

# - ontology header ------------------------------------------------------------

<http://fhir.hl7.org.vn/core/CodeSystem/vn-composition-section-cs.ttl> a owl:Ontology ;
  owl:imports fhir:fhir.ttl .

# -------------------------------------------------------------------------------------

