vn-sm-bhyt-xml1-summary
type: StructureMap
node role: treeRoot
id:
  v: vn-sm-bhyt-xml1-summary
language:
  v: vi
text:
  status:
    v: generated
  div:
    v: Generated Narrative: StructureMap vn-sm-bhyt-xml1-summary #xD; map "http://fhir.hl7.org.vn/core/StructureMap/vn-sm-bhyt-xml1-summary" = "BHYTXML1SummaryLMStructureMap"#xD; #xD; // 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.#xD; #xD; uses "http://fhir.hl7.org.vn/core/StructureDefinition/vn-core-bhyt-submission-bundle" alias BHYTSubmissionBundle as source // FHIR-native source bundle profile used by the repository round-trip adapter.#xD; uses "http://fhir.hl7.org.vn/core/StructureDefinition/bhytXml1SummaryLm" alias BHYTXML1SummaryLM as target // Bảng 1 tổng hợp KCB BHYT — Logical Model#xD; #xD; // 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`.#xD; group MapBHYTXML1SummaryLM(source sourceBundle : BHYTSubmissionBundle, target targetRow : BHYTXML1SummaryLM) {#xD; sourceBundle.entry as maLkSource -> targetRow.maLk "maLk"; // Target field: MA_LK - Mã liên kết hồ sơ FHIR path: VNCoreClaim.identifier[MALK].value#xD; sourceBundle.entry as sttSource -> targetRow.stt "stt"; // Target field: STT - Số thứ tự FHIR path: Derived export row order#xD; sourceBundle.entry as maBnSource -> targetRow.maBn "maBn"; // Target field: MA_BN - Mã người bệnh tại cơ sở FHIR path: VNCorePatient.identifier[MRN].value#xD; sourceBundle.entry as hoTenSource -> targetRow.hoTen "hoTen"; // Target field: HO_TEN - Họ tên người bệnh FHIR path: VNCorePatient.name.text#xD; sourceBundle.entry as ngaySinhSource -> targetRow.ngaySinh "ngaySinh"; // Target field: NGAY_SINH - Ngày sinh FHIR path: VNCorePatient.birthDate#xD; sour…
url:
  v: http://fhir.hl7.org.vn/core/StructureMap/vn-sm-bhyt-xml1-summary
  l: vn-sm-bhyt-xml1-summary
version:
  v: 0.5.0
name:
  v: BHYTXML1SummaryLMStructureMap
title:
  v: Bảng 1 tổng hợp KCB BHYT — Logical Model — StructureMap
status:
  v: draft
experimental:
  v: false
date:
  v: 2026-04-28
publisher:
  v: Omi HealthTech / VN Core FHIR Community Initiative
contact:
  name:
    v: Omi HealthTech / VN Core FHIR Community Initiative
  telecom:
    system:
      v: url
    value:
      v: https://hl7.org.vn
  telecom:
    system:
      v: email
contact:
  name:
    v: Omi HealthTech (OmiGroup)
  telecom:
    system:
      v: url
    value:
      v: https://omihealthtech.vn
  telecom:
    system:
      v: url
    value:
      v: https://omigroup.vn
  telecom:
    system:
      v: email
description:
  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.
jurisdiction:
  coding:
    system:
      v: urn:iso:std:iso:3166
      l: 3166
    code:
      v: VN
    display:
      v: Viet Nam
purpose:
  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.
structure:
  url:
    v: http://fhir.hl7.org.vn/core/StructureDefinition/vn-core-bhyt-submission-bundle
    l: vn-core-bhyt-submission-bundle
  mode:
    v: source
  alias:
    v: BHYTSubmissionBundle
  documentation:
    v: FHIR-native source bundle profile used by the repository round-trip adapter.
structure:
  url:
    v: http://fhir.hl7.org.vn/core/StructureDefinition/bhytXml1SummaryLm
    l: bhytXml1SummaryLm
  mode:
    v: target
  alias:
    v: BHYTXML1SummaryLM
  documentation:
    v: Bảng 1 tổng hợp KCB BHYT — Logical Model
group:
  name:
    v: MapBHYTXML1SummaryLM
  type mode:
    v: none
  documentation:
    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`.
  input:
    name:
      v: sourceBundle
    type:
      v: BHYTSubmissionBundle
    mode:
      v: source
    documentation:
      v: VN Core BHYT submission bundle.
  input:
    name:
      v: targetRow
    type:
      v: BHYTXML1SummaryLM
    mode:
      v: target
    documentation:
      v: Bảng 1 tổng hợp KCB BHYT — Logical Model
  rule:
    name:
      v: maLk
    source:
      context:
        v: sourceBundle
      min:
        v: 0
      max:
        v: *
      element:
        v: entry
      variable:
        v: maLkSource
    target:
      context:
        v: targetRow
      context type:
        v: variable
      element:
        v: maLk
    documentation:
      v: Target field: MA_LK - Mã liên kết hồ sơ FHIR path: VNCoreClaim.identifier[MALK].value
  rule:
    name:
      v: stt
    source:
      context:
        v: sourceBundle
      min:
        v: 0
      max:
        v: *
      element:
        v: entry
      variable:
        v: sttSource
    target:
      context:
        v: targetRow
      context type:
        v: variable
      element:
        v: stt
    documentation:
      v: Target field: STT - Số thứ tự FHIR path: Derived export row order
  rule:
    name:
      v: maBn
    source:
      context:
        v: sourceBundle
      min:
        v: 0
      max:
        v: *
      element:
        v: entry
      variable:
        v: maBnSource
    target:
      context:
        v: targetRow
      context type:
        v: variable
      element:
        v: maBn
    documentation:
      v: Target field: MA_BN - Mã người bệnh tại cơ sở FHIR path: VNCorePatient.identifier[MRN].value
  rule:
    name:
      v: hoTen
    source:
      context:
        v: sourceBundle
      min:
        v: 0
      max:
        v: *
      element:
        v: entry
      variable:
        v: hoTenSource
    target:
      context:
        v: targetRow
      context type:
        v: variable
      element:
        v: hoTen

v: Target field: HO_TEN - Họ tên người bệnh FHIR path: VNCorePatient.name.text

name:
  v: ngaySinh
source:
  context:
    v: sourceBundle
  min:
    v: 0
  max:
    v: *
  element:
    v: entry
  variable:
    v: ngaySinhSource
target:
  context:
    v: targetRow
  context type:
    v: variable
  element:
    v: ngaySinh
documentation:
  v: Target field: NGAY_SINH - Ngày sinh FHIR path: VNCorePatient.birthDate

name:
  v: gioiTinh
source:
  context:
    v: sourceBundle
  min:
    v: 0
  max:
    v: *
  element:
    v: entry
  variable:
    v: gioiTinhSource
target:
  context:
    v: targetRow
  context type:
    v: variable
  element:
    v: gioiTinh
documentation:
  v: Target field: GIOI_TINH - Giới tính FHIR path: VNCorePatient.gender

name:
  v: maQuocTich
source:
  context:
    v: sourceBundle
  min:
    v: 0
  max:
    v: *
  element:
    v: entry
  variable:
    v: maQuocTichSource
target:
  context:
    v: targetRow
  context type:
    v: variable
  element:
    v: maQuocTich
documentation:
  v: Target field: MA_QUOCTICH - Mã quốc tịch FHIR path: VNCorePatient.extension[nationality].valueCodeableConcept.coding.code

name:
  v: maDanToc
source:
  context:
    v: sourceBundle
  min:
    v: 0
  max:
    v: *
  element:
    v: entry
  variable:
    v: maDanTocSource
target:
  context:
    v: targetRow
  context type:
    v: variable
  element:
    v: maDanToc
documentation:
  v: Target field: MA_DANTOC - Mã dân tộc FHIR path: VNCorePatient.extension[ethnicity].valueCodeableConcept.coding.code

name:
  v: maNgheNghiep
source:
  context:
    v: sourceBundle
  min:
    v: 0
  max:
    v: *
  element:
    v: entry
  variable:
    v: maNgheNghiepSource
target:
  context:
    v: targetRow
  context type:
    v: variable
  element:
    v: maNgheNghiep
documentation:
  v: Target field: MA_NGHE_NGHIEP - Mã nghề nghiệp FHIR path: VNCorePatient.extension[occupation].valueCodeableConcept.coding.code

name:
  v: diaChi
source:
  context:
    v: sourceBundle
  min:
    v: 0
  max:
    v: *
  element:
    v: entry
  variable:
    v: diaChiSource
target:
  context:
    v: targetRow
  context type:
    v: variable
  element:
    v: diaChi
documentation:
  v: Target field: DIA_CHI - Địa chỉ FHIR path: VNCorePatient.address.text

name:
  v: maTinhCuTru
source:
  context:
    v: sourceBundle
  min:
    v: 0
  max:
    v: *
  element:
    v: entry
  variable:
    v: maTinhCuTruSource
target:
  context:
    v: targetRow
  context type:
    v: variable
  element:
    v: maTinhCuTru
documentation:
  v: Target field: MATINH_CU_TRU - Mã tỉnh cư trú FHIR path: VNCorePatient.address.extension[province].valueCodeableConcept.coding.code

name:
  v: maHuyenCuTru
source:
  context:
    v: sourceBundle
  min:
    v: 0
  max:
    v: *
  element:
    v: entry
  variable:
    v: maHuyenCuTruSource
target:
  context:
    v: targetRow
  context type:
    v: variable
  element:
    v: maHuyenCuTru
documentation:
  v: Target field: MAHUYEN_CU_TRU - Mã huyện cư trú legacy FHIR path: VNCorePatient.address.district

name:
  v: maXaCuTru
source:
  context:
    v: sourceBundle
  min:
    v: 0
  max:
    v: *
  element:
    v: entry
  variable:
    v: maXaCuTruSource
target:
  context:
    v: targetRow
  context type:
    v: variable
  element:
    v: maXaCuTru
documentation:
  v: Target field: MAXA_CU_TRU - Mã xã cư trú FHIR path: VNCorePatient.address.extension[ward].valueCodeableConcept.coding.code

name:
  v: dienThoai
source:
  context:
    v: sourceBundle
  min:
    v: 0
  max:
    v: *
  element:
    v: entry
  variable:
    v: dienThoaiSource
target:
  context:
    v: targetRow
  context type:
    v: variable
  element:
    v: dienThoai
documentation:
  v: Target field: DIEN_THOAI - Số điện thoại FHIR path: VNCorePatient.telecom.where(system='phone').value

name:
  v: maTheBhyt
source:
  context:
    v: sourceBundle
  min:
    v: 0
  max:
    v: *
  element:
    v: entry
  variable:
    v: maTheBhytSource
target:
  context:
    v: targetRow
  context type:
    v: variable
  element:
    v: maTheBhyt
documentation:
  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.

name:
  v: maDkbd
source:
  context:
    v: sourceBundle
  min:
    v: 0
  max:
    v: *
  element:
    v: entry
  variable:
    v: maDkbdSource
target:
  context:
    v: targetRow
  context type:
    v: variable
  element:
    v: maDkbd
documentation:
  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.

name:
  v: gtTheTu
source:
  context:
    v: sourceBundle
  min:
    v: 0
  max:
    v: *
  element:
    v: entry
  variable:
    v: gtTheTuSource
target:
  context:
    v: targetRow
  context type:
    v: variable
  element:
    v: gtTheTu
documentation:
  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.

name:
  v: gtTheDen
source:
  context:
    v: sourceBundle
  min:
    v: 0
  max:
    v: *
  element:
    v: entry
  variable:
    v: gtTheDenSource
target:
  context:
    v: targetRow
  context type:
    v: variable
  element:
    v: gtTheDen
documentation:
  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.

name:
  v: lyDoVv
source:
  context:
    v: sourceBundle
  min:
    v: 0
  max:
    v: *
  element:
    v: entry
  variable:
    v: lyDoVvSource
target:
  context:
    v: targetRow
  context type:
    v: variable
  element:
    v: lyDoVv
documentation:
  v: Target field: LY_DO_VV - Lý do vào viện FHIR path: VNCoreEncounter.reasonCode | VNCoreEncounter.reasonReference.resolve().code

name:
  v: lyDoVnt
source:
  context:
    v: sourceBundle
  min:
    v: 0
  max:
    v: *
  element:
    v: entry
  variable:
    v: lyDoVntSource
target:
  context:
    v: targetRow
  context type:
    v: variable
  element:
    v: lyDoVnt
documentation:
  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.

name:
  v: maLyDoVnt
source:
  context:
    v: sourceBundle
  min:
    v: 0
  max:
    v: *
  element:
    v: entry
  variable:
    v: maLyDoVntSource
target:
  context:
    v: targetRow
  context type:
    v: variable
  element:
    v: maLyDoVnt
documentation:
  v: Target field: MA_LY_DO_VNT - Mã lý do vào nội trú FHIR path: VNCoreEncounter.hospitalization.admitSource.coding.code

name:
  v: chanDoanVao
source:
  context:
    v: sourceBundle
  min:
    v: 0
  max:
    v: *
  element:
    v: entry
  variable:
    v: chanDoanVaoSource
target:
  context:
    v: targetRow
  context type:
    v: variable
  element:
    v: chanDoanVao
documentation:
  v: Target field: CHAN_DOAN_VAO - Chẩn đoán vào viện FHIR path: VNCoreEncounter.reasonCode | VNCoreComposition.section[chiefComplaint].text

name:
  v: chanDoanRv
source:
  context:
    v: sourceBundle
  min:
    v: 0
  max:
    v: *
  element:
    v: entry
  variable:
    v: chanDoanRvSource
target:
  context:
    v: targetRow
  context type:
    v: variable
  element:
    v: chanDoanRv
documentation:
  v: Target field: CHAN_DOAN_RV - Chẩn đoán ra viện FHIR path: VNCoreCondition.code.text | VNCoreComposition.section[diagnosis].text

name:
  v: maBenhChinh
source:
  context:
    v: sourceBundle
  min:
    v: 0
  max:
    v: *
  element:
    v: entry
  variable:
    v: maBenhChinhSource
target:
  context:
    v: targetRow
  context type:
    v: variable
  element:
    v: maBenhChinh
documentation:
  v: Target field: MA_BENH_CHINH - Mã bệnh chính FHIR path: VNCoreClaim.diagnosis.where(type='principal').diagnosisCodeableConcept | VNCoreCondition.code

name:
  v: maBenhKt
source:
  context:
    v: sourceBundle
  min:
    v: 0
  max:
    v: *
  element:
    v: entry
  variable:
    v: maBenhKtSource
target:
  context:
    v: targetRow
  context type:
    v: variable
  element:
    v: maBenhKt
documentation:
  v: Target field: MA_BENH_KT - Mã bệnh kèm theo FHIR path: VNCoreClaim.diagnosis.where(type!='principal').diagnosisCodeableConcept | VNCoreCondition.code

name:
  v: maBenhYhct
source:
  context:
    v: sourceBundle
  min:
    v: 0
  max:
    v: *
  element:
    v: entry
  variable:
    v: maBenhYhctSource
target:
  context:
    v: targetRow
  context type:
    v: variable
  element:
    v: maBenhYhct
documentation:
  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

name:
  v: maPtttQt
source:
  context:
    v: sourceBundle
  min:
    v: 0
  max:
    v: *
  element:
    v: entry
  variable:
    v: maPtttQtSource
target:
  context:
    v: targetRow
  context type:
    v: variable
  element:
    v: maPtttQt
documentation:
  v: Target field: MA_PTTT_QT - Mã phương thức thanh toán FHIR path: VNCoreClaim.extension[paymentMethod].valueCodeableConcept.coding.code

name:
  v: maDoituongKcb
source:
  context:
    v: sourceBundle
  min:
    v: 0
  max:
    v: *
  element:
    v: entry
  variable:
    v: maDoituongKcbSource
target:
  context:
    v: targetRow
  context type:
    v: variable
  element:
    v: maDoituongKcb
documentation:
  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.

name:
  v: maNoiDi
source:
  context:
    v: sourceBundle
  min:
    v: 0
  max:
    v: *
  element:
    v: entry
  variable:
    v: maNoiDiSource
target:
  context:
    v: targetRow
  context type:
    v: variable
  element:
    v: maNoiDi
documentation:
  v: Target field: MA_NOI_DI - Mã nơi đi FHIR path: VNCoreEncounter.hospitalization.origin.resolve().identifier[CSKCB].value

name:
  v: maNoiDen
source:
  context:
    v: sourceBundle
  min:
    v: 0
  max:
    v: *
  element:
    v: entry
  variable:
    v: maNoiDenSource
target:
  context:
    v: targetRow
  context type:
    v: variable
  element:
    v: maNoiDen
documentation:
  v: Target field: MA_NOI_DEN - Mã nơi đến FHIR path: VNCoreEncounter.hospitalization.destination.resolve().identifier[CSKCB].value

name:
  v: maTaiNan
source:
  context:
    v: sourceBundle
  min:
    v: 0
  max:
    v: *
  element:
    v: entry
  variable:
    v: maTaiNanSource
target:
  context:
    v: targetRow
  context type:
    v: variable
  element:
    v: maTaiNan
documentation:
  v: Target field: MA_TAI_NAN - Mã tai nạn FHIR path: VNCoreClaim.accident.type

name:
  v: ngayVao
source:
  context:
    v: sourceBundle
  min:
    v: 0
  max:
    v: *
  element:
    v: entry
  variable:
    v: ngayVaoSource
target:
  context:
    v: targetRow
  context type:
    v: variable
  element:
    v: ngayVao
documentation:
  v: Target field: NGAY_VAO - Ngày vào theo định dạng yyyyMMddHHmm FHIR path: VNCoreEncounter.period.start | VNCoreClaim.created

name:
  v: ngayVaoNoiTru
source:
  context:
    v: sourceBundle
  min:
    v: 0
  max:
    v: *
  element:
    v: entry
  variable:
    v: ngayVaoNoiTruSource
target:
  context:
    v: targetRow
  context type:
    v: variable
  element:
    v: ngayVaoNoiTru
documentation:
  v: Target field: NGAY_VAO_NOI_TRU - Ngày vào nội trú FHIR path: VNCoreEncounter.hospitalization | future admission instant extension

name:
  v: ngayRa
source:
  context:
    v: sourceBundle
  min:
    v: 0
  max:
    v: *
  element:
    v: entry
  variable:
    v: ngayRaSource
target:
  context:
    v: targetRow
  context type:
    v: variable
  element:
    v: ngayRa
documentation:
  v: Target field: NGAY_RA - Ngày ra theo định dạng yyyyMMddHHmm FHIR path: VNCoreEncounter.period.end | VNCoreClaim.created

name:
  v: soNgayDtri
source:
  context:
    v: sourceBundle
  min:
    v: 0
  max:
    v: *
  element:
    v: entry
  variable:
    v: soNgayDtriSource
target:
  context:
    v: targetRow
  context type:
    v: variable
  element:
    v: soNgayDtri
documentation:
  v: Target field: SO_NGAY_DTRI - Số ngày điều trị FHIR path: Derived from VNCoreEncounter.period.start/end | VNCoreEncounter.length.value

name:
  v: ketQuaDtri
source:
  context:
    v: sourceBundle
  min:
    v: 0
  max:
    v: *
  element:
    v: entry
  variable:
    v: ketQuaDtriSource
target:
  context:
    v: targetRow
  context type:
    v: variable
  element:
    v: ketQuaDtri
documentation:
  v: Target field: KET_QUA_DTRI - Kết quả điều trị FHIR path: VNCoreEncounter.extension[treatmentOutcome].valueCodeableConcept

name:
  v: maLoaiRv
source:
  context:
    v: sourceBundle
  min:
    v: 0
  max:
    v: *
  element:
    v: entry
  variable:
    v: maLoaiRvSource
target:
  context:
    v: targetRow
  context type:
    v: variable
  element:
    v: maLoaiRv
documentation:
  v: Target field: MA_LOAI_RV - Mã loại ra viện FHIR path: VNCoreEncounter.hospitalization.dischargeDisposition

name:
  v: ngayTtoan
source:
  context:
    v: sourceBundle
  min:
    v: 0
  max:
    v: *
  element:
    v: entry
  variable:
    v: ngayTtoanSource
target:
  context:
    v: targetRow
  context type:
    v: variable
  element:
    v: ngayTtoan
documentation:
  v: Target field: NGAY_TTOAN - Ngày thanh toán FHIR path: VNCoreExplanationOfBenefit.created | VNCoreClaimResponse.created

name:
  v: tThuoc
source:
  context:
    v: sourceBundle
  min:
    v: 0
  max:
    v: *
  element:
    v: entry
  variable:
    v: tThuocSource
target:
  context:
    v: targetRow
  context type:
    v: variable
  element:
    v: tThuoc
documentation:
  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

name:
  v: tVtyt
source:
  context:
    v: sourceBundle
  min:
    v: 0
  max:
    v: *
  element:
    v: entry
  variable:
    v: tVtytSource
target:
  context:
    v: targetRow
  context type:
    v: variable
  element:
    v: tVtyt
documentation:
  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

name:
  v: tTongchiBv
source:
  context:
    v: sourceBundle
  min:
    v: 0
  max:
    v: *
  element:
    v: entry
  variable:
    v: tTongchiBvSource
target:
  context:
    v: targetRow
  context type:
    v: variable
  element:
    v: tTongchiBv
documentation:
  v: Target field: T_TONGCHI_BV - Tổng chi phí bệnh viện FHIR path: VNCoreClaim.total.value | VNCoreExplanationOfBenefit.total.amount

name:
  v: tTongchiBh
source:
  context:
    v: sourceBundle
  min:
    v: 0
  max:
    v: *
  element:
    v: entry
  variable:
    v: tTongchiBhSource
target:
  context:
    v: targetRow
  context type:
    v: variable
  element:
    v: tTongchiBh
documentation:
  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

name:
  v: tBntt
source:
  context:
    v: sourceBundle
  min:
    v: 0
  max:
    v: *
  element:
    v: entry
  variable:
    v: tBnttSource
target:
  context:
    v: targetRow
  context type:
    v: variable
  element:
    v: tBntt
documentation:
  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

name:
  v: tBncct
source:
  context:
    v: sourceBundle
  min:
    v: 0
  max:
    v: *
  element:
    v: entry
  variable:
    v: tBncctSource
target:
  context:
    v: targetRow
  context type:
    v: variable
  element:
    v: tBncct
documentation:
  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

name:
  v: tBhtt
source:
  context:
    v: sourceBundle
  min:
    v: 0
  max:
    v: *
  element:
    v: entry
  variable:
    v: tBhttSource
target:
  context:
    v: targetRow
  context type:
    v: variable
  element:
    v: tBhtt
documentation:
  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

name:
  v: tNguonkhac
source:
  context:
    v: sourceBundle
  min:
    v: 0
  max:
    v: *
  element:
    v: entry
  variable:
    v: tNguonkhacSource
target:
  context:
    v: targetRow
  context type:
    v: variable
  element:
    v: tNguonkhac
documentation:
  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

name:
  v: namQt
source:
  context:
    v: sourceBundle
  min:
    v: 0
  max:
    v: *
  element:
    v: entry
  variable:
    v: namQtSource
target:
  context:
    v: targetRow
  context type:
    v: variable
  element:
    v: namQt
documentation:
  v: Target field: NAM_QT - Năm quyết toán FHIR path: VNCoreClaim.extension[paymentPeriod].extension[year]

name:
  v: thangQt
source:
  context:
    v: sourceBundle
  min:
    v: 0
  max:
    v: *
  element:
    v: entry
  variable:
    v: thangQtSource
target:
  context:
    v: targetRow
  context type:
    v: variable
  element:
    v: thangQt
documentation:
  v: Target field: THANG_QT - Tháng quyết toán FHIR path: VNCoreClaim.extension[paymentPeriod].extension[month]

name:
  v: maLoaiKcb
source:
  context:
    v: sourceBundle
  min:
    v: 0
  max:
    v: *
  element:
    v: entry
  variable:
    v: maLoaiKcbSource
target:
  context:
    v: targetRow
  context type:
    v: variable
  element:
    v: maLoaiKcb
documentation:
  v: Target field: MA_LOAI_KCB - Mã loại khám chữa bệnh FHIR path: VNCoreEncounter.type

name:
  v: maKhoa
source:
  context:
    v: sourceBundle
  min:
    v: 0
  max:
    v: *
  element:
    v: entry
  variable:
    v: maKhoaSource
target:
  context:
    v: targetRow
  context type:
    v: variable
  element:
    v: maKhoa
documentation:
  v: Target field: MA_KHOA - Mã khoa FHIR path: VNCoreClaim.item.extension[department].valueCodeableConcept.coding.code | VNCoreEncounter.serviceType

name:
  v: maCskcb
source:
  context:
    v: sourceBundle
  min:
    v: 0
  max:
    v: *
  element:
    v: entry
  variable:
    v: maCskcbSource
target:
  context:
    v: targetRow
  context type:
    v: variable
  element:
    v: maCskcb
documentation:
  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.

name:
  v: canNang
source:
  context:
    v: sourceBundle
  min:
    v: 0
  max:
    v: *
  element:
    v: entry
  variable:
    v: canNangSource
target:
  context:
    v: targetRow
  context type:
    v: variable
  element:
    v: canNang
documentation:
  v: Target field: CAN_NANG - Cân nặng FHIR path: VNCoreObservationBodyWeight.valueQuantity.value

name:
  v: ngayTaiKham
source:
  context:
    v: sourceBundle
  min:
    v: 0
  max:
    v: *
  element:
    v: entry
  variable:
    v: ngayTaiKhamSource
target:
  context:
    v: targetRow
  context type:
    v: variable
  element:
    v: ngayTaiKham
documentation:
  v: Target field: NGAY_TAI_KHAM - Ngày tái khám FHIR path: VNCoreServiceRequest.occurrenceDateTime | Appointment.start

name:
  v: maHsba
source:
  context:
    v: sourceBundle
  min:
    v: 0
  max:
    v: *
  element:
    v: entry
  variable:
    v: maHsbaSource
target:
  context:
    v: targetRow
  context type:
    v: variable
  element:
    v: maHsba
documentation:
  v: Target field: MA_HSBA - Mã hồ sơ bệnh án FHIR path: VNCoreComposition.identifier.value | VNCoreDocumentReference.identifier.value

name:
  v: maTtdv
source:
  context:
    v: sourceBundle
  min:
    v: 0
  max:
    v: *
  element:
    v: entry
  variable:
    v: maTtdvSource
target:
  context:
    v: targetRow
  context type:
    v: variable
  element:
    v: maTtdv
documentation:
  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