@prefix fhir: <http://hl7.org/fhir/> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@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/StructureMap/vn-sm-bhyt-xml12-medical-assessment> a fhir:StructureMap ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:id [ fhir:v "vn-sm-bhyt-xml12-medical-assessment"] ; # 
  fhir:language [ fhir:v "vi"] ; # 
  fhir:text [
     fhir:status [ fhir:v "generated" ] ;
     fhir:div [ fhir:v "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p class=\"res-header-id\"><b>Generated Narrative: StructureMap vn-sm-bhyt-xml12-medical-assessment</b></p><a name=\"vn-sm-bhyt-xml12-medical-assessment\"> </a><a name=\"hcvn-sm-bhyt-xml12-medical-assessment\"> </a><pre class=\"fml\">#xD;\n<b>map</b><span style=\"color: navy\"> \"</span>http://fhir.hl7.org.vn/core/StructureMap/vn-sm-bhyt-xml12-medical-assessment<span style=\"color: navy\">\" = \"</span>BHYTXML12MedicalAssessmentLMStructureMap<span style=\"color: navy\">\"#xD;\n#xD;\n</span><span style=\"color: navy\">// </span><span style=\"color: green\">Generated StructureMap scaffold for Bảng 12 giám định y khoa — XML12 Medical Assessment Logical Model. Source semantics come from the logical model mapping annotations in `BHYTXML12MedicalAssessmentLM.fsh` and remain aligned with the Python BHYT round-trip export adapter.</span>#xD;\n#xD;\n<b>uses</b><span style=\"color: navy\"> \"</span><a href=\"StructureDefinition-vn-core-bhyt-submission-bundle.html\" title=\"Bundle hồ sơ thanh toán BHYT — VN Core BHYT Submission Bundle\">http://fhir.hl7.org.vn/core/StructureDefinition/vn-core-bhyt-submission-bundle</a><span style=\"color: navy\">\" </span><b>alias </b>BHYTSubmissionBundle <b>as </b><b>source</b> <span style=\"color: navy\">// </span><span style=\"color: green\">FHIR-native source bundle profile used by the repository round-trip adapter.</span>#xD;\n<b>uses</b><span style=\"color: navy\"> \"</span><a href=\"StructureDefinition-bhytXml12MedicalAssessmentLm.html\" title=\"Bảng 12 giám định y khoa — XML12 Medical Assessment Logical Model\">http://fhir.hl7.org.vn/core/StructureDefinition/bhytXml12MedicalAssessmentLm</a><span style=\"color: navy\">\" </span><b>alias </b>BHYTXML12MedicalAssessmentLM <b>as </b><b>target</b> <span style=\"color: navy\">// </span><span style=\"color: green\">Bảng 12 giám định y khoa — XML12 Medical Assessment Logical Model</span>#xD;\n#xD;\n<span style=\"color: navy\">// </span><span style=\"color: green\">Rows are derived from medical-assessment Composition/DocumentReference, Patient/Coverage identity data and structured assessment Observations. Generated from logical-model `^mapping` annotations. Fields still missing a field-level `^mapping.map` entry remain outside this StructureMap and are tracked in `wiki/mappings/bhyt-output-data/machine/structuremap-coverage.json`.</span>#xD;\n<b>group </b>MapBHYTXML12MedicalAssessmentLM<span style=\"color: navy\">(</span><b>source</b> <span style=\"color: maroon\">sourceBundle</span><span style=\"color: navy\"> : </span>BHYTSubmissionBundle, <b>target</b> <span style=\"color: maroon\">targetRow</span><span style=\"color: navy\"> : </span>BHYTXML12MedicalAssessmentLM<span style=\"color: navy\">)</span><span style=\"color: navy\"> {#xD;\n</span>  sourceBundle.entry<b> as </b><span style=\"color: maroon\">nguoiChuTriSource</span><span style=\"color: navy\"><b> -&gt; </b></span>targetRow.nguoiChuTri <i>\"nguoiChuTri\"</i><span style=\"color: navy\">;</span> <span style=\"color: navy\">// </span><span style=\"color: green\">Target field: NGUOI_CHU_TRI - Người chủ trì FHIR path: VNCoreComposition.author.resolve().identifier.value | VNCorePractitioner.identifier.value</span>#xD;\n  sourceBundle.entry<b> as </b><span style=\"color: maroon\">chucVuSource</span><span style=\"color: navy\"><b> -&gt; </b></span>targetRow.chucVu <i>\"chucVu\"</i><span style=\"color: navy\">;</span> <span style=\"color: navy\">// </span><span style=\"color: green\">Target field: CHUC_VU - Chức vụ FHIR path: VNCorePractitionerRole.code | VNCorePractitioner.qualification.code</span>#xD;\n  sourceBundle.entry<b> as </b><span style=\"color: maroon\">ngayHopSource</span><span style=\"color: navy\"><b> -&gt; </b></span>targetRow.ngayHop <i>\"ngayHop\"</i><span style=\"color: navy\">;</span> <span style=\"color: navy\">// </span><span style=\"color: green\">Target field: NGAY_HOP - Ngày họp FHIR path: VNCoreComposition.event.period.start | VNCoreDocumentReference.context.period.start</span>#xD;\n  sourceBundle.entry<b> as </b><span style=\"color: maroon\">hoTenSource</span><span style=\"color: navy\"><b> -&gt; </b></span>targetRow.hoTen <i>\"hoTen\"</i><span style=\"color: navy\">;</span> <span style=\"color: navy\">// </span><span style=\"color: green\">Target field: HO_TEN - Họ tên người được giám định FHIR path: VNCorePatient.name</span>#xD;\n  sourceBundle.entry<b> as </b><span style=\"color: maroon\">ngaySinhSource</span><span style=\"color: navy\"><b> -&gt; </b></span>targetRow.ngaySinh <i>\"ngaySinh\"</i><span style=\"color: navy\">;</span> <span style=\"color: navy\">// </span><span style=\"color: green\">Target field: NGAY_SINH - Ngày sinh FHIR path: VNCorePatient.birthDate</span>#xD;\n  sourceBundle.entry<b> as </b><span style=\"color: maroon\">ngayCapCccdSource</span><span style=\"color: navy\"><b> -&gt; </b></span>targetRow.ngayCapCccd <i>\"ngayCapCccd\"</i><span style=\"color: navy\">;</span> <span style=\"color: navy\">// </span><span style=\"color: green\">Target field: NGAY_CAP_CCCD - Ngày cấp CCCD FHIR path: VNCorePatient.identifier[CCCD].period.start</span>#xD;\n  sourceBundle.entry<b> as </b><span style=\"color: maroon\">noiCapCccdSource</span><span style=\"color: navy\"><b> -&gt; </b></span>targetRow.noiCapCccd <i>\"noiCapCccd\"</i><span style=\"color: navy\">;</span> <span style=\"color: navy\">// </span><span style=\"color: green\">Target field: NOI_CAP_CCCD - Nơi cấp CCCD FHIR path: VNCorePatient.identifier[CCCD].assigner.display</span>#xD;\n  sourceBundle.entry<b> as </b><span style=\"color: maroon\">diaChiSource</span><span style=\"color: navy\"><b> -&gt; </b></span>targetRow.diaChi <i>\"diaChi\"</i><span style=\"color: navy\">;</span> <span style=\"color: navy\">// </span><span style=\"color: green\">Target field: DIA_CHI - Địa chỉ FHIR path: VNCorePatient.address.text</span>#xD;\n  sourceBundle.entry<b> as </b><span style=\"color: maroon\">maTinhCuTruSource</span><span style=\"color: navy\"><b> -&gt; </b></span>targetRow.maTinhCuTru <i>\"maTinhCuTru\"</i><span style=\"color: navy\">;</span> <span style=\"color: navy\">// </span><span style=\"color: green\">Target field: MATINH_CU_TRU - Mã tỉnh cư trú FHIR path: VNCorePatient.address.extension[province].valueCoding.code</span>#xD;\n  sourceBundle.entry<b> as </b><span style=\"color: maroon\">maHuyenCuTruSource</span><span style=\"color: navy\"><b> -&gt; </b></span>targetRow.maHuyenCuTru <i>\"maHuyenCuTru\"</i><span style=\"color: navy\">;</span> <span style=\"color: navy\">// </span><span style=\"color: green\">Target field: MAHUYEN_CU_TRU - Mã huyện cư trú legacy FHIR path: VNCorePatient.address.district</span>#xD;\n  sourceBundle.entry<b> as </b><span style=\"color: maroon\">maXaCuTruSource</span><span style=\"color: navy\"><b> -&gt; </b></span>targetRow.maXaCuTru <i>\"maXaCuTru\"</i><span style=\"color: navy\">;</span> <span style=\"color: navy\">// </span><span style=\"color: green\">Target field: MAXA_CU_TRU - Mã xã cư trú FHIR path: VNCorePatient.address.extension[ward].valueCoding.code</span>#xD;\n  sourceBundle.entry<b> as </b><span style=\"color: maroon\">maBhxhSource</span><span style=\"color: navy\"><b> -&gt; </b></span>targetRow.maBhxh <i>\"maBhxh\"</i><span style=\"color: navy\">;</span> <span style=\"color: navy\">// </span><span style=\"color: green\">Target field: MA_BHXH - Mã BHXH FHIR path: VNCorePatient.identifier[BHXH].value | VNCoreCoverage.subscriberId</span>#xD;\n  sourceBundle.entry<b> as </b><span style=\"color: maroon\">maTheBhytSource</span><span style=\"color: navy\"><b> -&gt; </b></span>targetRow.maTheBhyt <i>\"maTheBhyt\"</i><span style=\"color: navy\">;</span> <span style=\"color: navy\">// </span><span style=\"color: green\">Target field: MA_THE_BHYT - Mã thẻ BHYT FHIR path: VNCoreCoverage.identifier[BHYT].value</span>#xD;\n  sourceBundle.entry<b> as </b><span style=\"color: maroon\">ngheNghiepSource</span><span style=\"color: navy\"><b> -&gt; </b></span>targetRow.ngheNghiep <i>\"ngheNghiep\"</i><span style=\"color: navy\">;</span> <span style=\"color: navy\">// </span><span style=\"color: green\">Target field: NGHE_NGHIEP - Nghề nghiệp FHIR path: VNCorePatient.extension[occupation].valueCodeableConcept.coding.code</span>#xD;\n  sourceBundle.entry<b> as </b><span style=\"color: maroon\">dienThoaiSource</span><span style=\"color: navy\"><b> -&gt; </b></span>targetRow.dienThoai <i>\"dienThoai\"</i><span style=\"color: navy\">;</span> <span style=\"color: navy\">// </span><span style=\"color: green\">Target field: DIEN_THOAI - Điện thoại FHIR path: VNCorePatient.telecom.where(system='phone').value</span>#xD;\n  sourceBundle.entry<b> as </b><span style=\"color: maroon\">soBienBanSource</span><span style=\"color: navy\"><b> -&gt; </b></span>targetRow.soBienBan <i>\"soBienBan\"</i><span style=\"color: navy\">;</span> <span style=\"color: navy\">// </span><span style=\"color: green\">Target field: SO_BIEN_BAN - Số biên bản FHIR path: VNCoreDocumentReference.identifier.value | VNCoreComposition.identifier.value</span>#xD;\n  sourceBundle.entry<b> as </b><span style=\"color: maroon\">tyleTtctCuSource</span><span style=\"color: navy\"><b> -&gt; </b></span>targetRow.tyleTtctCu <i>\"tyleTtctCu\"</i><span style=\"color: navy\">;</span> <span style=\"color: navy\">// </span><span style=\"color: green\">Target field: TYLE_TTCT_CU - Tỷ lệ tổn thương cơ thể cũ FHIR path: VNCoreObservation.valueQuantity</span>#xD;\n  sourceBundle.entry<b> as </b><span style=\"color: maroon\">ngayChungTuSource</span><span style=\"color: navy\"><b> -&gt; </b></span>targetRow.ngayChungTu <i>\"ngayChungTu\"</i><span style=\"color: navy\">;</span> <span style=\"color: navy\">// </span><span style=\"color: green\">Target field: NGAY_CHUNG_TU - Ngày chứng từ FHIR path: VNCoreDocumentReference.date | VNCoreComposition.date</span>#xD;\n  sourceBundle.entry<b> as </b><span style=\"color: maroon\">soGiayGioiThieuSource</span><span style=\"color: navy\"><b> -&gt; </b></span>targetRow.soGiayGioiThieu <i>\"soGiayGioiThieu\"</i><span style=\"color: navy\">;</span> <span style=\"color: navy\">// </span><span style=\"color: green\">Target field: SO_GIAY_GIOI_THIEU - Số giấy giới thiệu FHIR path: VNCoreDocumentReference.relatesTo.target.identifier.value | VNCoreDocumentReference.identifier.value</span>#xD;\n  sourceBundle.entry<b> as </b><span style=\"color: maroon\">ngayDeNghiSource</span><span style=\"color: navy\"><b> -&gt; </b></span>targetRow.ngayDeNghi <i>\"ngayDeNghi\"</i><span style=\"color: navy\">;</span> <span style=\"color: navy\">// </span><span style=\"color: green\">Target field: NGAY_DE_NGHI - Ngày đề nghị FHIR path: VNCoreServiceRequest.authoredOn | VNCoreDocumentReference.context.period.start</span>#xD;\n  sourceBundle.entry<b> as </b><span style=\"color: maroon\">maDonviSource</span><span style=\"color: navy\"><b> -&gt; </b></span>targetRow.maDonvi <i>\"maDonvi\"</i><span style=\"color: navy\">;</span> <span style=\"color: navy\">// </span><span style=\"color: green\">Target field: MA_DONVI - Mã đơn vị FHIR path: VNCoreOrganization.identifier.value | VNCoreDocumentReference.custodian.resolve().identifier.value</span>#xD;\n  sourceBundle.entry<b> as </b><span style=\"color: maroon\">gioiThieuCuaSource</span><span style=\"color: navy\"><b> -&gt; </b></span>targetRow.gioiThieuCua <i>\"gioiThieuCua\"</i><span style=\"color: navy\">;</span> <span style=\"color: navy\">// </span><span style=\"color: green\">Target field: GIOI_THIEU_CUA - Giới thiệu của FHIR path: VNCoreDocumentReference.relatesTo.target.display | VNCoreServiceRequest.requester.display</span>#xD;\n  sourceBundle.entry<b> as </b><span style=\"color: maroon\">soVanBanCanCuSource</span><span style=\"color: navy\"><b> -&gt; </b></span>targetRow.soVanBanCanCu <i>\"soVanBanCanCu\"</i><span style=\"color: navy\">;</span> <span style=\"color: navy\">// </span><span style=\"color: green\">Target field: SO_VAN_BAN_CAN_CU - Số văn bản căn cứ FHIR path: VNCoreDocumentReference.identifier.value | VNCoreComposition.identifier.value</span>#xD;\n  sourceBundle.entry<b> as </b><span style=\"color: maroon\">tyleTtctMoiSource</span><span style=\"color: navy\"><b> -&gt; </b></span>targetRow.tyleTtctMoi <i>\"tyleTtctMoi\"</i><span style=\"color: navy\">;</span> <span style=\"color: navy\">// </span><span style=\"color: green\">Target field: TYLE_TTCT_MOI - Tỷ lệ tổn thương cơ thể mới FHIR path: VNCoreObservation.valueQuantity</span>#xD;\n  sourceBundle.entry<b> as </b><span style=\"color: maroon\">tongTyleTtctSource</span><span style=\"color: navy\"><b> -&gt; </b></span>targetRow.tongTyleTtct <i>\"tongTyleTtct\"</i><span style=\"color: navy\">;</span> <span style=\"color: navy\">// </span><span style=\"color: green\">Target field: TONG_TYLE_TTCT - Tổng tỷ lệ tổn thương cơ thể FHIR path: VNCoreObservation.valueQuantity</span>#xD;\n<span style=\"color: navy\">}#xD;\n#xD;\n</span></pre></div>"^^rdf:XMLLiteral ]
  ] ; # 
  fhir:url [
     fhir:v "http://fhir.hl7.org.vn/core/StructureMap/vn-sm-bhyt-xml12-medical-assessment"^^xsd:anyURI ;
     fhir:l <http://fhir.hl7.org.vn/core/StructureMap/vn-sm-bhyt-xml12-medical-assessment>
  ] ; # 
  fhir:version [ fhir:v "0.5.0"] ; # 
  fhir:name [ fhir:v "BHYTXML12MedicalAssessmentLMStructureMap"] ; # 
  fhir:title [ fhir:v "Bảng 12 giám định y khoa — XML12 Medical Assessment Logical Model — StructureMap"] ; # 
  fhir:status [ fhir:v "draft"] ; # 
  fhir:experimental [ fhir:v false] ; # 
  fhir:date [ fhir:v "2026-04-28"^^xsd:date] ; # 
  fhir:publisher [ fhir:v "Omi HealthTech / VN Core FHIR Community Initiative"] ; # 
  fhir:contact ( [
     fhir:name [ fhir:v "Omi HealthTech / VN Core FHIR Community Initiative" ] ;
     fhir:telecom ( [
       fhir:system [ fhir:v "url" ] ;
       fhir:value [ fhir:v "https://hl7.org.vn" ]
     ] [
       fhir:system [ fhir:v "email" ] ;
       fhir:value [ fhir:v "info@hl7.org.vn" ]
     ] )
  ] [
     fhir:name [ fhir:v "Omi HealthTech (OmiGroup)" ] ;
     fhir:telecom ( [
       fhir:system [ fhir:v "url" ] ;
       fhir:value [ fhir:v "https://omihealthtech.vn" ]
     ] [
       fhir:system [ fhir:v "url" ] ;
       fhir:value [ fhir:v "https://omigroup.vn" ]
     ] [
       fhir:system [ fhir:v "email" ] ;
       fhir:value [ fhir:v "healthtech@omigroup.vn" ]
     ] )
  ] ) ; # 
  fhir:description [ fhir:v "Generated StructureMap scaffold for Bảng 12 giám định y khoa — XML12 Medical Assessment Logical Model. Source semantics come from the logical model mapping annotations in `BHYTXML12MedicalAssessmentLM.fsh` and remain aligned with the Python BHYT round-trip export adapter."] ; # 
  fhir:jurisdiction ( [
     fhir:coding ( [
       fhir:system [
         fhir:v "urn:iso:std:iso:3166"^^xsd:anyURI ;
         fhir:l <urn:iso:std:iso:3166>
       ] ;
       fhir:code [ fhir:v "VN" ] ;
       fhir:display [ fhir:v "Viet Nam" ]
     ] )
  ] ) ; # 
  fhir:purpose [ fhir:v "Publish canonical, reviewable FHIR-to-BHYT XML mapping artifacts for XML1-XML12 without duplicating field-level mapping semantics across FSH, wiki, and export code."] ; # 
  fhir:structure ( [
     fhir:url [
       fhir:v "http://fhir.hl7.org.vn/core/StructureDefinition/vn-core-bhyt-submission-bundle"^^xsd:anyURI ;
       fhir:l <http://fhir.hl7.org.vn/core/StructureDefinition/vn-core-bhyt-submission-bundle>
     ] ;
     fhir:mode [ fhir:v "source" ] ;
     fhir:alias [ fhir:v "BHYTSubmissionBundle" ] ;
     fhir:documentation [ fhir:v "FHIR-native source bundle profile used by the repository round-trip adapter." ]
  ] [
     fhir:url [
       fhir:v "http://fhir.hl7.org.vn/core/StructureDefinition/bhytXml12MedicalAssessmentLm"^^xsd:anyURI ;
       fhir:l <http://fhir.hl7.org.vn/core/StructureDefinition/bhytXml12MedicalAssessmentLm>
     ] ;
     fhir:mode [ fhir:v "target" ] ;
     fhir:alias [ fhir:v "BHYTXML12MedicalAssessmentLM" ] ;
     fhir:documentation [ fhir:v "Bảng 12 giám định y khoa — XML12 Medical Assessment Logical Model" ]
  ] ) ; # 
  fhir:group ( [
     fhir:name [ fhir:v "MapBHYTXML12MedicalAssessmentLM" ] ;
     fhir:typeMode [ fhir:v "none" ] ;
     fhir:documentation [ fhir:v "Rows are derived from medical-assessment Composition/DocumentReference, Patient/Coverage identity data and structured assessment Observations. Generated from logical-model `^mapping` annotations. Fields still missing a field-level `^mapping.map` entry remain outside this StructureMap and are tracked in `wiki/mappings/bhyt-output-data/machine/structuremap-coverage.json`." ] ;
     fhir:input ( [
       fhir:name [ fhir:v "sourceBundle" ] ;
       fhir:type [ fhir:v "BHYTSubmissionBundle" ] ;
       fhir:mode [ fhir:v "source" ] ;
       fhir:documentation [ fhir:v "VN Core BHYT submission bundle." ]
     ] [
       fhir:name [ fhir:v "targetRow" ] ;
       fhir:type [ fhir:v "BHYTXML12MedicalAssessmentLM" ] ;
       fhir:mode [ fhir:v "target" ] ;
       fhir:documentation [ fhir:v "Bảng 12 giám định y khoa — XML12 Medical Assessment Logical Model" ]
     ] ) ;
     fhir:rule ( [
       fhir:name [ fhir:v "nguoiChuTri" ] ;
       fhir:source ( [
         fhir:context [ fhir:v "sourceBundle" ] ;
         fhir:min [ fhir:v 0 ] ;
         fhir:max [ fhir:v "*" ] ;
         fhir:element [ fhir:v "entry" ] ;
         fhir:variable [ fhir:v "nguoiChuTriSource" ]
       ] ) ;
       fhir:target ( [
         fhir:context [ fhir:v "targetRow" ] ;
         fhir:contextType [ fhir:v "variable" ] ;
         fhir:element [ fhir:v "nguoiChuTri" ]
       ] ) ;
       fhir:documentation [ fhir:v "Target field: NGUOI_CHU_TRI - Người chủ trì FHIR path: VNCoreComposition.author.resolve().identifier.value | VNCorePractitioner.identifier.value" ]
     ] [
       fhir:name [ fhir:v "chucVu" ] ;
       fhir:source ( [
         fhir:context [ fhir:v "sourceBundle" ] ;
         fhir:min [ fhir:v 0 ] ;
         fhir:max [ fhir:v "*" ] ;
         fhir:element [ fhir:v "entry" ] ;
         fhir:variable [ fhir:v "chucVuSource" ]
       ] ) ;
       fhir:target ( [
         fhir:context [ fhir:v "targetRow" ] ;
         fhir:contextType [ fhir:v "variable" ] ;
         fhir:element [ fhir:v "chucVu" ]
       ] ) ;
       fhir:documentation [ fhir:v "Target field: CHUC_VU - Chức vụ FHIR path: VNCorePractitionerRole.code | VNCorePractitioner.qualification.code" ]
     ] [
       fhir:name [ fhir:v "ngayHop" ] ;
       fhir:source ( [
         fhir:context [ fhir:v "sourceBundle" ] ;
         fhir:min [ fhir:v 0 ] ;
         fhir:max [ fhir:v "*" ] ;
         fhir:element [ fhir:v "entry" ] ;
         fhir:variable [ fhir:v "ngayHopSource" ]
       ] ) ;
       fhir:target ( [
         fhir:context [ fhir:v "targetRow" ] ;
         fhir:contextType [ fhir:v "variable" ] ;
         fhir:element [ fhir:v "ngayHop" ]
       ] ) ;
       fhir:documentation [ fhir:v "Target field: NGAY_HOP - Ngày họp FHIR path: VNCoreComposition.event.period.start | VNCoreDocumentReference.context.period.start" ]
     ] [
       fhir:name [ fhir:v "hoTen" ] ;
       fhir:source ( [
         fhir:context [ fhir:v "sourceBundle" ] ;
         fhir:min [ fhir:v 0 ] ;
         fhir:max [ fhir:v "*" ] ;
         fhir:element [ fhir:v "entry" ] ;
         fhir:variable [ fhir:v "hoTenSource" ]
       ] ) ;
       fhir:target ( [
         fhir:context [ fhir:v "targetRow" ] ;
         fhir:contextType [ fhir:v "variable" ] ;
         fhir:element [ fhir:v "hoTen" ]
       ] ) ;
       fhir:documentation [ fhir:v "Target field: HO_TEN - Họ tên người được giám định FHIR path: VNCorePatient.name" ]
     ] [
       fhir:name [ fhir:v "ngaySinh" ] ;
       fhir:source ( [
         fhir:context [ fhir:v "sourceBundle" ] ;
         fhir:min [ fhir:v 0 ] ;
         fhir:max [ fhir:v "*" ] ;
         fhir:element [ fhir:v "entry" ] ;
         fhir:variable [ fhir:v "ngaySinhSource" ]
       ] ) ;
       fhir:target ( [
         fhir:context [ fhir:v "targetRow" ] ;
         fhir:contextType [ fhir:v "variable" ] ;
         fhir:element [ fhir:v "ngaySinh" ]
       ] ) ;
       fhir:documentation [ fhir:v "Target field: NGAY_SINH - Ngày sinh FHIR path: VNCorePatient.birthDate" ]
     ] [
       fhir:name [ fhir:v "ngayCapCccd" ] ;
       fhir:source ( [
         fhir:context [ fhir:v "sourceBundle" ] ;
         fhir:min [ fhir:v 0 ] ;
         fhir:max [ fhir:v "*" ] ;
         fhir:element [ fhir:v "entry" ] ;
         fhir:variable [ fhir:v "ngayCapCccdSource" ]
       ] ) ;
       fhir:target ( [
         fhir:context [ fhir:v "targetRow" ] ;
         fhir:contextType [ fhir:v "variable" ] ;
         fhir:element [ fhir:v "ngayCapCccd" ]
       ] ) ;
       fhir:documentation [ fhir:v "Target field: NGAY_CAP_CCCD - Ngày cấp CCCD FHIR path: VNCorePatient.identifier[CCCD].period.start" ]
     ] [
       fhir:name [ fhir:v "noiCapCccd" ] ;
       fhir:source ( [
         fhir:context [ fhir:v "sourceBundle" ] ;
         fhir:min [ fhir:v 0 ] ;
         fhir:max [ fhir:v "*" ] ;
         fhir:element [ fhir:v "entry" ] ;
         fhir:variable [ fhir:v "noiCapCccdSource" ]
       ] ) ;
       fhir:target ( [
         fhir:context [ fhir:v "targetRow" ] ;
         fhir:contextType [ fhir:v "variable" ] ;
         fhir:element [ fhir:v "noiCapCccd" ]
       ] ) ;
       fhir:documentation [ fhir:v "Target field: NOI_CAP_CCCD - Nơi cấp CCCD FHIR path: VNCorePatient.identifier[CCCD].assigner.display" ]
     ] [
       fhir:name [ fhir:v "diaChi" ] ;
       fhir:source ( [
         fhir:context [ fhir:v "sourceBundle" ] ;
         fhir:min [ fhir:v 0 ] ;
         fhir:max [ fhir:v "*" ] ;
         fhir:element [ fhir:v "entry" ] ;
         fhir:variable [ fhir:v "diaChiSource" ]
       ] ) ;
       fhir:target ( [
         fhir:context [ fhir:v "targetRow" ] ;
         fhir:contextType [ fhir:v "variable" ] ;
         fhir:element [ fhir:v "diaChi" ]
       ] ) ;
       fhir:documentation [ fhir:v "Target field: DIA_CHI - Địa chỉ FHIR path: VNCorePatient.address.text" ]
     ] [
       fhir:name [ fhir:v "maTinhCuTru" ] ;
       fhir:source ( [
         fhir:context [ fhir:v "sourceBundle" ] ;
         fhir:min [ fhir:v 0 ] ;
         fhir:max [ fhir:v "*" ] ;
         fhir:element [ fhir:v "entry" ] ;
         fhir:variable [ fhir:v "maTinhCuTruSource" ]
       ] ) ;
       fhir:target ( [
         fhir:context [ fhir:v "targetRow" ] ;
         fhir:contextType [ fhir:v "variable" ] ;
         fhir:element [ fhir:v "maTinhCuTru" ]
       ] ) ;
       fhir:documentation [ fhir:v "Target field: MATINH_CU_TRU - Mã tỉnh cư trú FHIR path: VNCorePatient.address.extension[province].valueCoding.code" ]
     ] [
       fhir:name [ fhir:v "maHuyenCuTru" ] ;
       fhir:source ( [
         fhir:context [ fhir:v "sourceBundle" ] ;
         fhir:min [ fhir:v 0 ] ;
         fhir:max [ fhir:v "*" ] ;
         fhir:element [ fhir:v "entry" ] ;
         fhir:variable [ fhir:v "maHuyenCuTruSource" ]
       ] ) ;
       fhir:target ( [
         fhir:context [ fhir:v "targetRow" ] ;
         fhir:contextType [ fhir:v "variable" ] ;
         fhir:element [ fhir:v "maHuyenCuTru" ]
       ] ) ;
       fhir:documentation [ fhir:v "Target field: MAHUYEN_CU_TRU - Mã huyện cư trú legacy FHIR path: VNCorePatient.address.district" ]
     ] [
       fhir:name [ fhir:v "maXaCuTru" ] ;
       fhir:source ( [
         fhir:context [ fhir:v "sourceBundle" ] ;
         fhir:min [ fhir:v 0 ] ;
         fhir:max [ fhir:v "*" ] ;
         fhir:element [ fhir:v "entry" ] ;
         fhir:variable [ fhir:v "maXaCuTruSource" ]
       ] ) ;
       fhir:target ( [
         fhir:context [ fhir:v "targetRow" ] ;
         fhir:contextType [ fhir:v "variable" ] ;
         fhir:element [ fhir:v "maXaCuTru" ]
       ] ) ;
       fhir:documentation [ fhir:v "Target field: MAXA_CU_TRU - Mã xã cư trú FHIR path: VNCorePatient.address.extension[ward].valueCoding.code" ]
     ] [
       fhir:name [ fhir:v "maBhxh" ] ;
       fhir:source ( [
         fhir:context [ fhir:v "sourceBundle" ] ;
         fhir:min [ fhir:v 0 ] ;
         fhir:max [ fhir:v "*" ] ;
         fhir:element [ fhir:v "entry" ] ;
         fhir:variable [ fhir:v "maBhxhSource" ]
       ] ) ;
       fhir:target ( [
         fhir:context [ fhir:v "targetRow" ] ;
         fhir:contextType [ fhir:v "variable" ] ;
         fhir:element [ fhir:v "maBhxh" ]
       ] ) ;
       fhir:documentation [ fhir:v "Target field: MA_BHXH - Mã BHXH FHIR path: VNCorePatient.identifier[BHXH].value | VNCoreCoverage.subscriberId" ]
     ] [
       fhir:name [ fhir:v "maTheBhyt" ] ;
       fhir:source ( [
         fhir:context [ fhir:v "sourceBundle" ] ;
         fhir:min [ fhir:v 0 ] ;
         fhir:max [ fhir:v "*" ] ;
         fhir:element [ fhir:v "entry" ] ;
         fhir:variable [ fhir:v "maTheBhytSource" ]
       ] ) ;
       fhir:target ( [
         fhir:context [ fhir:v "targetRow" ] ;
         fhir:contextType [ fhir:v "variable" ] ;
         fhir:element [ fhir:v "maTheBhyt" ]
       ] ) ;
       fhir:documentation [ fhir:v "Target field: MA_THE_BHYT - Mã thẻ BHYT FHIR path: VNCoreCoverage.identifier[BHYT].value" ]
     ] [
       fhir:name [ fhir:v "ngheNghiep" ] ;
       fhir:source ( [
         fhir:context [ fhir:v "sourceBundle" ] ;
         fhir:min [ fhir:v 0 ] ;
         fhir:max [ fhir:v "*" ] ;
         fhir:element [ fhir:v "entry" ] ;
         fhir:variable [ fhir:v "ngheNghiepSource" ]
       ] ) ;
       fhir:target ( [
         fhir:context [ fhir:v "targetRow" ] ;
         fhir:contextType [ fhir:v "variable" ] ;
         fhir:element [ fhir:v "ngheNghiep" ]
       ] ) ;
       fhir:documentation [ fhir:v "Target field: NGHE_NGHIEP - Nghề nghiệp FHIR path: VNCorePatient.extension[occupation].valueCodeableConcept.coding.code" ]
     ] [
       fhir:name [ fhir:v "dienThoai" ] ;
       fhir:source ( [
         fhir:context [ fhir:v "sourceBundle" ] ;
         fhir:min [ fhir:v 0 ] ;
         fhir:max [ fhir:v "*" ] ;
         fhir:element [ fhir:v "entry" ] ;
         fhir:variable [ fhir:v "dienThoaiSource" ]
       ] ) ;
       fhir:target ( [
         fhir:context [ fhir:v "targetRow" ] ;
         fhir:contextType [ fhir:v "variable" ] ;
         fhir:element [ fhir:v "dienThoai" ]
       ] ) ;
       fhir:documentation [ fhir:v "Target field: DIEN_THOAI - Điện thoại FHIR path: VNCorePatient.telecom.where(system='phone').value" ]
     ] [
       fhir:name [ fhir:v "soBienBan" ] ;
       fhir:source ( [
         fhir:context [ fhir:v "sourceBundle" ] ;
         fhir:min [ fhir:v 0 ] ;
         fhir:max [ fhir:v "*" ] ;
         fhir:element [ fhir:v "entry" ] ;
         fhir:variable [ fhir:v "soBienBanSource" ]
       ] ) ;
       fhir:target ( [
         fhir:context [ fhir:v "targetRow" ] ;
         fhir:contextType [ fhir:v "variable" ] ;
         fhir:element [ fhir:v "soBienBan" ]
       ] ) ;
       fhir:documentation [ fhir:v "Target field: SO_BIEN_BAN - Số biên bản FHIR path: VNCoreDocumentReference.identifier.value | VNCoreComposition.identifier.value" ]
     ] [
       fhir:name [ fhir:v "tyleTtctCu" ] ;
       fhir:source ( [
         fhir:context [ fhir:v "sourceBundle" ] ;
         fhir:min [ fhir:v 0 ] ;
         fhir:max [ fhir:v "*" ] ;
         fhir:element [ fhir:v "entry" ] ;
         fhir:variable [ fhir:v "tyleTtctCuSource" ]
       ] ) ;
       fhir:target ( [
         fhir:context [ fhir:v "targetRow" ] ;
         fhir:contextType [ fhir:v "variable" ] ;
         fhir:element [ fhir:v "tyleTtctCu" ]
       ] ) ;
       fhir:documentation [ fhir:v "Target field: TYLE_TTCT_CU - Tỷ lệ tổn thương cơ thể cũ FHIR path: VNCoreObservation.valueQuantity" ]
     ] [
       fhir:name [ fhir:v "ngayChungTu" ] ;
       fhir:source ( [
         fhir:context [ fhir:v "sourceBundle" ] ;
         fhir:min [ fhir:v 0 ] ;
         fhir:max [ fhir:v "*" ] ;
         fhir:element [ fhir:v "entry" ] ;
         fhir:variable [ fhir:v "ngayChungTuSource" ]
       ] ) ;
       fhir:target ( [
         fhir:context [ fhir:v "targetRow" ] ;
         fhir:contextType [ fhir:v "variable" ] ;
         fhir:element [ fhir:v "ngayChungTu" ]
       ] ) ;
       fhir:documentation [ fhir:v "Target field: NGAY_CHUNG_TU - Ngày chứng từ FHIR path: VNCoreDocumentReference.date | VNCoreComposition.date" ]
     ] [
       fhir:name [ fhir:v "soGiayGioiThieu" ] ;
       fhir:source ( [
         fhir:context [ fhir:v "sourceBundle" ] ;
         fhir:min [ fhir:v 0 ] ;
         fhir:max [ fhir:v "*" ] ;
         fhir:element [ fhir:v "entry" ] ;
         fhir:variable [ fhir:v "soGiayGioiThieuSource" ]
       ] ) ;
       fhir:target ( [
         fhir:context [ fhir:v "targetRow" ] ;
         fhir:contextType [ fhir:v "variable" ] ;
         fhir:element [ fhir:v "soGiayGioiThieu" ]
       ] ) ;
       fhir:documentation [ fhir:v "Target field: SO_GIAY_GIOI_THIEU - Số giấy giới thiệu FHIR path: VNCoreDocumentReference.relatesTo.target.identifier.value | VNCoreDocumentReference.identifier.value" ]
     ] [
       fhir:name [ fhir:v "ngayDeNghi" ] ;
       fhir:source ( [
         fhir:context [ fhir:v "sourceBundle" ] ;
         fhir:min [ fhir:v 0 ] ;
         fhir:max [ fhir:v "*" ] ;
         fhir:element [ fhir:v "entry" ] ;
         fhir:variable [ fhir:v "ngayDeNghiSource" ]
       ] ) ;
       fhir:target ( [
         fhir:context [ fhir:v "targetRow" ] ;
         fhir:contextType [ fhir:v "variable" ] ;
         fhir:element [ fhir:v "ngayDeNghi" ]
       ] ) ;
       fhir:documentation [ fhir:v "Target field: NGAY_DE_NGHI - Ngày đề nghị FHIR path: VNCoreServiceRequest.authoredOn | VNCoreDocumentReference.context.period.start" ]
     ] [
       fhir:name [ fhir:v "maDonvi" ] ;
       fhir:source ( [
         fhir:context [ fhir:v "sourceBundle" ] ;
         fhir:min [ fhir:v 0 ] ;
         fhir:max [ fhir:v "*" ] ;
         fhir:element [ fhir:v "entry" ] ;
         fhir:variable [ fhir:v "maDonviSource" ]
       ] ) ;
       fhir:target ( [
         fhir:context [ fhir:v "targetRow" ] ;
         fhir:contextType [ fhir:v "variable" ] ;
         fhir:element [ fhir:v "maDonvi" ]
       ] ) ;
       fhir:documentation [ fhir:v "Target field: MA_DONVI - Mã đơn vị FHIR path: VNCoreOrganization.identifier.value | VNCoreDocumentReference.custodian.resolve().identifier.value" ]
     ] [
       fhir:name [ fhir:v "gioiThieuCua" ] ;
       fhir:source ( [
         fhir:context [ fhir:v "sourceBundle" ] ;
         fhir:min [ fhir:v 0 ] ;
         fhir:max [ fhir:v "*" ] ;
         fhir:element [ fhir:v "entry" ] ;
         fhir:variable [ fhir:v "gioiThieuCuaSource" ]
       ] ) ;
       fhir:target ( [
         fhir:context [ fhir:v "targetRow" ] ;
         fhir:contextType [ fhir:v "variable" ] ;
         fhir:element [ fhir:v "gioiThieuCua" ]
       ] ) ;
       fhir:documentation [ fhir:v "Target field: GIOI_THIEU_CUA - Giới thiệu của FHIR path: VNCoreDocumentReference.relatesTo.target.display | VNCoreServiceRequest.requester.display" ]
     ] [
       fhir:name [ fhir:v "soVanBanCanCu" ] ;
       fhir:source ( [
         fhir:context [ fhir:v "sourceBundle" ] ;
         fhir:min [ fhir:v 0 ] ;
         fhir:max [ fhir:v "*" ] ;
         fhir:element [ fhir:v "entry" ] ;
         fhir:variable [ fhir:v "soVanBanCanCuSource" ]
       ] ) ;
       fhir:target ( [
         fhir:context [ fhir:v "targetRow" ] ;
         fhir:contextType [ fhir:v "variable" ] ;
         fhir:element [ fhir:v "soVanBanCanCu" ]
       ] ) ;
       fhir:documentation [ fhir:v "Target field: SO_VAN_BAN_CAN_CU - Số văn bản căn cứ FHIR path: VNCoreDocumentReference.identifier.value | VNCoreComposition.identifier.value" ]
     ] [
       fhir:name [ fhir:v "tyleTtctMoi" ] ;
       fhir:source ( [
         fhir:context [ fhir:v "sourceBundle" ] ;
         fhir:min [ fhir:v 0 ] ;
         fhir:max [ fhir:v "*" ] ;
         fhir:element [ fhir:v "entry" ] ;
         fhir:variable [ fhir:v "tyleTtctMoiSource" ]
       ] ) ;
       fhir:target ( [
         fhir:context [ fhir:v "targetRow" ] ;
         fhir:contextType [ fhir:v "variable" ] ;
         fhir:element [ fhir:v "tyleTtctMoi" ]
       ] ) ;
       fhir:documentation [ fhir:v "Target field: TYLE_TTCT_MOI - Tỷ lệ tổn thương cơ thể mới FHIR path: VNCoreObservation.valueQuantity" ]
     ] [
       fhir:name [ fhir:v "tongTyleTtct" ] ;
       fhir:source ( [
         fhir:context [ fhir:v "sourceBundle" ] ;
         fhir:min [ fhir:v 0 ] ;
         fhir:max [ fhir:v "*" ] ;
         fhir:element [ fhir:v "entry" ] ;
         fhir:variable [ fhir:v "tongTyleTtctSource" ]
       ] ) ;
       fhir:target ( [
         fhir:context [ fhir:v "targetRow" ] ;
         fhir:contextType [ fhir:v "variable" ] ;
         fhir:element [ fhir:v "tongTyleTtct" ]
       ] ) ;
       fhir:documentation [ fhir:v "Target field: TONG_TYLE_TTCT - Tổng tỷ lệ tổn thương cơ thể FHIR path: VNCoreObservation.valueQuantity" ]
     ] )
  ] ) . # 

# -------------------------------------------------------------------------------------

