@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/ConceptMap/vn-cm-kcbdb-gender-to-vn-gender> a fhir:ConceptMap ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:Resource.id [ fhir:value "vn-cm-kcbdb-gender-to-vn-gender"] ;
  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: ConceptMap vn-cm-kcbdb-gender-to-vn-gender</b></p><a name=\"vn-cm-kcbdb-gender-to-vn-gender\"> </a><a name=\"hcvn-cm-kcbdb-gender-to-vn-gender\"> </a><p>Mapping from <a href=\"ValueSet-vn-kcbdb-gender-vs.html\">Giới tính trong sổ sức khoẻ của CSDL hoạt động KCB — KCB Database Gender ValueSet</a> to <a href=\"ValueSet-vn-gender-vs.html\">Giới tính — Vietnam Gender ValueSet</a></p><br/><p>Mapping from <a href=\"CodeSystem-vn-kcbdb-gender-cs.html\">Giới tính trong sổ sức khoẻ của CSDL hoạt động KCB — KCB Database Gender CodeSystem</a> to <a href=\"CodeSystem-vn-gender-cs.html\">Giới tính — Vietnam Gender CodeSystem</a></p><table class=\"grid\"><tr><td><b>Source Code</b></td><td><b>Relationship</b></td><td><b>Target Code</b></td><td><b>Comment</b></td></tr><tr><td>1 (Nam)</td><td><a href=\"http://hl7.org/fhir/R5/codesystem-concept-map-relationship.html#equal\" title=\"equal\">is equal to</a></td><td>1 (Nam)</td><td/></tr><tr><td>2 (Nữ)</td><td><a href=\"http://hl7.org/fhir/R5/codesystem-concept-map-relationship.html#equal\" title=\"equal\">is equal to</a></td><td>2 (Nữ)</td><td/></tr><tr><td>3 (Khác)</td><td><a href=\"http://hl7.org/fhir/R5/codesystem-concept-map-relationship.html#inexact\" title=\"inexact\">maps loosely to</a></td><td>3 (Chưa xác định)</td><td>'Khác' của QĐ 2682/QĐ-BYT là giới tính khác; '3' của QĐ 3176/QĐ-BYT là chưa xác định — không đồng nhất, chỉ dùng khi hệ đích không có giá trị khác.</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:ConceptMap.url [ fhir:value "http://fhir.hl7.org.vn/core/ConceptMap/vn-cm-kcbdb-gender-to-vn-gender"] ;
  fhir:ConceptMap.identifier [
     fhir:Identifier.system [ fhir:value "urn:ietf:rfc:3986" ] ;
     fhir:Identifier.value [ fhir:value "urn:oid:2.25.161089673617632664299011809196868855799.18.10" ]
  ] ;
  fhir:ConceptMap.version [ fhir:value "0.10.0"] ;
  fhir:ConceptMap.name [ fhir:value "VNCMKCBDBGenderToVNGender"] ;
  fhir:ConceptMap.title [ fhir:value "Ánh xạ giới tính sổ sức khoẻ (QĐ 2682/QĐ-BYT) → giới tính QĐ 3176/QĐ-BYT — KCB Database Gender to VN Gender"] ;
  fhir:ConceptMap.status [ fhir:value "draft"] ;
  fhir:ConceptMap.experimental [ fhir:value "false"^^xsd:boolean] ;
  fhir:ConceptMap.date [ fhir:value "2026-09-05"^^xsd:date] ;
  fhir:ConceptMap.publisher [ fhir:value "Omi HealthTech / VN Core FHIR Community Initiative"] ;
  fhir:ConceptMap.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:ConceptMap.description [ fhir:value "Crosswalk giới tính 1/2/3 của Phần I.4.1 STT 4 QĐ 2682/QĐ-BYT sang vn-gender-cs (QĐ 3176/QĐ-BYT). Mã 3 hai bên khác nghĩa ('Khác' so với 'Chưa xác định') nên chỉ là inexact. Ánh xạ do VN Core thiết kế."] ;
  fhir:ConceptMap.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:ConceptMap.copyright [ fhir:value "Mã nguồn: Bộ Y tế Việt Nam — QĐ 2682/QĐ-BYT (22/08/2026). Ánh xạ: Omi HealthTech / VN Core FHIR Community Initiative (thiết kế cục bộ, văn bản không in bảng ánh xạ)."] ;
  fhir:ConceptMap.sourceUri [ fhir:value "http://fhir.hl7.org.vn/core/ValueSet/vn-kcbdb-gender-vs"] ;
  fhir:ConceptMap.targetUri [ fhir:value "http://fhir.hl7.org.vn/core/ValueSet/vn-gender-vs"] ;
  fhir:ConceptMap.group [
     fhir:index -1 ;
     fhir:ConceptMap.group.source [ fhir:value "http://fhir.hl7.org.vn/core/CodeSystem/vn-kcbdb-gender-cs" ] ;
     fhir:ConceptMap.group.target [ fhir:value "http://fhir.hl7.org.vn/core/CodeSystem/vn-gender-cs" ] ;
     fhir:ConceptMap.group.element [
       fhir:index -1 ;
       fhir:ConceptMap.group.element.code [ fhir:value "1" ] ;
       fhir:ConceptMap.group.element.display [ fhir:value "Nam" ] ;
       fhir:ConceptMap.group.element.target [
         fhir:index -1 ;
         fhir:ConceptMap.group.element.target.code [ fhir:value "1" ] ;
         fhir:ConceptMap.group.element.target.display [ fhir:value "Nam" ] ;
         fhir:ConceptMap.group.element.target.equivalence [ fhir:value "equal" ]
       ]
     ], [
       fhir:index -1 ;
       fhir:ConceptMap.group.element.code [ fhir:value "2" ] ;
       fhir:ConceptMap.group.element.display [ fhir:value "Nữ" ] ;
       fhir:ConceptMap.group.element.target [
         fhir:index -1 ;
         fhir:ConceptMap.group.element.target.code [ fhir:value "2" ] ;
         fhir:ConceptMap.group.element.target.display [ fhir:value "Nữ" ] ;
         fhir:ConceptMap.group.element.target.equivalence [ fhir:value "equal" ]
       ]
     ], [
       fhir:index -1 ;
       fhir:ConceptMap.group.element.code [ fhir:value "3" ] ;
       fhir:ConceptMap.group.element.display [ fhir:value "Khác" ] ;
       fhir:ConceptMap.group.element.target [
         fhir:index -1 ;
         fhir:ConceptMap.group.element.target.code [ fhir:value "3" ] ;
         fhir:ConceptMap.group.element.target.display [ fhir:value "Chưa xác định" ] ;
         fhir:ConceptMap.group.element.target.equivalence [ fhir:value "inexact" ] ;
         fhir:ConceptMap.group.element.target.comment [ fhir:value "'Khác' của QĐ 2682/QĐ-BYT là giới tính khác; '3' của QĐ 3176/QĐ-BYT là chưa xác định — không đồng nhất, chỉ dùng khi hệ đích không có giá trị khác." ]
       ]
     ]
  ] .

# - ontology header ------------------------------------------------------------

<http://fhir.hl7.org.vn/core/ConceptMap/vn-cm-kcbdb-gender-to-vn-gender.ttl> a owl:Ontology ;
  owl:imports fhir:fhir.ttl .

# -------------------------------------------------------------------------------------

