@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-xml1-summary> a fhir:StructureMap ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:id [ fhir:v "vn-sm-bhyt-xml1-summary"] ; # 
  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-xml1-summary</b></p><a name=\"vn-sm-bhyt-xml1-summary\"> </a><a name=\"hcvn-sm-bhyt-xml1-summary\"> </a><pre class=\"fml\">#xD;\n<b>map</b><span style=\"color: navy\"> \"</span>http://fhir.hl7.org.vn/core/StructureMap/vn-sm-bhyt-xml1-summary<span style=\"color: navy\">\" = \"</span>BHYTXML1SummaryLMStructureMap<span style=\"color: navy\">\"#xD;\n#xD;\n</span><span style=\"color: navy\">// </span><span style=\"color: green\">Generated StructureMap scaffold for Bảng 1 tổng hợp KCB BHYT — Logical Model. Source semantics come from the logical model mapping annotations in `BHYTXML1SummaryLM.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-bhytXml1SummaryLm.html\" title=\"Bảng 1 tổng hợp KCB BHYT — Logical Model\">http://fhir.hl7.org.vn/core/StructureDefinition/bhytXml1SummaryLm</a><span style=\"color: navy\">\" </span><b>alias </b>BHYTXML1SummaryLM <b>as </b><b>target</b> <span style=\"color: navy\">// </span><span style=\"color: green\">Bảng 1 tổng hợp KCB BHYT — Logical Model</span>#xD;\n#xD;\n<span style=\"color: navy\">// </span><span style=\"color: green\">Full QD 3176 XML1 field catalog. StructureMap/export rules must preserve source field names and financial semantics. 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>MapBHYTXML1SummaryLM<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>BHYTXML1SummaryLM<span style=\"color: navy\">)</span><span style=\"color: navy\"> {#xD;\n</span>  sourceBundle.entry<b> as </b><span style=\"color: maroon\">maLkSource</span><span style=\"color: navy\"><b> -&gt; </b></span>targetRow.maLk <i>\"maLk\"</i><span style=\"color: navy\">;</span> <span style=\"color: navy\">// </span><span style=\"color: green\">Target field: MA_LK - Mã liên kết hồ sơ FHIR path: VNCoreClaim.identifier[MALK].value</span>#xD;\n  sourceBundle.entry<b> as </b><span style=\"color: maroon\">sttSource</span><span style=\"color: navy\"><b> -&gt; </b></span>targetRow.stt <i>\"stt\"</i><span style=\"color: navy\">;</span> <span style=\"color: navy\">// </span><span style=\"color: green\">Target field: STT - Số thứ tự FHIR path: Derived export row order</span>#xD;\n  sourceBundle.entry<b> as </b><span style=\"color: maroon\">maBnSource</span><span style=\"color: navy\"><b> -&gt; </b></span>targetRow.maBn <i>\"maBn\"</i><span style=\"color: navy\">;</span> <span style=\"color: navy\">// </span><span style=\"color: green\">Target field: MA_BN - Mã người bệnh tại cơ sở FHIR path: VNCorePatient.identifier[MRN].value</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 bệnh FHIR path: VNCorePatient.name.text</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\">gioiTinhSource</span><span style=\"color: navy\"><b> -&gt; </b></span>targetRow.gioiTinh <i>\"gioiTinh\"</i><span style=\"color: navy\">;</span> <span style=\"color: navy\">// </span><span style=\"color: green\">Target field: GIOI_TINH - Giới tính FHIR path: VNCorePatient.gender</span>#xD;\n  sourceBundle.entry<b> as </b><span style=\"color: maroon\">maQuocTichSource</span><span style=\"color: navy\"><b> -&gt; </b></span>targetRow.maQuocTich <i>\"maQuocTich\"</i><span style=\"color: navy\">;</span> <span style=\"color: navy\">// </span><span style=\"color: green\">Target field: MA_QUOCTICH - Mã quốc tịch FHIR path: VNCorePatient.extension[nationality].valueCodeableConcept.coding.code</span>#xD;\n  sourceBundle.entry<b> as </b><span style=\"color: maroon\">maDanTocSource</span><span style=\"color: navy\"><b> -&gt; </b></span>targetRow.maDanToc <i>\"maDanToc\"</i><span style=\"color: navy\">;</span> <span style=\"color: navy\">// </span><span style=\"color: green\">Target field: MA_DANTOC - Mã dân tộc FHIR path: VNCorePatient.extension[ethnicity].valueCodeableConcept.coding.code</span>#xD;\n  sourceBundle.entry<b> as </b><span style=\"color: maroon\">maNgheNghiepSource</span><span style=\"color: navy\"><b> -&gt; </b></span>targetRow.maNgheNghiep <i>\"maNgheNghiep\"</i><span style=\"color: navy\">;</span> <span style=\"color: navy\">// </span><span style=\"color: green\">Target field: MA_NGHE_NGHIEP - Mã nghề nghiệp FHIR path: VNCorePatient.extension[occupation].valueCodeableConcept.coding.code</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].valueCodeableConcept.coding.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].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 - Số điện thoại FHIR path: VNCorePatient.telecom.where(system='phone').value</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 | VNCorePatient.identifier[BHYT].value Mapping note: OHP/QD3176 export validator permits up to 2 BHYT card values; map repeated cards to focal/supplemental Coverage entries.</span>#xD;\n  sourceBundle.entry<b> as </b><span style=\"color: maroon\">maDkbdSource</span><span style=\"color: navy\"><b> -&gt; </b></span>targetRow.maDkbd <i>\"maDkbd\"</i><span style=\"color: navy\">;</span> <span style=\"color: navy\">// </span><span style=\"color: green\">Target field: MA_DKBD - Mã nơi đăng ký KCB ban đầu FHIR path: VNCoreCoverage.extension[primaryCareFacility].valueReference.identifier.value Mapping note: OHP/QD3176 export validator permits up to 2 values aligned with multiple BHYT cards; this remains the registered primary care facility, not MA_CSKCB.</span>#xD;\n  sourceBundle.entry<b> as </b><span style=\"color: maroon\">gtTheTuSource</span><span style=\"color: navy\"><b> -&gt; </b></span>targetRow.gtTheTu <i>\"gtTheTu\"</i><span style=\"color: navy\">;</span> <span style=\"color: navy\">// </span><span style=\"color: green\">Target field: GT_THE_TU - Giá trị thẻ từ ngày FHIR path: VNCoreCoverage.period.start Mapping note: OHP/QD3176 export validator permits up to 2 values aligned with multiple BHYT cards.</span>#xD;\n  sourceBundle.entry<b> as </b><span style=\"color: maroon\">gtTheDenSource</span><span style=\"color: navy\"><b> -&gt; </b></span>targetRow.gtTheDen <i>\"gtTheDen\"</i><span style=\"color: navy\">;</span> <span style=\"color: navy\">// </span><span style=\"color: green\">Target field: GT_THE_DEN - Giá trị thẻ đến ngày FHIR path: VNCoreCoverage.period.end Mapping note: OHP/QD3176 export validator permits up to 2 values aligned with multiple BHYT cards.</span>#xD;\n  sourceBundle.entry<b> as </b><span style=\"color: maroon\">lyDoVvSource</span><span style=\"color: navy\"><b> -&gt; </b></span>targetRow.lyDoVv <i>\"lyDoVv\"</i><span style=\"color: navy\">;</span> <span style=\"color: navy\">// </span><span style=\"color: green\">Target field: LY_DO_VV - Lý do vào viện FHIR path: VNCoreEncounter.reasonCode | VNCoreEncounter.reasonReference.resolve().code</span>#xD;\n  sourceBundle.entry<b> as </b><span style=\"color: maroon\">lyDoVntSource</span><span style=\"color: navy\"><b> -&gt; </b></span>targetRow.lyDoVnt <i>\"lyDoVnt\"</i><span style=\"color: navy\">;</span> <span style=\"color: navy\">// </span><span style=\"color: green\">Target field: LY_DO_VNT - Lý do vào nội trú FHIR path: VNCoreEncounter.hospitalization.admitSource | VNCoreEncounter.reasonCode Mapping note: Conditionally required for selected inpatient/day-treatment MA_LOAI_KCB values.</span>#xD;\n  sourceBundle.entry<b> as </b><span style=\"color: maroon\">maLyDoVntSource</span><span style=\"color: navy\"><b> -&gt; </b></span>targetRow.maLyDoVnt <i>\"maLyDoVnt\"</i><span style=\"color: navy\">;</span> <span style=\"color: navy\">// </span><span style=\"color: green\">Target field: MA_LY_DO_VNT - Mã lý do vào nội trú FHIR path: VNCoreEncounter.hospitalization.admitSource.coding.code</span>#xD;\n  sourceBundle.entry<b> as </b><span style=\"color: maroon\">chanDoanVaoSource</span><span style=\"color: navy\"><b> -&gt; </b></span>targetRow.chanDoanVao <i>\"chanDoanVao\"</i><span style=\"color: navy\">;</span> <span style=\"color: navy\">// </span><span style=\"color: green\">Target field: CHAN_DOAN_VAO - Chẩn đoán vào viện FHIR path: VNCoreEncounter.reasonCode | VNCoreComposition.section[chiefComplaint].text</span>#xD;\n  sourceBundle.entry<b> as </b><span style=\"color: maroon\">chanDoanRvSource</span><span style=\"color: navy\"><b> -&gt; </b></span>targetRow.chanDoanRv <i>\"chanDoanRv\"</i><span style=\"color: navy\">;</span> <span style=\"color: navy\">// </span><span style=\"color: green\">Target field: CHAN_DOAN_RV - Chẩn đoán ra viện FHIR path: VNCoreCondition.code.text | VNCoreComposition.section[diagnosis].text</span>#xD;\n  sourceBundle.entry<b> as </b><span style=\"color: maroon\">maBenhChinhSource</span><span style=\"color: navy\"><b> -&gt; </b></span>targetRow.maBenhChinh <i>\"maBenhChinh\"</i><span style=\"color: navy\">;</span> <span style=\"color: navy\">// </span><span style=\"color: green\">Target field: MA_BENH_CHINH - Mã bệnh chính FHIR path: VNCoreClaim.diagnosis.where(type='principal').diagnosisCodeableConcept | VNCoreCondition.code</span>#xD;\n  sourceBundle.entry<b> as </b><span style=\"color: maroon\">maBenhKtSource</span><span style=\"color: navy\"><b> -&gt; </b></span>targetRow.maBenhKt <i>\"maBenhKt\"</i><span style=\"color: navy\">;</span> <span style=\"color: navy\">// </span><span style=\"color: green\">Target field: MA_BENH_KT - Mã bệnh kèm theo FHIR path: VNCoreClaim.diagnosis.where(type!='principal').diagnosisCodeableConcept | VNCoreCondition.code</span>#xD;\n  sourceBundle.entry<b> as </b><span style=\"color: maroon\">maBenhYhctSource</span><span style=\"color: navy\"><b> -&gt; </b></span>targetRow.maBenhYhct <i>\"maBenhYhct\"</i><span style=\"color: navy\">;</span> <span style=\"color: navy\">// </span><span style=\"color: green\">Target field: MA_BENH_YHCT - Mã bệnh y học cổ truyền FHIR path: VNCoreClaim.diagnosis.diagnosisCodeableConcept.coding[yhct].code | VNCoreCondition.code.coding[yhct].code</span>#xD;\n  sourceBundle.entry<b> as </b><span style=\"color: maroon\">maPtttQtSource</span><span style=\"color: navy\"><b> -&gt; </b></span>targetRow.maPtttQt <i>\"maPtttQt\"</i><span style=\"color: navy\">;</span> <span style=\"color: navy\">// </span><span style=\"color: green\">Target field: MA_PTTT_QT - Mã phương thức thanh toán FHIR path: VNCoreClaim.extension[paymentMethod].valueCodeableConcept.coding.code</span>#xD;\n  sourceBundle.entry<b> as </b><span style=\"color: maroon\">maDoituongKcbSource</span><span style=\"color: navy\"><b> -&gt; </b></span>targetRow.maDoituongKcb <i>\"maDoituongKcb\"</i><span style=\"color: navy\">;</span> <span style=\"color: navy\">// </span><span style=\"color: green\">Target field: MA_DOITUONG_KCB - Mã đối tượng đến KCB FHIR path: VNCoreClaim.subType Mapping note: Do not map to Coverage.extension[bhytCardType]; this is visit classification, not the insured/card group.</span>#xD;\n  sourceBundle.entry<b> as </b><span style=\"color: maroon\">maNoiDiSource</span><span style=\"color: navy\"><b> -&gt; </b></span>targetRow.maNoiDi <i>\"maNoiDi\"</i><span style=\"color: navy\">;</span> <span style=\"color: navy\">// </span><span style=\"color: green\">Target field: MA_NOI_DI - Mã nơi đi FHIR path: VNCoreEncounter.hospitalization.origin.resolve().identifier[CSKCB].value</span>#xD;\n  sourceBundle.entry<b> as </b><span style=\"color: maroon\">maNoiDenSource</span><span style=\"color: navy\"><b> -&gt; </b></span>targetRow.maNoiDen <i>\"maNoiDen\"</i><span style=\"color: navy\">;</span> <span style=\"color: navy\">// </span><span style=\"color: green\">Target field: MA_NOI_DEN - Mã nơi đến FHIR path: VNCoreEncounter.hospitalization.destination.resolve().identifier[CSKCB].value</span>#xD;\n  sourceBundle.entry<b> as </b><span style=\"color: maroon\">maTaiNanSource</span><span style=\"color: navy\"><b> -&gt; </b></span>targetRow.maTaiNan <i>\"maTaiNan\"</i><span style=\"color: navy\">;</span> <span style=\"color: navy\">// </span><span style=\"color: green\">Target field: MA_TAI_NAN - Mã tai nạn FHIR path: VNCoreClaim.accident.type</span>#xD;\n  sourceBundle.entry<b> as </b><span style=\"color: maroon\">ngayVaoSource</span><span style=\"color: navy\"><b> -&gt; </b></span>targetRow.ngayVao <i>\"ngayVao\"</i><span style=\"color: navy\">;</span> <span style=\"color: navy\">// </span><span style=\"color: green\">Target field: NGAY_VAO - Ngày vào theo định dạng yyyyMMddHHmm FHIR path: VNCoreEncounter.period.start | VNCoreClaim.created</span>#xD;\n  sourceBundle.entry<b> as </b><span style=\"color: maroon\">ngayVaoNoiTruSource</span><span style=\"color: navy\"><b> -&gt; </b></span>targetRow.ngayVaoNoiTru <i>\"ngayVaoNoiTru\"</i><span style=\"color: navy\">;</span> <span style=\"color: navy\">// </span><span style=\"color: green\">Target field: NGAY_VAO_NOI_TRU - Ngày vào nội trú FHIR path: VNCoreEncounter.hospitalization | future admission instant extension</span>#xD;\n  sourceBundle.entry<b> as </b><span style=\"color: maroon\">ngayRaSource</span><span style=\"color: navy\"><b> -&gt; </b></span>targetRow.ngayRa <i>\"ngayRa\"</i><span style=\"color: navy\">;</span> <span style=\"color: navy\">// </span><span style=\"color: green\">Target field: NGAY_RA - Ngày ra theo định dạng yyyyMMddHHmm FHIR path: VNCoreEncounter.period.end | VNCoreClaim.created</span>#xD;\n  sourceBundle.entry<b> as </b><span style=\"color: maroon\">soNgayDtriSource</span><span style=\"color: navy\"><b> -&gt; </b></span>targetRow.soNgayDtri <i>\"soNgayDtri\"</i><span style=\"color: navy\">;</span> <span style=\"color: navy\">// </span><span style=\"color: green\">Target field: SO_NGAY_DTRI - Số ngày điều trị FHIR path: Derived from VNCoreEncounter.period.start/end | VNCoreEncounter.length.value</span>#xD;\n  sourceBundle.entry<b> as </b><span style=\"color: maroon\">ketQuaDtriSource</span><span style=\"color: navy\"><b> -&gt; </b></span>targetRow.ketQuaDtri <i>\"ketQuaDtri\"</i><span style=\"color: navy\">;</span> <span style=\"color: navy\">// </span><span style=\"color: green\">Target field: KET_QUA_DTRI - Kết quả điều trị FHIR path: VNCoreEncounter.extension[treatmentOutcome].valueCodeableConcept</span>#xD;\n  sourceBundle.entry<b> as </b><span style=\"color: maroon\">maLoaiRvSource</span><span style=\"color: navy\"><b> -&gt; </b></span>targetRow.maLoaiRv <i>\"maLoaiRv\"</i><span style=\"color: navy\">;</span> <span style=\"color: navy\">// </span><span style=\"color: green\">Target field: MA_LOAI_RV - Mã loại ra viện FHIR path: VNCoreEncounter.hospitalization.dischargeDisposition</span>#xD;\n  sourceBundle.entry<b> as </b><span style=\"color: maroon\">ngayTtoanSource</span><span style=\"color: navy\"><b> -&gt; </b></span>targetRow.ngayTtoan <i>\"ngayTtoan\"</i><span style=\"color: navy\">;</span> <span style=\"color: navy\">// </span><span style=\"color: green\">Target field: NGAY_TTOAN - Ngày thanh toán FHIR path: VNCoreExplanationOfBenefit.created | VNCoreClaimResponse.created</span>#xD;\n  sourceBundle.entry<b> as </b><span style=\"color: maroon\">tThuocSource</span><span style=\"color: navy\"><b> -&gt; </b></span>targetRow.tThuoc <i>\"tThuoc\"</i><span style=\"color: navy\">;</span> <span style=\"color: navy\">// </span><span style=\"color: green\">Target field: T_THUOC - Tổng tiền thuốc FHIR path: VNCoreClaim.extension[costSummary].extension[totalMedication].valueMoney.value | VNCoreExplanationOfBenefit.extension[costSummary].extension[totalMedication].valueMoney.value</span>#xD;\n  sourceBundle.entry<b> as </b><span style=\"color: maroon\">tVtytSource</span><span style=\"color: navy\"><b> -&gt; </b></span>targetRow.tVtyt <i>\"tVtyt\"</i><span style=\"color: navy\">;</span> <span style=\"color: navy\">// </span><span style=\"color: green\">Target field: T_VTYT - Tổng tiền vật tư y tế FHIR path: VNCoreClaim.extension[costSummary].extension[totalSupplies].valueMoney.value | VNCoreExplanationOfBenefit.extension[costSummary].extension[totalSupplies].valueMoney.value</span>#xD;\n  sourceBundle.entry<b> as </b><span style=\"color: maroon\">tTongchiBvSource</span><span style=\"color: navy\"><b> -&gt; </b></span>targetRow.tTongchiBv <i>\"tTongchiBv\"</i><span style=\"color: navy\">;</span> <span style=\"color: navy\">// </span><span style=\"color: green\">Target field: T_TONGCHI_BV - Tổng chi phí bệnh viện FHIR path: VNCoreClaim.total.value | VNCoreExplanationOfBenefit.total.amount</span>#xD;\n  sourceBundle.entry<b> as </b><span style=\"color: maroon\">tTongchiBhSource</span><span style=\"color: navy\"><b> -&gt; </b></span>targetRow.tTongchiBh <i>\"tTongchiBh\"</i><span style=\"color: navy\">;</span> <span style=\"color: navy\">// </span><span style=\"color: green\">Target field: T_TONGCHI_BH - Tổng chi phí thuộc phạm vi BHYT FHIR path: VNCoreExplanationOfBenefit.total.where(category='eligible').amount.value | VNCoreClaimResponse.total.where(category='eligible').amount.value</span>#xD;\n  sourceBundle.entry<b> as </b><span style=\"color: maroon\">tBnttSource</span><span style=\"color: navy\"><b> -&gt; </b></span>targetRow.tBntt <i>\"tBntt\"</i><span style=\"color: navy\">;</span> <span style=\"color: navy\">// </span><span style=\"color: green\">Target field: T_BNTT - Người bệnh tự trả FHIR path: VNCoreClaim.extension[costSummary].extension[totalPatientSelfPay].valueMoney.value | Derived from VNCoreClaimResponse.total.where(category='submitted').amount - .where(category='eligible').amount</span>#xD;\n  sourceBundle.entry<b> as </b><span style=\"color: maroon\">tBncctSource</span><span style=\"color: navy\"><b> -&gt; </b></span>targetRow.tBncct <i>\"tBncct\"</i><span style=\"color: navy\">;</span> <span style=\"color: navy\">// </span><span style=\"color: green\">Target field: T_BNCCT - Người bệnh cùng chi trả FHIR path: VNCoreClaim.extension[costSummary].extension[totalPatientCopay].valueMoney.value | VNCoreClaimResponse.total.where(category='copay').amount.value | VNCoreExplanationOfBenefit.total.where(category='copay').amount.value</span>#xD;\n  sourceBundle.entry<b> as </b><span style=\"color: maroon\">tBhttSource</span><span style=\"color: navy\"><b> -&gt; </b></span>targetRow.tBhtt <i>\"tBhtt\"</i><span style=\"color: navy\">;</span> <span style=\"color: navy\">// </span><span style=\"color: green\">Target field: T_BHTT - Quỹ BHYT thanh toán FHIR path: VNCoreClaim.extension[costSummary].extension[totalInsurance].valueMoney.value | VNCoreClaimResponse.total.where(category='benefit').amount.value | VNCoreExplanationOfBenefit.total.where(category='benefit').amount.value</span>#xD;\n  sourceBundle.entry<b> as </b><span style=\"color: maroon\">tNguonkhacSource</span><span style=\"color: navy\"><b> -&gt; </b></span>targetRow.tNguonkhac <i>\"tNguonkhac\"</i><span style=\"color: navy\">;</span> <span style=\"color: navy\">// </span><span style=\"color: green\">Target field: T_NGUONKHAC - Nguồn khác FHIR path: VNCoreClaim.extension[costSummary].extension[totalOtherFund].valueMoney.value | VNCoreExplanationOfBenefit.extension[costSummary].extension[totalOtherFund].valueMoney.value</span>#xD;\n  sourceBundle.entry<b> as </b><span style=\"color: maroon\">namQtSource</span><span style=\"color: navy\"><b> -&gt; </b></span>targetRow.namQt <i>\"namQt\"</i><span style=\"color: navy\">;</span> <span style=\"color: navy\">// </span><span style=\"color: green\">Target field: NAM_QT - Năm quyết toán FHIR path: VNCoreClaim.extension[paymentPeriod].extension[year]</span>#xD;\n  sourceBundle.entry<b> as </b><span style=\"color: maroon\">thangQtSource</span><span style=\"color: navy\"><b> -&gt; </b></span>targetRow.thangQt <i>\"thangQt\"</i><span style=\"color: navy\">;</span> <span style=\"color: navy\">// </span><span style=\"color: green\">Target field: THANG_QT - Tháng quyết toán FHIR path: VNCoreClaim.extension[paymentPeriod].extension[month]</span>#xD;\n  sourceBundle.entry<b> as </b><span style=\"color: maroon\">maLoaiKcbSource</span><span style=\"color: navy\"><b> -&gt; </b></span>targetRow.maLoaiKcb <i>\"maLoaiKcb\"</i><span style=\"color: navy\">;</span> <span style=\"color: navy\">// </span><span style=\"color: green\">Target field: MA_LOAI_KCB - Mã loại khám chữa bệnh FHIR path: VNCoreEncounter.type</span>#xD;\n  sourceBundle.entry<b> as </b><span style=\"color: maroon\">maKhoaSource</span><span style=\"color: navy\"><b> -&gt; </b></span>targetRow.maKhoa <i>\"maKhoa\"</i><span style=\"color: navy\">;</span> <span style=\"color: navy\">// </span><span style=\"color: green\">Target field: MA_KHOA - Mã khoa FHIR path: VNCoreClaim.item.extension[department].valueCodeableConcept.coding.code | VNCoreEncounter.serviceType</span>#xD;\n  sourceBundle.entry<b> as </b><span style=\"color: maroon\">maCskcbSource</span><span style=\"color: navy\"><b> -&gt; </b></span>targetRow.maCskcb <i>\"maCskcb\"</i><span style=\"color: navy\">;</span> <span style=\"color: navy\">// </span><span style=\"color: green\">Target field: MA_CSKCB - Mã cơ sở khám chữa bệnh FHIR path: VNCoreEncounter.serviceProvider.resolve().identifier[CSKCB].value | VNCoreClaim.provider.resolve().identifier[CSKCB].value Mapping note: Actual visit/submission provider. Do not fall back to MA_DKBD on Coverage.</span>#xD;\n  sourceBundle.entry<b> as </b><span style=\"color: maroon\">canNangSource</span><span style=\"color: navy\"><b> -&gt; </b></span>targetRow.canNang <i>\"canNang\"</i><span style=\"color: navy\">;</span> <span style=\"color: navy\">// </span><span style=\"color: green\">Target field: CAN_NANG - Cân nặng FHIR path: VNCoreObservationBodyWeight.valueQuantity.value</span>#xD;\n  sourceBundle.entry<b> as </b><span style=\"color: maroon\">ngayTaiKhamSource</span><span style=\"color: navy\"><b> -&gt; </b></span>targetRow.ngayTaiKham <i>\"ngayTaiKham\"</i><span style=\"color: navy\">;</span> <span style=\"color: navy\">// </span><span style=\"color: green\">Target field: NGAY_TAI_KHAM - Ngày tái khám FHIR path: VNCoreServiceRequest.occurrenceDateTime | Appointment.start</span>#xD;\n  sourceBundle.entry<b> as </b><span style=\"color: maroon\">maHsbaSource</span><span style=\"color: navy\"><b> -&gt; </b></span>targetRow.maHsba <i>\"maHsba\"</i><span style=\"color: navy\">;</span> <span style=\"color: navy\">// </span><span style=\"color: green\">Target field: MA_HSBA - Mã hồ sơ bệnh án FHIR path: VNCoreComposition.identifier.value | VNCoreDocumentReference.identifier.value</span>#xD;\n  sourceBundle.entry<b> as </b><span style=\"color: maroon\">maTtdvSource</span><span style=\"color: navy\"><b> -&gt; </b></span>targetRow.maTtdv <i>\"maTtdv\"</i><span style=\"color: navy\">;</span> <span style=\"color: navy\">// </span><span style=\"color: green\">Target field: MA_TTDV - Mã thủ trưởng đơn vị/người ký FHIR path: VNCoreComposition.author.resolve().identifier.value | VNCoreDocumentReference.author.resolve().identifier.value | VNCoreProvenance.signature.who.resolve().identifier.value</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-xml1-summary"^^xsd:anyURI ;
     fhir:l <http://fhir.hl7.org.vn/core/StructureMap/vn-sm-bhyt-xml1-summary>
  ] ; # 
  fhir:version [ fhir:v "0.5.0"] ; # 
  fhir:name [ fhir:v "BHYTXML1SummaryLMStructureMap"] ; # 
  fhir:title [ fhir:v "Bảng 1 tổng hợp KCB BHYT — 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 1 tổng hợp KCB BHYT — Logical Model. Source semantics come from the logical model mapping annotations in `BHYTXML1SummaryLM.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/bhytXml1SummaryLm"^^xsd:anyURI ;
       fhir:l <http://fhir.hl7.org.vn/core/StructureDefinition/bhytXml1SummaryLm>
     ] ;
     fhir:mode [ fhir:v "target" ] ;
     fhir:alias [ fhir:v "BHYTXML1SummaryLM" ] ;
     fhir:documentation [ fhir:v "Bảng 1 tổng hợp KCB BHYT — Logical Model" ]
  ] ) ; # 
  fhir:group ( [
     fhir:name [ fhir:v "MapBHYTXML1SummaryLM" ] ;
     fhir:typeMode [ fhir:v "none" ] ;
     fhir:documentation [ fhir:v "Full QD 3176 XML1 field catalog. StructureMap/export rules must preserve source field names and financial semantics. 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 "BHYTXML1SummaryLM" ] ;
       fhir:mode [ fhir:v "target" ] ;
       fhir:documentation [ fhir:v "Bảng 1 tổng hợp KCB BHYT — Logical Model" ]
     ] ) ;
     fhir:rule ( [
       fhir:name [ fhir:v "maLk" ] ;
       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 "maLkSource" ]
       ] ) ;
       fhir:target ( [
         fhir:context [ fhir:v "targetRow" ] ;
         fhir:contextType [ fhir:v "variable" ] ;
         fhir:element [ fhir:v "maLk" ]
       ] ) ;
       fhir:documentation [ fhir:v "Target field: MA_LK - Mã liên kết hồ sơ FHIR path: VNCoreClaim.identifier[MALK].value" ]
     ] [
       fhir:name [ fhir:v "stt" ] ;
       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 "sttSource" ]
       ] ) ;
       fhir:target ( [
         fhir:context [ fhir:v "targetRow" ] ;
         fhir:contextType [ fhir:v "variable" ] ;
         fhir:element [ fhir:v "stt" ]
       ] ) ;
       fhir:documentation [ fhir:v "Target field: STT - Số thứ tự FHIR path: Derived export row order" ]
     ] [
       fhir:name [ fhir:v "maBn" ] ;
       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 "maBnSource" ]
       ] ) ;
       fhir:target ( [
         fhir:context [ fhir:v "targetRow" ] ;
         fhir:contextType [ fhir:v "variable" ] ;
         fhir:element [ fhir:v "maBn" ]
       ] ) ;
       fhir:documentation [ fhir:v "Target field: MA_BN - Mã người bệnh tại cơ sở FHIR path: VNCorePatient.identifier[MRN].value" ]
     ] [
       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 bệnh FHIR path: VNCorePatient.name.text" ]
     ] [
       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 "gioiTinh" ] ;
       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 "gioiTinhSource" ]
       ] ) ;
       fhir:target ( [
         fhir:context [ fhir:v "targetRow" ] ;
         fhir:contextType [ fhir:v "variable" ] ;
         fhir:element [ fhir:v "gioiTinh" ]
       ] ) ;
       fhir:documentation [ fhir:v "Target field: GIOI_TINH - Giới tính FHIR path: VNCorePatient.gender" ]
     ] [
       fhir:name [ fhir:v "maQuocTich" ] ;
       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 "maQuocTichSource" ]
       ] ) ;
       fhir:target ( [
         fhir:context [ fhir:v "targetRow" ] ;
         fhir:contextType [ fhir:v "variable" ] ;
         fhir:element [ fhir:v "maQuocTich" ]
       ] ) ;
       fhir:documentation [ fhir:v "Target field: MA_QUOCTICH - Mã quốc tịch FHIR path: VNCorePatient.extension[nationality].valueCodeableConcept.coding.code" ]
     ] [
       fhir:name [ fhir:v "maDanToc" ] ;
       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 "maDanTocSource" ]
       ] ) ;
       fhir:target ( [
         fhir:context [ fhir:v "targetRow" ] ;
         fhir:contextType [ fhir:v "variable" ] ;
         fhir:element [ fhir:v "maDanToc" ]
       ] ) ;
       fhir:documentation [ fhir:v "Target field: MA_DANTOC - Mã dân tộc FHIR path: VNCorePatient.extension[ethnicity].valueCodeableConcept.coding.code" ]
     ] [
       fhir:name [ fhir:v "maNgheNghiep" ] ;
       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 "maNgheNghiepSource" ]
       ] ) ;
       fhir:target ( [
         fhir:context [ fhir:v "targetRow" ] ;
         fhir:contextType [ fhir:v "variable" ] ;
         fhir:element [ fhir:v "maNgheNghiep" ]
       ] ) ;
       fhir:documentation [ fhir:v "Target field: MA_NGHE_NGHIEP - Mã nghề nghiệp FHIR path: VNCorePatient.extension[occupation].valueCodeableConcept.coding.code" ]
     ] [
       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].valueCodeableConcept.coding.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].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 - Số điện thoại FHIR path: VNCorePatient.telecom.where(system='phone').value" ]
     ] [
       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 | VNCorePatient.identifier[BHYT].value Mapping note: OHP/QD3176 export validator permits up to 2 BHYT card values; map repeated cards to focal/supplemental Coverage entries." ]
     ] [
       fhir:name [ fhir:v "maDkbd" ] ;
       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 "maDkbdSource" ]
       ] ) ;
       fhir:target ( [
         fhir:context [ fhir:v "targetRow" ] ;
         fhir:contextType [ fhir:v "variable" ] ;
         fhir:element [ fhir:v "maDkbd" ]
       ] ) ;
       fhir:documentation [ fhir:v "Target field: MA_DKBD - Mã nơi đăng ký KCB ban đầu FHIR path: VNCoreCoverage.extension[primaryCareFacility].valueReference.identifier.value Mapping note: OHP/QD3176 export validator permits up to 2 values aligned with multiple BHYT cards; this remains the registered primary care facility, not MA_CSKCB." ]
     ] [
       fhir:name [ fhir:v "gtTheTu" ] ;
       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 "gtTheTuSource" ]
       ] ) ;
       fhir:target ( [
         fhir:context [ fhir:v "targetRow" ] ;
         fhir:contextType [ fhir:v "variable" ] ;
         fhir:element [ fhir:v "gtTheTu" ]
       ] ) ;
       fhir:documentation [ fhir:v "Target field: GT_THE_TU - Giá trị thẻ từ ngày FHIR path: VNCoreCoverage.period.start Mapping note: OHP/QD3176 export validator permits up to 2 values aligned with multiple BHYT cards." ]
     ] [
       fhir:name [ fhir:v "gtTheDen" ] ;
       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 "gtTheDenSource" ]
       ] ) ;
       fhir:target ( [
         fhir:context [ fhir:v "targetRow" ] ;
         fhir:contextType [ fhir:v "variable" ] ;
         fhir:element [ fhir:v "gtTheDen" ]
       ] ) ;
       fhir:documentation [ fhir:v "Target field: GT_THE_DEN - Giá trị thẻ đến ngày FHIR path: VNCoreCoverage.period.end Mapping note: OHP/QD3176 export validator permits up to 2 values aligned with multiple BHYT cards." ]
     ] [
       fhir:name [ fhir:v "lyDoVv" ] ;
       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 "lyDoVvSource" ]
       ] ) ;
       fhir:target ( [
         fhir:context [ fhir:v "targetRow" ] ;
         fhir:contextType [ fhir:v "variable" ] ;
         fhir:element [ fhir:v "lyDoVv" ]
       ] ) ;
       fhir:documentation [ fhir:v "Target field: LY_DO_VV - Lý do vào viện FHIR path: VNCoreEncounter.reasonCode | VNCoreEncounter.reasonReference.resolve().code" ]
     ] [
       fhir:name [ fhir:v "lyDoVnt" ] ;
       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 "lyDoVntSource" ]
       ] ) ;
       fhir:target ( [
         fhir:context [ fhir:v "targetRow" ] ;
         fhir:contextType [ fhir:v "variable" ] ;
         fhir:element [ fhir:v "lyDoVnt" ]
       ] ) ;
       fhir:documentation [ fhir:v "Target field: LY_DO_VNT - Lý do vào nội trú FHIR path: VNCoreEncounter.hospitalization.admitSource | VNCoreEncounter.reasonCode Mapping note: Conditionally required for selected inpatient/day-treatment MA_LOAI_KCB values." ]
     ] [
       fhir:name [ fhir:v "maLyDoVnt" ] ;
       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 "maLyDoVntSource" ]
       ] ) ;
       fhir:target ( [
         fhir:context [ fhir:v "targetRow" ] ;
         fhir:contextType [ fhir:v "variable" ] ;
         fhir:element [ fhir:v "maLyDoVnt" ]
       ] ) ;
       fhir:documentation [ fhir:v "Target field: MA_LY_DO_VNT - Mã lý do vào nội trú FHIR path: VNCoreEncounter.hospitalization.admitSource.coding.code" ]
     ] [
       fhir:name [ fhir:v "chanDoanVao" ] ;
       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 "chanDoanVaoSource" ]
       ] ) ;
       fhir:target ( [
         fhir:context [ fhir:v "targetRow" ] ;
         fhir:contextType [ fhir:v "variable" ] ;
         fhir:element [ fhir:v "chanDoanVao" ]
       ] ) ;
       fhir:documentation [ fhir:v "Target field: CHAN_DOAN_VAO - Chẩn đoán vào viện FHIR path: VNCoreEncounter.reasonCode | VNCoreComposition.section[chiefComplaint].text" ]
     ] [
       fhir:name [ fhir:v "chanDoanRv" ] ;
       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 "chanDoanRvSource" ]
       ] ) ;
       fhir:target ( [
         fhir:context [ fhir:v "targetRow" ] ;
         fhir:contextType [ fhir:v "variable" ] ;
         fhir:element [ fhir:v "chanDoanRv" ]
       ] ) ;
       fhir:documentation [ fhir:v "Target field: CHAN_DOAN_RV - Chẩn đoán ra viện FHIR path: VNCoreCondition.code.text | VNCoreComposition.section[diagnosis].text" ]
     ] [
       fhir:name [ fhir:v "maBenhChinh" ] ;
       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 "maBenhChinhSource" ]
       ] ) ;
       fhir:target ( [
         fhir:context [ fhir:v "targetRow" ] ;
         fhir:contextType [ fhir:v "variable" ] ;
         fhir:element [ fhir:v "maBenhChinh" ]
       ] ) ;
       fhir:documentation [ fhir:v "Target field: MA_BENH_CHINH - Mã bệnh chính FHIR path: VNCoreClaim.diagnosis.where(type='principal').diagnosisCodeableConcept | VNCoreCondition.code" ]
     ] [
       fhir:name [ fhir:v "maBenhKt" ] ;
       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 "maBenhKtSource" ]
       ] ) ;
       fhir:target ( [
         fhir:context [ fhir:v "targetRow" ] ;
         fhir:contextType [ fhir:v "variable" ] ;
         fhir:element [ fhir:v "maBenhKt" ]
       ] ) ;
       fhir:documentation [ fhir:v "Target field: MA_BENH_KT - Mã bệnh kèm theo FHIR path: VNCoreClaim.diagnosis.where(type!='principal').diagnosisCodeableConcept | VNCoreCondition.code" ]
     ] [
       fhir:name [ fhir:v "maBenhYhct" ] ;
       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 "maBenhYhctSource" ]
       ] ) ;
       fhir:target ( [
         fhir:context [ fhir:v "targetRow" ] ;
         fhir:contextType [ fhir:v "variable" ] ;
         fhir:element [ fhir:v "maBenhYhct" ]
       ] ) ;
       fhir:documentation [ fhir:v "Target field: MA_BENH_YHCT - Mã bệnh y học cổ truyền FHIR path: VNCoreClaim.diagnosis.diagnosisCodeableConcept.coding[yhct].code | VNCoreCondition.code.coding[yhct].code" ]
     ] [
       fhir:name [ fhir:v "maPtttQt" ] ;
       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 "maPtttQtSource" ]
       ] ) ;
       fhir:target ( [
         fhir:context [ fhir:v "targetRow" ] ;
         fhir:contextType [ fhir:v "variable" ] ;
         fhir:element [ fhir:v "maPtttQt" ]
       ] ) ;
       fhir:documentation [ fhir:v "Target field: MA_PTTT_QT - Mã phương thức thanh toán FHIR path: VNCoreClaim.extension[paymentMethod].valueCodeableConcept.coding.code" ]
     ] [
       fhir:name [ fhir:v "maDoituongKcb" ] ;
       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 "maDoituongKcbSource" ]
       ] ) ;
       fhir:target ( [
         fhir:context [ fhir:v "targetRow" ] ;
         fhir:contextType [ fhir:v "variable" ] ;
         fhir:element [ fhir:v "maDoituongKcb" ]
       ] ) ;
       fhir:documentation [ fhir:v "Target field: MA_DOITUONG_KCB - Mã đối tượng đến KCB FHIR path: VNCoreClaim.subType Mapping note: Do not map to Coverage.extension[bhytCardType]; this is visit classification, not the insured/card group." ]
     ] [
       fhir:name [ fhir:v "maNoiDi" ] ;
       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 "maNoiDiSource" ]
       ] ) ;
       fhir:target ( [
         fhir:context [ fhir:v "targetRow" ] ;
         fhir:contextType [ fhir:v "variable" ] ;
         fhir:element [ fhir:v "maNoiDi" ]
       ] ) ;
       fhir:documentation [ fhir:v "Target field: MA_NOI_DI - Mã nơi đi FHIR path: VNCoreEncounter.hospitalization.origin.resolve().identifier[CSKCB].value" ]
     ] [
       fhir:name [ fhir:v "maNoiDen" ] ;
       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 "maNoiDenSource" ]
       ] ) ;
       fhir:target ( [
         fhir:context [ fhir:v "targetRow" ] ;
         fhir:contextType [ fhir:v "variable" ] ;
         fhir:element [ fhir:v "maNoiDen" ]
       ] ) ;
       fhir:documentation [ fhir:v "Target field: MA_NOI_DEN - Mã nơi đến FHIR path: VNCoreEncounter.hospitalization.destination.resolve().identifier[CSKCB].value" ]
     ] [
       fhir:name [ fhir:v "maTaiNan" ] ;
       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 "maTaiNanSource" ]
       ] ) ;
       fhir:target ( [
         fhir:context [ fhir:v "targetRow" ] ;
         fhir:contextType [ fhir:v "variable" ] ;
         fhir:element [ fhir:v "maTaiNan" ]
       ] ) ;
       fhir:documentation [ fhir:v "Target field: MA_TAI_NAN - Mã tai nạn FHIR path: VNCoreClaim.accident.type" ]
     ] [
       fhir:name [ fhir:v "ngayVao" ] ;
       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 "ngayVaoSource" ]
       ] ) ;
       fhir:target ( [
         fhir:context [ fhir:v "targetRow" ] ;
         fhir:contextType [ fhir:v "variable" ] ;
         fhir:element [ fhir:v "ngayVao" ]
       ] ) ;
       fhir:documentation [ fhir:v "Target field: NGAY_VAO - Ngày vào theo định dạng yyyyMMddHHmm FHIR path: VNCoreEncounter.period.start | VNCoreClaim.created" ]
     ] [
       fhir:name [ fhir:v "ngayVaoNoiTru" ] ;
       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 "ngayVaoNoiTruSource" ]
       ] ) ;
       fhir:target ( [
         fhir:context [ fhir:v "targetRow" ] ;
         fhir:contextType [ fhir:v "variable" ] ;
         fhir:element [ fhir:v "ngayVaoNoiTru" ]
       ] ) ;
       fhir:documentation [ fhir:v "Target field: NGAY_VAO_NOI_TRU - Ngày vào nội trú FHIR path: VNCoreEncounter.hospitalization | future admission instant extension" ]
     ] [
       fhir:name [ fhir:v "ngayRa" ] ;
       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 "ngayRaSource" ]
       ] ) ;
       fhir:target ( [
         fhir:context [ fhir:v "targetRow" ] ;
         fhir:contextType [ fhir:v "variable" ] ;
         fhir:element [ fhir:v "ngayRa" ]
       ] ) ;
       fhir:documentation [ fhir:v "Target field: NGAY_RA - Ngày ra theo định dạng yyyyMMddHHmm FHIR path: VNCoreEncounter.period.end | VNCoreClaim.created" ]
     ] [
       fhir:name [ fhir:v "soNgayDtri" ] ;
       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 "soNgayDtriSource" ]
       ] ) ;
       fhir:target ( [
         fhir:context [ fhir:v "targetRow" ] ;
         fhir:contextType [ fhir:v "variable" ] ;
         fhir:element [ fhir:v "soNgayDtri" ]
       ] ) ;
       fhir:documentation [ fhir:v "Target field: SO_NGAY_DTRI - Số ngày điều trị FHIR path: Derived from VNCoreEncounter.period.start/end | VNCoreEncounter.length.value" ]
     ] [
       fhir:name [ fhir:v "ketQuaDtri" ] ;
       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 "ketQuaDtriSource" ]
       ] ) ;
       fhir:target ( [
         fhir:context [ fhir:v "targetRow" ] ;
         fhir:contextType [ fhir:v "variable" ] ;
         fhir:element [ fhir:v "ketQuaDtri" ]
       ] ) ;
       fhir:documentation [ fhir:v "Target field: KET_QUA_DTRI - Kết quả điều trị FHIR path: VNCoreEncounter.extension[treatmentOutcome].valueCodeableConcept" ]
     ] [
       fhir:name [ fhir:v "maLoaiRv" ] ;
       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 "maLoaiRvSource" ]
       ] ) ;
       fhir:target ( [
         fhir:context [ fhir:v "targetRow" ] ;
         fhir:contextType [ fhir:v "variable" ] ;
         fhir:element [ fhir:v "maLoaiRv" ]
       ] ) ;
       fhir:documentation [ fhir:v "Target field: MA_LOAI_RV - Mã loại ra viện FHIR path: VNCoreEncounter.hospitalization.dischargeDisposition" ]
     ] [
       fhir:name [ fhir:v "ngayTtoan" ] ;
       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 "ngayTtoanSource" ]
       ] ) ;
       fhir:target ( [
         fhir:context [ fhir:v "targetRow" ] ;
         fhir:contextType [ fhir:v "variable" ] ;
         fhir:element [ fhir:v "ngayTtoan" ]
       ] ) ;
       fhir:documentation [ fhir:v "Target field: NGAY_TTOAN - Ngày thanh toán FHIR path: VNCoreExplanationOfBenefit.created | VNCoreClaimResponse.created" ]
     ] [
       fhir:name [ fhir:v "tThuoc" ] ;
       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 "tThuocSource" ]
       ] ) ;
       fhir:target ( [
         fhir:context [ fhir:v "targetRow" ] ;
         fhir:contextType [ fhir:v "variable" ] ;
         fhir:element [ fhir:v "tThuoc" ]
       ] ) ;
       fhir:documentation [ fhir:v "Target field: T_THUOC - Tổng tiền thuốc FHIR path: VNCoreClaim.extension[costSummary].extension[totalMedication].valueMoney.value | VNCoreExplanationOfBenefit.extension[costSummary].extension[totalMedication].valueMoney.value" ]
     ] [
       fhir:name [ fhir:v "tVtyt" ] ;
       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 "tVtytSource" ]
       ] ) ;
       fhir:target ( [
         fhir:context [ fhir:v "targetRow" ] ;
         fhir:contextType [ fhir:v "variable" ] ;
         fhir:element [ fhir:v "tVtyt" ]
       ] ) ;
       fhir:documentation [ fhir:v "Target field: T_VTYT - Tổng tiền vật tư y tế FHIR path: VNCoreClaim.extension[costSummary].extension[totalSupplies].valueMoney.value | VNCoreExplanationOfBenefit.extension[costSummary].extension[totalSupplies].valueMoney.value" ]
     ] [
       fhir:name [ fhir:v "tTongchiBv" ] ;
       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 "tTongchiBvSource" ]
       ] ) ;
       fhir:target ( [
         fhir:context [ fhir:v "targetRow" ] ;
         fhir:contextType [ fhir:v "variable" ] ;
         fhir:element [ fhir:v "tTongchiBv" ]
       ] ) ;
       fhir:documentation [ fhir:v "Target field: T_TONGCHI_BV - Tổng chi phí bệnh viện FHIR path: VNCoreClaim.total.value | VNCoreExplanationOfBenefit.total.amount" ]
     ] [
       fhir:name [ fhir:v "tTongchiBh" ] ;
       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 "tTongchiBhSource" ]
       ] ) ;
       fhir:target ( [
         fhir:context [ fhir:v "targetRow" ] ;
         fhir:contextType [ fhir:v "variable" ] ;
         fhir:element [ fhir:v "tTongchiBh" ]
       ] ) ;
       fhir:documentation [ fhir:v "Target field: T_TONGCHI_BH - Tổng chi phí thuộc phạm vi BHYT FHIR path: VNCoreExplanationOfBenefit.total.where(category='eligible').amount.value | VNCoreClaimResponse.total.where(category='eligible').amount.value" ]
     ] [
       fhir:name [ fhir:v "tBntt" ] ;
       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 "tBnttSource" ]
       ] ) ;
       fhir:target ( [
         fhir:context [ fhir:v "targetRow" ] ;
         fhir:contextType [ fhir:v "variable" ] ;
         fhir:element [ fhir:v "tBntt" ]
       ] ) ;
       fhir:documentation [ fhir:v "Target field: T_BNTT - Người bệnh tự trả FHIR path: VNCoreClaim.extension[costSummary].extension[totalPatientSelfPay].valueMoney.value | Derived from VNCoreClaimResponse.total.where(category='submitted').amount - .where(category='eligible').amount" ]
     ] [
       fhir:name [ fhir:v "tBncct" ] ;
       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 "tBncctSource" ]
       ] ) ;
       fhir:target ( [
         fhir:context [ fhir:v "targetRow" ] ;
         fhir:contextType [ fhir:v "variable" ] ;
         fhir:element [ fhir:v "tBncct" ]
       ] ) ;
       fhir:documentation [ fhir:v "Target field: T_BNCCT - Người bệnh cùng chi trả FHIR path: VNCoreClaim.extension[costSummary].extension[totalPatientCopay].valueMoney.value | VNCoreClaimResponse.total.where(category='copay').amount.value | VNCoreExplanationOfBenefit.total.where(category='copay').amount.value" ]
     ] [
       fhir:name [ fhir:v "tBhtt" ] ;
       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 "tBhttSource" ]
       ] ) ;
       fhir:target ( [
         fhir:context [ fhir:v "targetRow" ] ;
         fhir:contextType [ fhir:v "variable" ] ;
         fhir:element [ fhir:v "tBhtt" ]
       ] ) ;
       fhir:documentation [ fhir:v "Target field: T_BHTT - Quỹ BHYT thanh toán FHIR path: VNCoreClaim.extension[costSummary].extension[totalInsurance].valueMoney.value | VNCoreClaimResponse.total.where(category='benefit').amount.value | VNCoreExplanationOfBenefit.total.where(category='benefit').amount.value" ]
     ] [
       fhir:name [ fhir:v "tNguonkhac" ] ;
       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 "tNguonkhacSource" ]
       ] ) ;
       fhir:target ( [
         fhir:context [ fhir:v "targetRow" ] ;
         fhir:contextType [ fhir:v "variable" ] ;
         fhir:element [ fhir:v "tNguonkhac" ]
       ] ) ;
       fhir:documentation [ fhir:v "Target field: T_NGUONKHAC - Nguồn khác FHIR path: VNCoreClaim.extension[costSummary].extension[totalOtherFund].valueMoney.value | VNCoreExplanationOfBenefit.extension[costSummary].extension[totalOtherFund].valueMoney.value" ]
     ] [
       fhir:name [ fhir:v "namQt" ] ;
       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 "namQtSource" ]
       ] ) ;
       fhir:target ( [
         fhir:context [ fhir:v "targetRow" ] ;
         fhir:contextType [ fhir:v "variable" ] ;
         fhir:element [ fhir:v "namQt" ]
       ] ) ;
       fhir:documentation [ fhir:v "Target field: NAM_QT - Năm quyết toán FHIR path: VNCoreClaim.extension[paymentPeriod].extension[year]" ]
     ] [
       fhir:name [ fhir:v "thangQt" ] ;
       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 "thangQtSource" ]
       ] ) ;
       fhir:target ( [
         fhir:context [ fhir:v "targetRow" ] ;
         fhir:contextType [ fhir:v "variable" ] ;
         fhir:element [ fhir:v "thangQt" ]
       ] ) ;
       fhir:documentation [ fhir:v "Target field: THANG_QT - Tháng quyết toán FHIR path: VNCoreClaim.extension[paymentPeriod].extension[month]" ]
     ] [
       fhir:name [ fhir:v "maLoaiKcb" ] ;
       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 "maLoaiKcbSource" ]
       ] ) ;
       fhir:target ( [
         fhir:context [ fhir:v "targetRow" ] ;
         fhir:contextType [ fhir:v "variable" ] ;
         fhir:element [ fhir:v "maLoaiKcb" ]
       ] ) ;
       fhir:documentation [ fhir:v "Target field: MA_LOAI_KCB - Mã loại khám chữa bệnh FHIR path: VNCoreEncounter.type" ]
     ] [
       fhir:name [ fhir:v "maKhoa" ] ;
       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 "maKhoaSource" ]
       ] ) ;
       fhir:target ( [
         fhir:context [ fhir:v "targetRow" ] ;
         fhir:contextType [ fhir:v "variable" ] ;
         fhir:element [ fhir:v "maKhoa" ]
       ] ) ;
       fhir:documentation [ fhir:v "Target field: MA_KHOA - Mã khoa FHIR path: VNCoreClaim.item.extension[department].valueCodeableConcept.coding.code | VNCoreEncounter.serviceType" ]
     ] [
       fhir:name [ fhir:v "maCskcb" ] ;
       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 "maCskcbSource" ]
       ] ) ;
       fhir:target ( [
         fhir:context [ fhir:v "targetRow" ] ;
         fhir:contextType [ fhir:v "variable" ] ;
         fhir:element [ fhir:v "maCskcb" ]
       ] ) ;
       fhir:documentation [ fhir:v "Target field: MA_CSKCB - Mã cơ sở khám chữa bệnh FHIR path: VNCoreEncounter.serviceProvider.resolve().identifier[CSKCB].value | VNCoreClaim.provider.resolve().identifier[CSKCB].value Mapping note: Actual visit/submission provider. Do not fall back to MA_DKBD on Coverage." ]
     ] [
       fhir:name [ fhir:v "canNang" ] ;
       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 "canNangSource" ]
       ] ) ;
       fhir:target ( [
         fhir:context [ fhir:v "targetRow" ] ;
         fhir:contextType [ fhir:v "variable" ] ;
         fhir:element [ fhir:v "canNang" ]
       ] ) ;
       fhir:documentation [ fhir:v "Target field: CAN_NANG - Cân nặng FHIR path: VNCoreObservationBodyWeight.valueQuantity.value" ]
     ] [
       fhir:name [ fhir:v "ngayTaiKham" ] ;
       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 "ngayTaiKhamSource" ]
       ] ) ;
       fhir:target ( [
         fhir:context [ fhir:v "targetRow" ] ;
         fhir:contextType [ fhir:v "variable" ] ;
         fhir:element [ fhir:v "ngayTaiKham" ]
       ] ) ;
       fhir:documentation [ fhir:v "Target field: NGAY_TAI_KHAM - Ngày tái khám FHIR path: VNCoreServiceRequest.occurrenceDateTime | Appointment.start" ]
     ] [
       fhir:name [ fhir:v "maHsba" ] ;
       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 "maHsbaSource" ]
       ] ) ;
       fhir:target ( [
         fhir:context [ fhir:v "targetRow" ] ;
         fhir:contextType [ fhir:v "variable" ] ;
         fhir:element [ fhir:v "maHsba" ]
       ] ) ;
       fhir:documentation [ fhir:v "Target field: MA_HSBA - Mã hồ sơ bệnh án FHIR path: VNCoreComposition.identifier.value | VNCoreDocumentReference.identifier.value" ]
     ] [
       fhir:name [ fhir:v "maTtdv" ] ;
       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 "maTtdvSource" ]
       ] ) ;
       fhir:target ( [
         fhir:context [ fhir:v "targetRow" ] ;
         fhir:contextType [ fhir:v "variable" ] ;
         fhir:element [ fhir:v "maTtdv" ]
       ] ) ;
       fhir:documentation [ fhir:v "Target field: MA_TTDV - Mã thủ trưởng đơn vị/người ký FHIR path: VNCoreComposition.author.resolve().identifier.value | VNCoreDocumentReference.author.resolve().identifier.value | VNCoreProvenance.signature.who.resolve().identifier.value" ]
     ] )
  ] ) . # 

# -------------------------------------------------------------------------------------

