@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-surrogacy-party-role-cs> a fhir:CodeSystem ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:Resource.id [ fhir:value "vn-surrogacy-party-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-surrogacy-party-role-cs</b></p><a name=\"vn-surrogacy-party-role-cs\"> </a><a name=\"hcvn-surrogacy-party-role-cs\"> </a><p>This case-sensitive code system <code>http://fhir.hl7.org.vn/core/CodeSystem/vn-surrogacy-party-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></tr><tr><td style=\"white-space:nowrap\">gestational-mother<a name=\"vn-surrogacy-party-role-cs-gestational-mother\"> </a></td><td>Người vợ bên mang thai hộ (người sinh trẻ)</td><td>Người mang thai và sinh trẻ theo thoả thuận mang thai hộ vì mục đích nhân đạo. Tương ứng v3 RoleCode GESTM — dùng kèm, không thay.</td></tr><tr><td style=\"white-space:nowrap\">gestational-mother-spouse<a name=\"vn-surrogacy-party-role-cs-gestational-mother-spouse\"> </a></td><td>Người chồng bên mang thai hộ</td><td>Chồng của người mang thai hộ tại thời điểm sinh, theo Phụ lục II QĐ 2919/QĐ-BYT.</td></tr><tr><td style=\"white-space:nowrap\">intended-mother<a name=\"vn-surrogacy-party-role-cs-intended-mother\"> </a></td><td>Người vợ bên nhờ mang thai hộ</td><td>Người mẹ nhờ mang thai hộ — bên sẽ nhận và nuôi trẻ theo thoả thuận.</td></tr><tr><td style=\"white-space:nowrap\">intended-father<a name=\"vn-surrogacy-party-role-cs-intended-father\"> </a></td><td>Người chồng bên nhờ mang thai hộ</td><td>Người cha nhờ mang thai hộ — bên sẽ nhận và nuôi trẻ theo thoả thuận.</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 "QD-2919-2025" ]
     ]
  ] ;
  fhir:CodeSystem.url [ fhir:value "http://fhir.hl7.org.vn/core/CodeSystem/vn-surrogacy-party-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.166" ]
  ] ;
  fhir:CodeSystem.version [ fhir:value "0.10.0"] ;
  fhir:CodeSystem.name [ fhir:value "VNSurrogacyPartyRoleCS"] ;
  fhir:CodeSystem.title [ fhir:value "Vai các bên trong mang thai hộ (bộ mã) — Surrogacy Party Role 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 "Vai của từng bên trong giấy chứng sinh trường hợp MANG THAI HỘ theo QĐ 2919/QĐ-BYT Phụ lục II\n(hiệu lực 01/10/2025): bên mang thai hộ (người vợ sinh trẻ + người chồng) và bên nhờ mang thai\nhộ (người vợ + người chồng).\n\n**Vì sao cần bộ mã riêng.** HL7 v3 RoleCode chỉ có `GESTM` (gestational mother) cho người sinh\ntrẻ; ba vai còn lại của Phụ lục II không có mã quốc tế tương đương — trước 0.10.0 chúng chỉ\nphân biệt bằng `relationship.text`, nghĩa là KHÔNG máy-đọc được (P1 #9, round 3 14/08/2026).\nBốn mã này dùng trên `RelatedPerson.relationship` BÊN CẠNH (không thay) mã GESTM và text\ntiếng Việt.\n\nToàn bộ mã do dự án tự đặt: Phụ lục II mô tả bốn bên như chỉ tiêu dữ liệu, không ban hành\ndanh mục mã vai."] ;
  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 "4"^^xsd:nonNegativeInteger] ;
  fhir:CodeSystem.concept [
     fhir:index -1 ;
     fhir:CodeSystem.concept.code [ fhir:value "gestational-mother" ] ;
     fhir:CodeSystem.concept.display [ fhir:value "Người vợ bên mang thai hộ (người sinh trẻ)" ] ;
     fhir:CodeSystem.concept.definition [ fhir:value "Người mang thai và sinh trẻ theo thoả thuận mang thai hộ vì mục đích nhân đạo. Tương ứng v3 RoleCode GESTM — dùng kèm, không thay." ]
  ], [
     fhir:index -1 ;
     fhir:CodeSystem.concept.code [ fhir:value "gestational-mother-spouse" ] ;
     fhir:CodeSystem.concept.display [ fhir:value "Người chồng bên mang thai hộ" ] ;
     fhir:CodeSystem.concept.definition [ fhir:value "Chồng của người mang thai hộ tại thời điểm sinh, theo Phụ lục II QĐ 2919/QĐ-BYT." ]
  ], [
     fhir:index -1 ;
     fhir:CodeSystem.concept.code [ fhir:value "intended-mother" ] ;
     fhir:CodeSystem.concept.display [ fhir:value "Người vợ bên nhờ mang thai hộ" ] ;
     fhir:CodeSystem.concept.definition [ fhir:value "Người mẹ nhờ mang thai hộ — bên sẽ nhận và nuôi trẻ theo thoả thuận." ]
  ], [
     fhir:index -1 ;
     fhir:CodeSystem.concept.code [ fhir:value "intended-father" ] ;
     fhir:CodeSystem.concept.display [ fhir:value "Người chồng bên nhờ mang thai hộ" ] ;
     fhir:CodeSystem.concept.definition [ fhir:value "Người cha nhờ mang thai hộ — bên sẽ nhận và nuôi trẻ theo thoả thuận." ]
  ] .

# - ontology header ------------------------------------------------------------

<http://fhir.hl7.org.vn/core/CodeSystem/vn-surrogacy-party-role-cs.ttl> a owl:Ontology ;
  owl:imports fhir:fhir.ttl .

# -------------------------------------------------------------------------------------

