Bộ Hướng dẫn Triển khai Core FHIR cho Việt Nam
0.5.0 - Draft for Community Review
Bộ Hướng dẫn Triển khai Core FHIR cho Việt Nam - Draft for Community Review (v0.5.0) built by the FHIR (HL7® FHIR® Standard) Build Tools. See the Directory of published versions
| Draft tại thời điểm 2026-04-28 |
<StructureMap xmlns="http://hl7.org/fhir">
<id value="vn-sm-bhyt-xml11-sick-leave"/>
<language value="vi"/>
<text>
<status value="generated"/>
<div xmlns="http://www.w3.org/1999/xhtml"><p class="res-header-id"><b>Generated Narrative: StructureMap vn-sm-bhyt-xml11-sick-leave</b></p><a name="vn-sm-bhyt-xml11-sick-leave"> </a><a name="hcvn-sm-bhyt-xml11-sick-leave"> </a><pre class="fml">
<b>map</b><span style="color: navy"> "</span>http://fhir.hl7.org.vn/core/StructureMap/vn-sm-bhyt-xml11-sick-leave<span style="color: navy">" = "</span>BHYTXML11SickLeaveLMStructureMap<span style="color: navy">"
</span><span style="color: navy">// </span><span style="color: green">Generated StructureMap scaffold for Bảng 11 giấy chứng nhận nghỉ việc hưởng BHXH — XML11 Sick Leave Logical Model. Source semantics come from the logical model mapping annotations in `BHYTXML11SickLeaveLM.fsh` and remain aligned with the Python BHYT round-trip export adapter.</span>
<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>
<b>uses</b><span style="color: navy"> "</span><a href="StructureDefinition-bhytXml11SickLeaveLm.html" title="Bảng 11 giấy chứng nhận nghỉ việc hưởng BHXH — XML11 Sick Leave Logical Model">http://fhir.hl7.org.vn/core/StructureDefinition/bhytXml11SickLeaveLm</a><span style="color: navy">" </span><b>alias </b>BHYTXML11SickLeaveLM <b>as </b><b>target</b> <span style="color: navy">// </span><span style="color: green">Bảng 11 giấy chứng nhận nghỉ việc hưởng BHXH — XML11 Sick Leave Logical Model</span>
<span style="color: navy">// </span><span style="color: green">Rows are derived from sick-leave DocumentReference/Composition, period, certifying Practitioner, Coverage and parent/guardian data. 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>
<b>group </b>MapBHYTXML11SickLeaveLM<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>BHYTXML11SickLeaveLM<span style="color: navy">)</span><span style="color: navy"> {
</span> sourceBundle.entry<b> as </b><span style="color: maroon">maLkSource</span><span style="color: navy"><b> -> </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>
sourceBundle.entry<b> as </b><span style="color: maroon">soCtSource</span><span style="color: navy"><b> -> </b></span>targetRow.soCt <i>"soCt"</i><span style="color: navy">;</span> <span style="color: navy">// </span><span style="color: green">Target field: SO_CT - Số chứng từ FHIR path: VNCoreDocumentReference.identifier.value | VNCoreComposition.identifier.value</span>
sourceBundle.entry<b> as </b><span style="color: maroon">soSeriSource</span><span style="color: navy"><b> -> </b></span>targetRow.soSeri <i>"soSeri"</i><span style="color: navy">;</span> <span style="color: navy">// </span><span style="color: green">Target field: SO_SERI - Số seri FHIR path: VNCoreDocumentReference.identifier.value | VNCoreComposition.identifier.value</span>
sourceBundle.entry<b> as </b><span style="color: maroon">soKcbSource</span><span style="color: navy"><b> -> </b></span>targetRow.soKcb <i>"soKcb"</i><span style="color: navy">;</span> <span style="color: navy">// </span><span style="color: green">Target field: SO_KCB - Số KCB FHIR path: VNCoreEncounter.identifier[MA_LUOT_KCB].value</span>
sourceBundle.entry<b> as </b><span style="color: maroon">donViSource</span><span style="color: navy"><b> -> </b></span>targetRow.donVi <i>"donVi"</i><span style="color: navy">;</span> <span style="color: navy">// </span><span style="color: green">Target field: DON_VI - Đơn vị FHIR path: VNCoreOrganization.name | VNCoreDocumentReference.custodian.resolve().name</span>
sourceBundle.entry<b> as </b><span style="color: maroon">maBhxhSource</span><span style="color: navy"><b> -> </b></span>targetRow.maBhxh <i>"maBhxh"</i><span style="color: navy">;</span> <span style="color: navy">// </span><span style="color: green">Target field: MA_BHXH - Mã BHXH FHIR path: VNCorePatient.identifier[BHXH].value | VNCoreCoverage.subscriberId</span>
sourceBundle.entry<b> as </b><span style="color: maroon">maTheBhytSource</span><span style="color: navy"><b> -> </b></span>targetRow.maTheBhyt <i>"maTheBhyt"</i><span style="color: navy">;</span> <span style="color: navy">// </span><span style="color: green">Target field: MA_THE_BHYT - Mã thẻ BHYT FHIR path: VNCoreCoverage.identifier[BHYT].value</span>
sourceBundle.entry<b> as </b><span style="color: maroon">soNgayNghiSource</span><span style="color: navy"><b> -> </b></span>targetRow.soNgayNghi <i>"soNgayNghi"</i><span style="color: navy">;</span> <span style="color: navy">// </span><span style="color: green">Target field: SO_NGAY_NGHI - Số ngày nghỉ FHIR path: Derived from VNCoreDocumentReference.context.period | VNCoreComposition.event.period</span>
sourceBundle.entry<b> as </b><span style="color: maroon">tuNgaySource</span><span style="color: navy"><b> -> </b></span>targetRow.tuNgay <i>"tuNgay"</i><span style="color: navy">;</span> <span style="color: navy">// </span><span style="color: green">Target field: TU_NGAY - Từ ngày FHIR path: VNCoreDocumentReference.context.period.start</span>
sourceBundle.entry<b> as </b><span style="color: maroon">denNgaySource</span><span style="color: navy"><b> -> </b></span>targetRow.denNgay <i>"denNgay"</i><span style="color: navy">;</span> <span style="color: navy">// </span><span style="color: green">Target field: DEN_NGAY - Đến ngày FHIR path: VNCoreDocumentReference.context.period.end</span>
sourceBundle.entry<b> as </b><span style="color: maroon">hoTenChaSource</span><span style="color: navy"><b> -> </b></span>targetRow.hoTenCha <i>"hoTenCha"</i><span style="color: navy">;</span> <span style="color: navy">// </span><span style="color: green">Target field: HO_TEN_CHA - Họ tên cha FHIR path: VNCoreRelatedPerson.where(relationship.coding.code='FTH').name.text | VNCorePatient.contact.where(relationship.coding.code='FTH').name.text</span>
sourceBundle.entry<b> as </b><span style="color: maroon">hoTenMeSource</span><span style="color: navy"><b> -> </b></span>targetRow.hoTenMe <i>"hoTenMe"</i><span style="color: navy">;</span> <span style="color: navy">// </span><span style="color: green">Target field: HO_TEN_ME - Họ tên mẹ FHIR path: VNCoreRelatedPerson.where(relationship.coding.code='MTH').name.text | VNCorePatient.contact.where(relationship.coding.code='MTH').name.text</span>
sourceBundle.entry<b> as </b><span style="color: maroon">maTtdvSource</span><span style="color: navy"><b> -> </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.attester.party.resolve().identifier.value | VNCoreDocumentReference.authenticator.resolve().identifier.value</span>
sourceBundle.entry<b> as </b><span style="color: maroon">maBsSource</span><span style="color: navy"><b> -> </b></span>targetRow.maBs <i>"maBs"</i><span style="color: navy">;</span> <span style="color: navy">// </span><span style="color: green">Target field: MA_BS - Mã bác sĩ FHIR path: VNCoreComposition.author.resolve().identifier.value | VNCorePractitioner.identifier.value</span>
sourceBundle.entry<b> as </b><span style="color: maroon">ngayCtSource</span><span style="color: navy"><b> -> </b></span>targetRow.ngayCt <i>"ngayCt"</i><span style="color: navy">;</span> <span style="color: navy">// </span><span style="color: green">Target field: NGAY_CT - Ngày cấp chứng từ FHIR path: VNCoreDocumentReference.date | VNCoreComposition.date</span>
sourceBundle.entry<b> as </b><span style="color: maroon">maTheTamSource</span><span style="color: navy"><b> -> </b></span>targetRow.maTheTam <i>"maTheTam"</i><span style="color: navy">;</span> <span style="color: navy">// </span><span style="color: green">Target field: MA_THE_TAM - Mã thẻ tạm FHIR path: VNCoreCoverage.identifier.value Mapping note: Temporary card identifiers are kept as Coverage.identifier until a dedicated temporary-card slice is profiled.</span>
sourceBundle.entry<b> as </b><span style="color: maroon">mauSoSource</span><span style="color: navy"><b> -> </b></span>targetRow.mauSo <i>"mauSo"</i><span style="color: navy">;</span> <span style="color: navy">// </span><span style="color: green">Target field: MAU_SO - Mẫu số FHIR path: VNCoreDocumentReference.type.coding.code | VNCoreComposition.type.coding.code</span>
<span style="color: navy">}
</span></pre></div>
</text>
<url
value="http://fhir.hl7.org.vn/core/StructureMap/vn-sm-bhyt-xml11-sick-leave"/>
<version value="0.5.0"/>
<name value="BHYTXML11SickLeaveLMStructureMap"/>
<title
value="Bảng 11 giấy chứng nhận nghỉ việc hưởng BHXH — XML11 Sick Leave Logical Model — StructureMap"/>
<status value="draft"/>
<experimental value="false"/>
<date value="2026-04-28"/>
<publisher value="Omi HealthTech / VN Core FHIR Community Initiative"/>
<contact>
<name value="Omi HealthTech / VN Core FHIR Community Initiative"/>
<telecom>
<system value="url"/>
<value value="https://hl7.org.vn"/>
</telecom>
<telecom>
<system value="email"/>
<value value="[email protected]"/>
</telecom>
</contact>
<contact>
<name value="Omi HealthTech (OmiGroup)"/>
<telecom>
<system value="url"/>
<value value="https://omihealthtech.vn"/>
</telecom>
<telecom>
<system value="url"/>
<value value="https://omigroup.vn"/>
</telecom>
<telecom>
<system value="email"/>
<value value="[email protected]"/>
</telecom>
</contact>
<description
value="Generated StructureMap scaffold for Bảng 11 giấy chứng nhận nghỉ việc hưởng BHXH — XML11 Sick Leave Logical Model. Source semantics come from the logical model mapping annotations in `BHYTXML11SickLeaveLM.fsh` and remain aligned with the Python BHYT round-trip export adapter."/>
<jurisdiction>
<coding>
<system value="urn:iso:std:iso:3166"/>
<code value="VN"/>
<display value="Viet Nam"/>
</coding>
</jurisdiction>
<purpose
value="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
value="http://fhir.hl7.org.vn/core/StructureDefinition/vn-core-bhyt-submission-bundle"/>
<mode value="source"/>
<alias value="BHYTSubmissionBundle"/>
<documentation
value="FHIR-native source bundle profile used by the repository round-trip adapter."/>
</structure>
<structure>
<url
value="http://fhir.hl7.org.vn/core/StructureDefinition/bhytXml11SickLeaveLm"/>
<mode value="target"/>
<alias value="BHYTXML11SickLeaveLM"/>
<documentation
value="Bảng 11 giấy chứng nhận nghỉ việc hưởng BHXH — XML11 Sick Leave Logical Model"/>
</structure>
<group>
<name value="MapBHYTXML11SickLeaveLM"/>
<typeMode value="none"/>
<documentation
value="Rows are derived from sick-leave DocumentReference/Composition, period, certifying Practitioner, Coverage and parent/guardian data. 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 value="sourceBundle"/>
<type value="BHYTSubmissionBundle"/>
<mode value="source"/>
<documentation value="VN Core BHYT submission bundle."/>
</input>
<input>
<name value="targetRow"/>
<type value="BHYTXML11SickLeaveLM"/>
<mode value="target"/>
<documentation
value="Bảng 11 giấy chứng nhận nghỉ việc hưởng BHXH — XML11 Sick Leave Logical Model"/>
</input>
<rule>
<name value="maLk"/>
<source>
<context value="sourceBundle"/>
<min value="0"/>
<max value="*"/>
<element value="entry"/>
<variable value="maLkSource"/>
</source>
<target>
<context value="targetRow"/>
<contextType value="variable"/>
<element value="maLk"/>
</target>
<documentation
value="Target field: MA_LK - Mã liên kết hồ sơ FHIR path: VNCoreClaim.identifier[MALK].value"/>
</rule>
<rule>
<name value="soCt"/>
<source>
<context value="sourceBundle"/>
<min value="0"/>
<max value="*"/>
<element value="entry"/>
<variable value="soCtSource"/>
</source>
<target>
<context value="targetRow"/>
<contextType value="variable"/>
<element value="soCt"/>
</target>
<documentation
value="Target field: SO_CT - Số chứng từ FHIR path: VNCoreDocumentReference.identifier.value | VNCoreComposition.identifier.value"/>
</rule>
<rule>
<name value="soSeri"/>
<source>
<context value="sourceBundle"/>
<min value="0"/>
<max value="*"/>
<element value="entry"/>
<variable value="soSeriSource"/>
</source>
<target>
<context value="targetRow"/>
<contextType value="variable"/>
<element value="soSeri"/>
</target>
<documentation
value="Target field: SO_SERI - Số seri FHIR path: VNCoreDocumentReference.identifier.value | VNCoreComposition.identifier.value"/>
</rule>
<rule>
<name value="soKcb"/>
<source>
<context value="sourceBundle"/>
<min value="0"/>
<max value="*"/>
<element value="entry"/>
<variable value="soKcbSource"/>
</source>
<target>
<context value="targetRow"/>
<contextType value="variable"/>
<element value="soKcb"/>
</target>
<documentation
value="Target field: SO_KCB - Số KCB FHIR path: VNCoreEncounter.identifier[MA_LUOT_KCB].value"/>
</rule>
<rule>
<name value="donVi"/>
<source>
<context value="sourceBundle"/>
<min value="0"/>
<max value="*"/>
<element value="entry"/>
<variable value="donViSource"/>
</source>
<target>
<context value="targetRow"/>
<contextType value="variable"/>
<element value="donVi"/>
</target>
<documentation
value="Target field: DON_VI - Đơn vị FHIR path: VNCoreOrganization.name | VNCoreDocumentReference.custodian.resolve().name"/>
</rule>
<rule>
<name value="maBhxh"/>
<source>
<context value="sourceBundle"/>
<min value="0"/>
<max value="*"/>
<element value="entry"/>
<variable value="maBhxhSource"/>
</source>
<target>
<context value="targetRow"/>
<contextType value="variable"/>
<element value="maBhxh"/>
</target>
<documentation
value="Target field: MA_BHXH - Mã BHXH FHIR path: VNCorePatient.identifier[BHXH].value | VNCoreCoverage.subscriberId"/>
</rule>
<rule>
<name value="maTheBhyt"/>
<source>
<context value="sourceBundle"/>
<min value="0"/>
<max value="*"/>
<element value="entry"/>
<variable value="maTheBhytSource"/>
</source>
<target>
<context value="targetRow"/>
<contextType value="variable"/>
<element value="maTheBhyt"/>
</target>
<documentation
value="Target field: MA_THE_BHYT - Mã thẻ BHYT FHIR path: VNCoreCoverage.identifier[BHYT].value"/>
</rule>
<rule>
<name value="soNgayNghi"/>
<source>
<context value="sourceBundle"/>
<min value="0"/>
<max value="*"/>
<element value="entry"/>
<variable value="soNgayNghiSource"/>
</source>
<target>
<context value="targetRow"/>
<contextType value="variable"/>
<element value="soNgayNghi"/>
</target>
<documentation
value="Target field: SO_NGAY_NGHI - Số ngày nghỉ FHIR path: Derived from VNCoreDocumentReference.context.period | VNCoreComposition.event.period"/>
</rule>
<rule>
<name value="tuNgay"/>
<source>
<context value="sourceBundle"/>
<min value="0"/>
<max value="*"/>
<element value="entry"/>
<variable value="tuNgaySource"/>
</source>
<target>
<context value="targetRow"/>
<contextType value="variable"/>
<element value="tuNgay"/>
</target>
<documentation
value="Target field: TU_NGAY - Từ ngày FHIR path: VNCoreDocumentReference.context.period.start"/>
</rule>
<rule>
<name value="denNgay"/>
<source>
<context value="sourceBundle"/>
<min value="0"/>
<max value="*"/>
<element value="entry"/>
<variable value="denNgaySource"/>
</source>
<target>
<context value="targetRow"/>
<contextType value="variable"/>
<element value="denNgay"/>
</target>
<documentation
value="Target field: DEN_NGAY - Đến ngày FHIR path: VNCoreDocumentReference.context.period.end"/>
</rule>
<rule>
<name value="hoTenCha"/>
<source>
<context value="sourceBundle"/>
<min value="0"/>
<max value="*"/>
<element value="entry"/>
<variable value="hoTenChaSource"/>
</source>
<target>
<context value="targetRow"/>
<contextType value="variable"/>
<element value="hoTenCha"/>
</target>
<documentation
value="Target field: HO_TEN_CHA - Họ tên cha FHIR path: VNCoreRelatedPerson.where(relationship.coding.code='FTH').name.text | VNCorePatient.contact.where(relationship.coding.code='FTH').name.text"/>
</rule>
<rule>
<name value="hoTenMe"/>
<source>
<context value="sourceBundle"/>
<min value="0"/>
<max value="*"/>
<element value="entry"/>
<variable value="hoTenMeSource"/>
</source>
<target>
<context value="targetRow"/>
<contextType value="variable"/>
<element value="hoTenMe"/>
</target>
<documentation
value="Target field: HO_TEN_ME - Họ tên mẹ FHIR path: VNCoreRelatedPerson.where(relationship.coding.code='MTH').name.text | VNCorePatient.contact.where(relationship.coding.code='MTH').name.text"/>
</rule>
<rule>
<name value="maTtdv"/>
<source>
<context value="sourceBundle"/>
<min value="0"/>
<max value="*"/>
<element value="entry"/>
<variable value="maTtdvSource"/>
</source>
<target>
<context value="targetRow"/>
<contextType value="variable"/>
<element value="maTtdv"/>
</target>
<documentation
value="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"/>
</rule>
<rule>
<name value="maBs"/>
<source>
<context value="sourceBundle"/>
<min value="0"/>
<max value="*"/>
<element value="entry"/>
<variable value="maBsSource"/>
</source>
<target>
<context value="targetRow"/>
<contextType value="variable"/>
<element value="maBs"/>
</target>
<documentation
value="Target field: MA_BS - Mã bác sĩ FHIR path: VNCoreComposition.author.resolve().identifier.value | VNCorePractitioner.identifier.value"/>
</rule>
<rule>
<name value="ngayCt"/>
<source>
<context value="sourceBundle"/>
<min value="0"/>
<max value="*"/>
<element value="entry"/>
<variable value="ngayCtSource"/>
</source>
<target>
<context value="targetRow"/>
<contextType value="variable"/>
<element value="ngayCt"/>
</target>
<documentation
value="Target field: NGAY_CT - Ngày cấp chứng từ FHIR path: VNCoreDocumentReference.date | VNCoreComposition.date"/>
</rule>
<rule>
<name value="maTheTam"/>
<source>
<context value="sourceBundle"/>
<min value="0"/>
<max value="*"/>
<element value="entry"/>
<variable value="maTheTamSource"/>
</source>
<target>
<context value="targetRow"/>
<contextType value="variable"/>
<element value="maTheTam"/>
</target>
<documentation
value="Target field: MA_THE_TAM - Mã thẻ tạm FHIR path: VNCoreCoverage.identifier.value Mapping note: Temporary card identifiers are kept as Coverage.identifier until a dedicated temporary-card slice is profiled."/>
</rule>
<rule>
<name value="mauSo"/>
<source>
<context value="sourceBundle"/>
<min value="0"/>
<max value="*"/>
<element value="entry"/>
<variable value="mauSoSource"/>
</source>
<target>
<context value="targetRow"/>
<contextType value="variable"/>
<element value="mauSo"/>
</target>
<documentation
value="Target field: MAU_SO - Mẫu số FHIR path: VNCoreDocumentReference.type.coding.code | VNCoreComposition.type.coding.code"/>
</rule>
</group>
</StructureMap>