HL7 Vietnam VN Core FHIR Implementation Guide

Bộ Hướng dẫn Triển khai Core FHIR cho Việt Nam
0.8.0 - Draft for Community Review Viet Nam cờ

Bộ Hướng dẫn Triển khai Core FHIR cho Việt Nam - Draft for Community Review (v0.8.0) built by the FHIR (HL7® FHIR® Standard) Build Tools. See the Directory of published versions

StructureMap: Bảng 10 giấy chứng nhận nghỉ dưỡng thai — XML10 Maternity Leave Logical Model — StructureMap

URL chính thức: http://fhir.hl7.org.vn/core/StructureMap/vn-sm-bhyt-xml10-maternity-leave Phiên bản: 0.8.0
Computable Name: BHYTXML10MaternityLeaveLMStructureMap
Định danh khác: OID:2.25.161089673617632664299011809196868855799.43.2

Generated StructureMap scaffold for Bảng 10 giấy chứng nhận nghỉ dưỡng thai — XML10 Maternity Leave Logical Model. Source semantics come from the logical model mapping annotations in BHYTXML10MaternityLeaveLM.fsh and remain aligned with the Python BHYT round-trip export adapter.

Language: vi

map "http://fhir.hl7.org.vn/core/StructureMap/vn-sm-bhyt-xml10-maternity-leave" = "BHYTXML10MaternityLeaveLMStructureMap"

// Generated StructureMap scaffold for Bảng 10 giấy chứng nhận nghỉ dưỡng thai — XML10 Maternity Leave Logical Model. Source semantics come from the logical model mapping annotations in `BHYTXML10MaternityLeaveLM.fsh` and remain aligned with the Python BHYT round-trip export adapter.

// FHIR-native source bundle profile used by the repository round-trip adapter.
uses "http://fhir.hl7.org.vn/core/StructureDefinition/vn-core-bhyt-submission-bundle" alias BHYTSubmissionBundle as source
// Bảng 10 giấy chứng nhận nghỉ dưỡng thai — XML10 Maternity Leave Logical Model
uses "http://fhir.hl7.org.vn/core/StructureDefinition/bhytXml10MaternityLeaveLm" alias BHYTXML10MaternityLeaveLM as target

// Rows are derived from maternity-leave DocumentReference/Composition, period, certifying Practitioner and Organization. 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`.
group MapBHYTXML10MaternityLeaveLM(source sourceBundle : BHYTSubmissionBundle, target targetRow : BHYTXML10MaternityLeaveLM) {
  // Target field: MA_LK - Mã liên kết hồ sơ FHIR path: VNCoreClaim.identifier[MALK].value
  sourceBundle.entry 0..* as maLkSource -> targetRow.maLk "maLk";
  // Target field: SO_SERI - Số seri FHIR path: VNCoreDocumentReference.identifier.value | VNCoreComposition.identifier.value
  sourceBundle.entry 0..* as soSeriSource -> targetRow.soSeri "soSeri";
  // Target field: SO_CT - Số chứng từ FHIR path: VNCoreDocumentReference.identifier.value | VNCoreComposition.identifier.value
  sourceBundle.entry 0..* as soCtSource -> targetRow.soCt "soCt";
  // Target field: SO_NGAY - Số ngày FHIR path: Derived from VNCoreDocumentReference.context.period | VNCoreComposition.event.period
  sourceBundle.entry 0..* as soNgaySource -> targetRow.soNgay "soNgay";
  // Target field: DON_VI - Đơn vị FHIR path: VNCoreOrganization.name | VNCoreDocumentReference.custodian.resolve().name
  sourceBundle.entry 0..* as donViSource -> targetRow.donVi "donVi";
  // Target field: CHAN_DOAN_RV - Chẩn đoán ra viện FHIR path: VNCoreCondition.code.text | VNCoreComposition.section[diagnosis].text Mapping note: Theo bản sửa đổi QĐ 4750/QĐ-BYT (sửa toàn bộ diễn giải QĐ 130/QĐ-BYT): trường hợp nghỉ dưỡng thai chỉ ghi cụm từ \"dưỡng thai\"; căn cứ Thông tư 56/2017/TT-BYT.
  sourceBundle.entry 0..* as chanDoanRvSource -> targetRow.chanDoanRv "chanDoanRv";
  // Target field: TU_NGAY - Từ ngày FHIR path: VNCoreDocumentReference.context.period.start
  sourceBundle.entry 0..* as tuNgaySource -> targetRow.tuNgay "tuNgay";
  // Target field: DEN_NGAY - Đến ngày FHIR path: VNCoreDocumentReference.context.period.end
  sourceBundle.entry 0..* as denNgaySource -> targetRow.denNgay "denNgay";
  // Target field: MA_TTDV - Mã thủ trưởng đơn vị/người ký FHIR path: VNCoreComposition.attester.party.resolve().identifier.value | VNCoreDocumentReference.authenticator.resolve().identifier.value
  sourceBundle.entry 0..* as maTtdvSource -> targetRow.maTtdv "maTtdv";
  // Target field: TEN_BS - Tên bác sĩ FHIR path: VNCoreComposition.author.display | VNCorePractitioner.name.text
  sourceBundle.entry 0..* as tenBsSource -> targetRow.tenBs "tenBs";
  // Target field: MA_BS - Mã bác sĩ FHIR path: VNCoreComposition.author.resolve().identifier.value | VNCorePractitioner.identifier.value
  sourceBundle.entry 0..* as maBsSource -> targetRow.maBs "maBs";
  // Target field: NGAY_CT - Ngày cấp chứng từ FHIR path: VNCoreDocumentReference.date | VNCoreComposition.date
  sourceBundle.entry 0..* as ngayCtSource -> targetRow.ngayCt "ngayCt";
}