@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-gender-to-administrative-gender> a fhir:ConceptMap ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:Resource.id [ fhir:value "vn-cm-gender-to-administrative-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-gender-to-administrative-gender</b></p><a name=\"vn-cm-gender-to-administrative-gender\"> </a><a name=\"hcvn-cm-gender-to-administrative-gender\"> </a><p>Mapping from <a href=\"ValueSet-vn-gender-vs.html\">Giới tính — Vietnam Gender ValueSet</a> to <a href=\"http://hl7.org/fhir/R4/valueset-administrative-gender.html\">AdministrativeGender</a></p><br/><p>Mapping from <a href=\"CodeSystem-vn-gender-cs.html\">Giới tính — Vietnam Gender CodeSystem</a> to <a href=\"http://hl7.org/fhir/R4/codesystem-administrative-gender.html\">AdministrativeGenderversion: 4.0.1)</a></p><table class=\"grid\"><tr><td><b>Source Code</b></td><td><b>Relationship</b></td><td><b>Target Code</b></td></tr><tr><td>1 (Nam)</td><td><a href=\"http://hl7.org/fhir/R5/codesystem-concept-map-relationship.html#equivalent\" title=\"equivalent\">is equivalent to</a></td><td>male</td></tr><tr><td>2 (Nữ)</td><td><a href=\"http://hl7.org/fhir/R5/codesystem-concept-map-relationship.html#equivalent\" title=\"equivalent\">is equivalent to</a></td><td>female</td></tr><tr><td>3 (Chưa xác định)</td><td><a href=\"http://hl7.org/fhir/R5/codesystem-concept-map-relationship.html#relatedto\" title=\"relatedto\">is related to</a></td><td>unknown</td></tr></table></div>"
  ] ;
  fhir:ConceptMap.url [ fhir:value "http://fhir.hl7.org.vn/core/ConceptMap/vn-cm-gender-to-administrative-gender"] ;
  fhir:ConceptMap.version [ fhir:value "0.6.1"] ;
  fhir:ConceptMap.name [ fhir:value "VNCMGenderToAdministrativeGender"] ;
  fhir:ConceptMap.title [ fhir:value "Ánh xạ giới tính QĐ 3176/QĐ-BYT → AdministrativeGender — Vietnam Gender to HL7 AdministrativeGender"] ;
  fhir:ConceptMap.status [ fhir:value "draft"] ;
  fhir:ConceptMap.experimental [ fhir:value "false"^^xsd:boolean] ;
  fhir:ConceptMap.date [ fhir:value "2026-07-10"^^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 "ConceptMap ánh xạ danh mục mã giới tính QĐ 3176/QĐ-BYT (trường GIOI_TINH / GIOI_TINH_CON) sang bộ mã `administrative-gender` của FHIR R4.\nChiều ánh xạ: mã trong nước 1/2/3 → mã FHIR male/female/unknown. Dùng khi chuyển đổi dữ liệu BHYT/HIS (logical model BHYT XML) sang `VNCorePatient.gender`.\nLưu ý: FHIR có thêm mã `other` nhưng danh mục QĐ 3176/QĐ-BYT không có mã tương ứng nên không ánh xạ ngược."] ;
  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 "Nguồn Việt Nam: QĐ 3176/QĐ-BYT (29/10/2024), trường GIOI_TINH (Bảng 1) và GIOI_TINH_CON (Bảng 9). Đích HL7: FHIR R4 administrative-gender."] ;
  fhir:ConceptMap.sourceUri [ fhir:value "http://fhir.hl7.org.vn/core/ValueSet/vn-gender-vs"] ;
  fhir:ConceptMap.targetUri [ fhir:value "http://hl7.org/fhir/ValueSet/administrative-gender"] ;
  fhir:ConceptMap.group [
     fhir:index -1 ;
     fhir:ConceptMap.group.source [ fhir:value "http://fhir.hl7.org.vn/core/CodeSystem/vn-gender-cs" ] ;
     fhir:ConceptMap.group.target [ fhir:value "http://hl7.org/fhir/administrative-gender" ] ;
     fhir:ConceptMap.group.targetVersion [ fhir:value "4.0.1" ] ;
     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 "male" ] ;
         fhir:ConceptMap.group.element.target.display [ fhir:value "Male" ] ;
         fhir:ConceptMap.group.element.target.equivalence [ fhir:value "equivalent" ]
       ]
     ], [
       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 "female" ] ;
         fhir:ConceptMap.group.element.target.display [ fhir:value "Female" ] ;
         fhir:ConceptMap.group.element.target.equivalence [ fhir:value "equivalent" ]
       ]
     ], [
       fhir:index -1 ;
       fhir:ConceptMap.group.element.code [ fhir:value "3" ] ;
       fhir:ConceptMap.group.element.display [ fhir:value "Chưa xác định" ] ;
       fhir:ConceptMap.group.element.target [
         fhir:index -1 ;
         fhir:ConceptMap.group.element.target.code [ fhir:value "unknown" ] ;
         fhir:ConceptMap.group.element.target.display [ fhir:value "Unknown" ] ;
         fhir:ConceptMap.group.element.target.equivalence [ fhir:value "relatedto" ]
       ]
     ]
  ] .

# - ontology header ------------------------------------------------------------

<http://fhir.hl7.org.vn/core/ConceptMap/vn-cm-gender-to-administrative-gender.ttl> a owl:Ontology ;
  owl:imports fhir:fhir.ttl .

# -------------------------------------------------------------------------------------

