# text.div
Generated Narrative: StructureMap vn-sm-bhyt-xml5-clinical-course

map "http://fhir.hl7.org.vn/core/StructureMap/vn-sm-bhyt-xml5-clinical-course" = "BHYTXML5ClinicalCourseLMStructureMap"

// Generated StructureMap scaffold for Bảng 5 diễn biến lâm sàng BHYT — Logical Model. Source semantics come from the logical model mapping annotations in `BHYTXML5ClinicalCourseLM.fsh` and remain aligned with the Python BHYT round-trip export adapter.

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.
uses "http://fhir.hl7.org.vn/core/StructureDefinition/bhytXml5ClinicalCourseLm" alias BHYTXML5ClinicalCourseLM as target // Bảng 5 diễn biến lâm sàng BHYT — Logical Model

// Rows are derived from clinical-course timeline entries. QD 3176 XML5 currently carries row order, event time, and performer metadata only. 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 MapBHYTXML5ClinicalCourseLM(source sourceBundle : BHYTSubmissionBundle, target targetRow : BHYTXML5ClinicalCourseLM) {
  sourceBundle.entry as maLkSource -> targetRow.maLk "maLk"; // Target field: Mã liên kết hồ sơ FHIR path: VNCoreClaim.identifier[MALK].value
  sourceBundle.entry as sttSource -> targetRow.stt "stt"; // Target field: STT - Số thứ tự dòng FHIR path: Derived export row order from the clinical course timeline
  sourceBundle.entry as thoiDiemDblsSource -> targetRow.thoiDiemDbls "thoiDiemDbls"; // Target field: THOI_DIEM_DBLS - Thời điểm diễn biến lâm sàng theo định dạng yyyyMMddHHmm FHIR path: VNCoreComposition.date | VNCoreObservation.effectiveDateTime
  sourceBundle.entry as nguoiThucHienSource -> targetRow.nguoiThucHien "nguoiThucHien"; // Target field: NGUOI_THUC_HIEN - Mã người thực hiện FHIR path: VNCoreComposition.author.resolve().identifier.value | VNCorePractitioner.identifier.value
}

# title
Bảng 5 diễn biến lâm sàng BHYT — Logical Model — StructureMap

# publisher
Omi HealthTech / VN Core FHIR Community Initiative

# contact[].name
Omi HealthTech / VN Core FHIR Community Initiative

# description
Generated StructureMap scaffold for Bảng 5 diễn biến lâm sàng BHYT — Logical Model. Source semantics come from the logical model mapping annotations in `BHYTXML5ClinicalCourseLM.fsh` and remain aligned with the Python BHYT round-trip export adapter.

# purpose
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[].documentation
FHIR-native source bundle profile used by the repository round-trip adapter.

# structure[].documentation
Bảng 5 diễn biến lâm sàng BHYT — Logical Model

# group[].documentation
Rows are derived from clinical-course timeline entries. QD 3176 XML5 currently carries row order, event time, and performer metadata only. 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[].input[].documentation
Bảng 5 diễn biến lâm sàng BHYT — Logical Model

# group[].rule[].documentation
Target field: Mã liên kết hồ sơ FHIR path: VNCoreClaim.identifier[MALK].value

# group[].rule[].documentation
Target field: STT - Số thứ tự dòng FHIR path: Derived export row order from the clinical course timeline

# group[].rule[].documentation
Target field: THOI_DIEM_DBLS - Thời điểm diễn biến lâm sàng theo định dạng yyyyMMddHHmm FHIR path: VNCoreComposition.date | VNCoreObservation.effectiveDateTime