HL7 Vietnam VN Core FHIR Implementation Guide

Hướng dẫn triển khai FHIR cốt lõi Việt Nam — VN Core FHIR Implementation Guide
0.9.0 - Draft for Community Review Viet Nam cờ

Hướng dẫn triển khai FHIR cốt lõi Việt Nam — VN Core FHIR Implementation Guide - Draft for Community Review (v0.9.0) built by the FHIR (HL7® FHIR® Standard) Build Tools. See the Directory of published versions

: Bảng 15 quản lý điều trị bệnh lao — XML15 Tuberculosis Treatment Logical Model — StructureMap

Draft tại thời điểm 2026-04-28

Bản thô xml | Tải xuống


<StructureMap xmlns="http://hl7.org/fhir">
  <id value="vn-sm-bhyt-xml15-tuberculosis"/>
  <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-xml15-tuberculosis</b></p><a name="vn-sm-bhyt-xml15-tuberculosis"> </a><a name="hcvn-sm-bhyt-xml15-tuberculosis"> </a><pre class="fml">
<b>map</b><span style="color: navy"> &quot;</span>http://fhir.hl7.org.vn/core/StructureMap/vn-sm-bhyt-xml15-tuberculosis<span style="color: navy">&quot; = &quot;</span>BHYTXML15TuberculosisLMStructureMap<span style="color: navy">&quot;

</span><span style="color: navy">// </span><span style="color: green">Generated StructureMap scaffold for Bảng 15 quản lý điều trị bệnh lao — XML15 Tuberculosis Treatment Logical Model. Source semantics come from the logical model mapping annotations in `BHYTXML15TuberculosisLM.fsh` and remain aligned with the Python BHYT round-trip export adapter.</span>

<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"> &quot;</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">&quot; </span><b>alias </b>BHYTSubmissionBundle <b>as </b><b>source</b>
<span style="color: navy">// </span><span style="color: green">Bảng 15 quản lý điều trị bệnh lao — XML15 Tuberculosis Treatment Logical Model</span>
<b>uses</b><span style="color: navy"> &quot;</span><a href="StructureDefinition-bhytXml15TuberculosisLm.html" title="Bảng 15 quản lý điều trị bệnh lao — XML15 Tuberculosis Treatment Logical Model">http://fhir.hl7.org.vn/core/StructureDefinition/bhytXml15TuberculosisLm</a><span style="color: navy">&quot; </span><b>alias </b>BHYTXML15TuberculosisLM <b>as </b><b>target</b>

<span style="color: navy">// </span><span style="color: green">Rows are derived from tuberculosis Condition/EpisodeOfCare/CarePlan/MedicationStatement resources, patient identity data and HIV co-infection clinical resources shared with the XML6 HIV/AIDS table. 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>MapBHYTXML15TuberculosisLM<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>BHYTXML15TuberculosisLM<span style="color: navy">)</span><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ơ (khóa chính liên kết Bảng 1) FHIR path: VNCoreClaim.identifier[MALK].value</span>
  sourceBundle.entry 0<span style="color: navy">..</span>*<b> as </b><span style="color: maroon">maLkSource</span><span style="color: navy"><b> -&gt; </b></span>targetRow.maLk <i>&quot;maLk&quot;</i><span style="color: navy">;</span>
  <span style="color: navy">// </span><span style="color: green">Target field: STT - Số thứ tự dòng FHIR path: Derived export row order for tuberculosis treatment rows</span>
  sourceBundle.entry 0<span style="color: navy">..</span>*<b> as </b><span style="color: maroon">sttSource</span><span style="color: navy"><b> -&gt; </b></span>targetRow.stt <i>&quot;stt&quot;</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ở KBCB FHIR path: VNCorePatient.identifier[MRN].value</span>
  sourceBundle.entry 0<span style="color: navy">..</span>*<b> as </b><span style="color: maroon">maBnSource</span><span style="color: navy"><b> -&gt; </b></span>targetRow.maBn <i>&quot;maBn&quot;</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>
  sourceBundle.entry 0<span style="color: navy">..</span>*<b> as </b><span style="color: maroon">hoTenSource</span><span style="color: navy"><b> -&gt; </b></span>targetRow.hoTen <i>&quot;hoTen&quot;</i><span style="color: navy">;</span>
  <span style="color: navy">// </span><span style="color: green">Target field: SO_CCCD - Số CCCD/số định danh cá nhân/hộ chiếu/giấy khai sinh FHIR path: VNCorePatient.identifier[CCCD].value | VNCorePatient.identifier[HC].value | VNCorePatient.identifier[GKS].value Mapping note: Người nước ngoài ghi số hộ chiếu (identifier[HC]); để trống trong trường hợp bất khả kháng (trẻ sơ sinh, người mất ý thức/tâm thần không lấy được số định danh).</span>
  sourceBundle.entry 0<span style="color: navy">..</span>*<b> as </b><span style="color: maroon">soCccdSource</span><span style="color: navy"><b> -&gt; </b></span>targetRow.soCccd <i>&quot;soCccd&quot;</i><span style="color: navy">;</span>
  <span style="color: navy">// </span><span style="color: green">Target field: PHANLOAI_LAO_VITRI - Phân loại lao theo vị trí giải phẫu (1=Lao phổi; 2=Lao ngoài phổi) FHIR path: VNCoreCondition.bodySite | future tuberculosis-site-classification extension</span>
  sourceBundle.entry 0<span style="color: navy">..</span>*<b> as </b><span style="color: maroon">phanLoaiLaoViTriSource</span><span style="color: navy"><b> -&gt; </b></span>targetRow.phanLoaiLaoViTri <i>&quot;phanLoaiLaoViTri&quot;</i><span style="color: navy">;</span>
  <span style="color: navy">// </span><span style="color: green">Target field: PHANLOAI_LAO_TS - Phân loại lao theo tiền sử điều trị (1=Lao mới; 2=Tái phát; 3=Thất bại; 4=Điều trị lại sau bỏ trị; 5=Điều trị lại khác; 6=Không rõ tiền sử) FHIR path: VNCoreCondition | future tuberculosis-treatment-history-classification extension</span>
  sourceBundle.entry 0<span style="color: navy">..</span>*<b> as </b><span style="color: maroon">phanLoaiLaoTsSource</span><span style="color: navy"><b> -&gt; </b></span>targetRow.phanLoaiLaoTs <i>&quot;phanLoaiLaoTs&quot;</i><span style="color: navy">;</span>
  <span style="color: navy">// </span><span style="color: green">Target field: PHANLOAI_LAO_HIV - Phân loại lao theo tình trạng nhiễm HIV (1=Lao/HIV(+); 2=Lao/HIV(-); 3=Không rõ tình trạng HIV) FHIR path: VNCoreCondition | future tuberculosis-HIV-status-classification extension</span>
  sourceBundle.entry 0<span style="color: navy">..</span>*<b> as </b><span style="color: maroon">phanLoaiLaoHivSource</span><span style="color: navy"><b> -&gt; </b></span>targetRow.phanLoaiLaoHiv <i>&quot;phanLoaiLaoHiv&quot;</i><span style="color: navy">;</span>
  <span style="color: navy">// </span><span style="color: green">Target field: PHANLOAI_LAO_VK - Phân loại lao theo bằng chứng vi khuẩn học (1=Có bằng chứng vi khuẩn học; 2=Không có bằng chứng vi khuẩn học) FHIR path: VNCoreCondition | future tuberculosis-bacteriological-evidence extension</span>
  sourceBundle.entry 0<span style="color: navy">..</span>*<b> as </b><span style="color: maroon">phanLoaiLaoVkSource</span><span style="color: navy"><b> -&gt; </b></span>targetRow.phanLoaiLaoVk <i>&quot;phanLoaiLaoVk&quot;</i><span style="color: navy">;</span>
  <span style="color: navy">// </span><span style="color: green">Target field: PHANLOAI_LAO_KT - Phân loại lao theo tình trạng kháng thuốc (1=Kháng đơn thuốc; 2=Kháng nhiều thuốc; 3=Đa kháng thuốc; 4=Kháng Rifampicin; 5=Tiền siêu kháng; 6=Siêu kháng thuốc) FHIR path: VNCoreCondition | future tuberculosis-drug-resistance-classification extension</span>
  sourceBundle.entry 0<span style="color: navy">..</span>*<b> as </b><span style="color: maroon">phanLoaiLaoKtSource</span><span style="color: navy"><b> -&gt; </b></span>targetRow.phanLoaiLaoKt <i>&quot;phanLoaiLaoKt&quot;</i><span style="color: navy">;</span>
  <span style="color: navy">// </span><span style="color: green">Target field: LOAI_DTRI_LAO - Loại điều trị lao (0=Không điều trị lao; 1=Điều trị lao tiềm ẩn; 2=Điều trị lao nhạy cảm thuốc; 3=Điều trị lao kháng thuốc) FHIR path: VNCoreEpisodeOfCare.type | VNCoreCarePlan.category</span>
  sourceBundle.entry 0<span style="color: navy">..</span>*<b> as </b><span style="color: maroon">loaiDtriLaoSource</span><span style="color: navy"><b> -&gt; </b></span>targetRow.loaiDtriLao <i>&quot;loaiDtriLao&quot;</i><span style="color: navy">;</span>
  <span style="color: navy">// </span><span style="color: green">Target field: NGAYBD_DTRI_LAO - Ngày bắt đầu điều trị lao/lao tiềm ẩn tại cơ sở KBCB (yyyymmdd) FHIR path: VNCoreEpisodeOfCare.period.start | VNCoreCarePlan.period.start</span>
  sourceBundle.entry 0<span style="color: navy">..</span>*<b> as </b><span style="color: maroon">ngayBdDtriLaoSource</span><span style="color: navy"><b> -&gt; </b></span>targetRow.ngayBdDtriLao <i>&quot;ngayBdDtriLao&quot;</i><span style="color: navy">;</span>
  <span style="color: navy">// </span><span style="color: green">Target field: PHACDO_DTRI_LAO - Mã phác đồ điều trị lao (1-8 lao nhạy cảm thuốc; 9-19 lao kháng thuốc; 20-27 lao tiềm ẩn) FHIR path: VNCoreCarePlan.category | VNCoreMedicationStatement.medicationCodeableConcept | future tuberculosis-regimen extension Mapping note: Sửa đổi toàn bộ, danh mục mã mở rộng 1-27 theo QĐ 3176/QĐ-BYT: nhóm A1/A2/A1a/A2a/B1/B2/B2a/cá thể (1-8), nhóm kháng thuốc C1a..E/cá thể khác (9-19), nhóm lao tiềm ẩn 6H/9H..khác (20-27).</span>
  sourceBundle.entry 0<span style="color: navy">..</span>*<b> as </b><span style="color: maroon">phacDoDtriLaoSource</span><span style="color: navy"><b> -&gt; </b></span>targetRow.phacDoDtriLao <i>&quot;phacDoDtriLao&quot;</i><span style="color: navy">;</span>
  <span style="color: navy">// </span><span style="color: green">Target field: NGAYKT_DTRI_LAO - Ngày kết thúc điều trị lao/lao tiềm ẩn tại cơ sở KBCB (yyyymmdd) FHIR path: VNCoreEpisodeOfCare.period.end | VNCoreCarePlan.period.end Mapping note: Để trống khi chưa kết thúc điều trị.</span>
  sourceBundle.entry 0<span style="color: navy">..</span>*<b> as </b><span style="color: maroon">ngayKtDtriLaoSource</span><span style="color: navy"><b> -&gt; </b></span>targetRow.ngayKtDtriLao <i>&quot;ngayKtDtriLao&quot;</i><span style="color: navy">;</span>
  <span style="color: navy">// </span><span style="color: green">Target field: KET_QUA_DTRI_LAO - Kết quả điều trị lao (1=Khỏi; 2=Hoàn thành điều trị; 3=Thất bại; 4=Chết; 5=Không theo dõi được (bỏ); 6=Không đánh giá) FHIR path: VNCoreEpisodeOfCare | future tuberculosis-treatment-outcome extension</span>
  sourceBundle.entry 0<span style="color: navy">..</span>*<b> as </b><span style="color: maroon">ketQuaDtriLaoSource</span><span style="color: navy"><b> -&gt; </b></span>targetRow.ketQuaDtriLao <i>&quot;ketQuaDtriLao&quot;</i><span style="color: navy">;</span>
  <span style="color: navy">// </span><span style="color: green">Target field: MA_CSKCB - Mã cơ sở KBCB nơi người bệnh đến khám, điều trị FHIR path: VNCoreEncounter.serviceProvider.resolve().identifier[CSKCB].value | VNCoreClaim.provider.resolve().identifier[CSKCB].value</span>
  sourceBundle.entry 0<span style="color: navy">..</span>*<b> as </b><span style="color: maroon">maCskcbSource</span><span style="color: navy"><b> -&gt; </b></span>targetRow.maCskcb <i>&quot;maCskcb&quot;</i><span style="color: navy">;</span>
  <span style="color: navy">// </span><span style="color: green">Target field: NGAYKD_HIV - Ngày khẳng định nhiễm HIV (yyyymmdd) FHIR path: VNCoreCondition.onsetDateTime | Observation.effectiveDateTime Mapping note: Tái dùng map của trường NGAYKD_HIV Bảng 6 (XML6). Để trống trong trường hợp điều trị phơi nhiễm.</span>
  sourceBundle.entry 0<span style="color: navy">..</span>*<b> as </b><span style="color: maroon">ngayKdHivSource</span><span style="color: navy"><b> -&gt; </b></span>targetRow.ngayKdHiv <i>&quot;ngayKdHiv&quot;</i><span style="color: navy">;</span>
  <span style="color: navy">// </span><span style="color: green">Target field: BDDT_ARV - Ngày đầu tiên người bệnh nhận thuốc ARV (yyyymmdd) FHIR path: VNCoreMedicationStatement.effectiveDateTime | VNCoreMedicationAdministration.effectiveDateTime Mapping note: Thời điểm đầu tiên nhận thuốc ARV theo hồ sơ bệnh án; phân biệt với CTX qua MedicationStatement.medicationCodeableConcept (ARV).</span>
  sourceBundle.entry 0<span style="color: navy">..</span>*<b> as </b><span style="color: maroon">bddtArvSource</span><span style="color: navy"><b> -&gt; </b></span>targetRow.bddtArv <i>&quot;bddtArv&quot;</i><span style="color: navy">;</span>
  <span style="color: navy">// </span><span style="color: green">Target field: NGAY_BAT_DAU_DT_CTX - Ngày bắt đầu điều trị Cotrimoxazol (CTX) (yyyymmdd) FHIR path: VNCoreMedicationStatement.effectiveDateTime | VNCoreMedicationAdministration.effectiveDateTime Mapping note: Thời điểm bắt đầu điều trị dự phòng Cotrimoxazol; phân biệt với ARV qua MedicationStatement.medicationCodeableConcept (Cotrimoxazole).</span>
  sourceBundle.entry 0<span style="color: navy">..</span>*<b> as </b><span style="color: maroon">ngayBatDauDtCtxSource</span><span style="color: navy"><b> -&gt; </b></span>targetRow.ngayBatDauDtCtx <i>&quot;ngayBatDauDtCtx&quot;</i><span style="color: navy">;</span>
  <span style="color: navy">// </span><span style="color: green">Target field: DU_PHONG - Trường dự phòng (bổ sung: dữ liệu chữ ký số của cơ sở KBCB) FHIR path: VNCoreProvenance.signature.data Mapping note: Theo bản sửa đổi QĐ 3176/QĐ-BYT, trường dự phòng nay dùng để ghi dữ liệu chữ ký số của cơ sở KBCB (NĐ 137/2024/NĐ-CP).</span>
  sourceBundle.entry 0<span style="color: navy">..</span>*<b> as </b><span style="color: maroon">duPhongSource</span><span style="color: navy"><b> -&gt; </b></span>targetRow.duPhong <i>&quot;duPhong&quot;</i><span style="color: navy">;</span>
<span style="color: navy">}

</span></pre></div>
  </text>
  <extension
             url="http://fhir.hl7.org.vn/core/StructureDefinition/vn-ext-legal-basis">
    <valueCoding>
      <system
              value="http://fhir.hl7.org.vn/core/CodeSystem/vn-legal-document-ref-cs"/>
      <code value="QD-3176-2024"/>
    </valueCoding>
  </extension>
  <url
       value="http://fhir.hl7.org.vn/core/StructureMap/vn-sm-bhyt-xml15-tuberculosis"/>
  <identifier>
    <system value="urn:ietf:rfc:3986"/>
    <value value="urn:oid:2.25.161089673617632664299011809196868855799.43.7"/>
  </identifier>
  <version value="0.9.0"/>
  <name value="BHYTXML15TuberculosisLMStructureMap"/>
  <title
         value="Bảng 15 quản lý điều trị bệnh lao — XML15 Tuberculosis Treatment 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 15 quản lý điều trị bệnh lao — XML15 Tuberculosis Treatment Logical Model. Source semantics come from the logical model mapping annotations in `BHYTXML15TuberculosisLM.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-XML15 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/bhytXml15TuberculosisLm"/>
    <mode value="target"/>
    <alias value="BHYTXML15TuberculosisLM"/>
    <documentation
                   value="Bảng 15 quản lý điều trị bệnh lao — XML15 Tuberculosis Treatment Logical Model"/>
  </structure>
  <group>
    <name value="MapBHYTXML15TuberculosisLM"/>
    <typeMode value="none"/>
    <documentation
                   value="Rows are derived from tuberculosis Condition/EpisodeOfCare/CarePlan/MedicationStatement resources, patient identity data and HIV co-infection clinical resources shared with the XML6 HIV/AIDS table. 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="BHYTXML15TuberculosisLM"/>
      <mode value="target"/>
      <documentation
                     value="Bảng 15 quản lý điều trị bệnh lao — XML15 Tuberculosis Treatment 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ơ (khóa chính liên kết Bảng 1) FHIR path: VNCoreClaim.identifier[MALK].value"/>
    </rule>
    <rule>
      <name value="stt"/>
      <source>
        <context value="sourceBundle"/>
        <min value="0"/>
        <max value="*"/>
        <element value="entry"/>
        <variable value="sttSource"/>
      </source>
      <target>
        <context value="targetRow"/>
        <contextType value="variable"/>
        <element value="stt"/>
      </target>
      <documentation
                     value="Target field: STT - Số thứ tự dòng FHIR path: Derived export row order for tuberculosis treatment rows"/>
    </rule>
    <rule>
      <name value="maBn"/>
      <source>
        <context value="sourceBundle"/>
        <min value="0"/>
        <max value="*"/>
        <element value="entry"/>
        <variable value="maBnSource"/>
      </source>
      <target>
        <context value="targetRow"/>
        <contextType value="variable"/>
        <element value="maBn"/>
      </target>
      <documentation
                     value="Target field: MA_BN - Mã người bệnh tại cơ sở KBCB FHIR path: VNCorePatient.identifier[MRN].value"/>
    </rule>
    <rule>
      <name value="hoTen"/>
      <source>
        <context value="sourceBundle"/>
        <min value="0"/>
        <max value="*"/>
        <element value="entry"/>
        <variable value="hoTenSource"/>
      </source>
      <target>
        <context value="targetRow"/>
        <contextType value="variable"/>
        <element value="hoTen"/>
      </target>
      <documentation
                     value="Target field: HO_TEN - Họ tên người bệnh FHIR path: VNCorePatient.name.text"/>
    </rule>
    <rule>
      <name value="soCccd"/>
      <source>
        <context value="sourceBundle"/>
        <min value="0"/>
        <max value="*"/>
        <element value="entry"/>
        <variable value="soCccdSource"/>
      </source>
      <target>
        <context value="targetRow"/>
        <contextType value="variable"/>
        <element value="soCccd"/>
      </target>
      <documentation
                     value="Target field: SO_CCCD - Số CCCD/số định danh cá nhân/hộ chiếu/giấy khai sinh FHIR path: VNCorePatient.identifier[CCCD].value | VNCorePatient.identifier[HC].value | VNCorePatient.identifier[GKS].value Mapping note: Người nước ngoài ghi số hộ chiếu (identifier[HC]); để trống trong trường hợp bất khả kháng (trẻ sơ sinh, người mất ý thức/tâm thần không lấy được số định danh)."/>
    </rule>
    <rule>
      <name value="phanLoaiLaoViTri"/>
      <source>
        <context value="sourceBundle"/>
        <min value="0"/>
        <max value="*"/>
        <element value="entry"/>
        <variable value="phanLoaiLaoViTriSource"/>
      </source>
      <target>
        <context value="targetRow"/>
        <contextType value="variable"/>
        <element value="phanLoaiLaoViTri"/>
      </target>
      <documentation
                     value="Target field: PHANLOAI_LAO_VITRI - Phân loại lao theo vị trí giải phẫu (1=Lao phổi; 2=Lao ngoài phổi) FHIR path: VNCoreCondition.bodySite | future tuberculosis-site-classification extension"/>
    </rule>
    <rule>
      <name value="phanLoaiLaoTs"/>
      <source>
        <context value="sourceBundle"/>
        <min value="0"/>
        <max value="*"/>
        <element value="entry"/>
        <variable value="phanLoaiLaoTsSource"/>
      </source>
      <target>
        <context value="targetRow"/>
        <contextType value="variable"/>
        <element value="phanLoaiLaoTs"/>
      </target>
      <documentation
                     value="Target field: PHANLOAI_LAO_TS - Phân loại lao theo tiền sử điều trị (1=Lao mới; 2=Tái phát; 3=Thất bại; 4=Điều trị lại sau bỏ trị; 5=Điều trị lại khác; 6=Không rõ tiền sử) FHIR path: VNCoreCondition | future tuberculosis-treatment-history-classification extension"/>
    </rule>
    <rule>
      <name value="phanLoaiLaoHiv"/>
      <source>
        <context value="sourceBundle"/>
        <min value="0"/>
        <max value="*"/>
        <element value="entry"/>
        <variable value="phanLoaiLaoHivSource"/>
      </source>
      <target>
        <context value="targetRow"/>
        <contextType value="variable"/>
        <element value="phanLoaiLaoHiv"/>
      </target>
      <documentation
                     value="Target field: PHANLOAI_LAO_HIV - Phân loại lao theo tình trạng nhiễm HIV (1=Lao/HIV(+); 2=Lao/HIV(-); 3=Không rõ tình trạng HIV) FHIR path: VNCoreCondition | future tuberculosis-HIV-status-classification extension"/>
    </rule>
    <rule>
      <name value="phanLoaiLaoVk"/>
      <source>
        <context value="sourceBundle"/>
        <min value="0"/>
        <max value="*"/>
        <element value="entry"/>
        <variable value="phanLoaiLaoVkSource"/>
      </source>
      <target>
        <context value="targetRow"/>
        <contextType value="variable"/>
        <element value="phanLoaiLaoVk"/>
      </target>
      <documentation
                     value="Target field: PHANLOAI_LAO_VK - Phân loại lao theo bằng chứng vi khuẩn học (1=Có bằng chứng vi khuẩn học; 2=Không có bằng chứng vi khuẩn học) FHIR path: VNCoreCondition | future tuberculosis-bacteriological-evidence extension"/>
    </rule>
    <rule>
      <name value="phanLoaiLaoKt"/>
      <source>
        <context value="sourceBundle"/>
        <min value="0"/>
        <max value="*"/>
        <element value="entry"/>
        <variable value="phanLoaiLaoKtSource"/>
      </source>
      <target>
        <context value="targetRow"/>
        <contextType value="variable"/>
        <element value="phanLoaiLaoKt"/>
      </target>
      <documentation
                     value="Target field: PHANLOAI_LAO_KT - Phân loại lao theo tình trạng kháng thuốc (1=Kháng đơn thuốc; 2=Kháng nhiều thuốc; 3=Đa kháng thuốc; 4=Kháng Rifampicin; 5=Tiền siêu kháng; 6=Siêu kháng thuốc) FHIR path: VNCoreCondition | future tuberculosis-drug-resistance-classification extension"/>
    </rule>
    <rule>
      <name value="loaiDtriLao"/>
      <source>
        <context value="sourceBundle"/>
        <min value="0"/>
        <max value="*"/>
        <element value="entry"/>
        <variable value="loaiDtriLaoSource"/>
      </source>
      <target>
        <context value="targetRow"/>
        <contextType value="variable"/>
        <element value="loaiDtriLao"/>
      </target>
      <documentation
                     value="Target field: LOAI_DTRI_LAO - Loại điều trị lao (0=Không điều trị lao; 1=Điều trị lao tiềm ẩn; 2=Điều trị lao nhạy cảm thuốc; 3=Điều trị lao kháng thuốc) FHIR path: VNCoreEpisodeOfCare.type | VNCoreCarePlan.category"/>
    </rule>
    <rule>
      <name value="ngayBdDtriLao"/>
      <source>
        <context value="sourceBundle"/>
        <min value="0"/>
        <max value="*"/>
        <element value="entry"/>
        <variable value="ngayBdDtriLaoSource"/>
      </source>
      <target>
        <context value="targetRow"/>
        <contextType value="variable"/>
        <element value="ngayBdDtriLao"/>
      </target>
      <documentation
                     value="Target field: NGAYBD_DTRI_LAO - Ngày bắt đầu điều trị lao/lao tiềm ẩn tại cơ sở KBCB (yyyymmdd) FHIR path: VNCoreEpisodeOfCare.period.start | VNCoreCarePlan.period.start"/>
    </rule>
    <rule>
      <name value="phacDoDtriLao"/>
      <source>
        <context value="sourceBundle"/>
        <min value="0"/>
        <max value="*"/>
        <element value="entry"/>
        <variable value="phacDoDtriLaoSource"/>
      </source>
      <target>
        <context value="targetRow"/>
        <contextType value="variable"/>
        <element value="phacDoDtriLao"/>
      </target>
      <documentation
                     value="Target field: PHACDO_DTRI_LAO - Mã phác đồ điều trị lao (1-8 lao nhạy cảm thuốc; 9-19 lao kháng thuốc; 20-27 lao tiềm ẩn) FHIR path: VNCoreCarePlan.category | VNCoreMedicationStatement.medicationCodeableConcept | future tuberculosis-regimen extension Mapping note: Sửa đổi toàn bộ, danh mục mã mở rộng 1-27 theo QĐ 3176/QĐ-BYT: nhóm A1/A2/A1a/A2a/B1/B2/B2a/cá thể (1-8), nhóm kháng thuốc C1a..E/cá thể khác (9-19), nhóm lao tiềm ẩn 6H/9H..khác (20-27)."/>
    </rule>
    <rule>
      <name value="ngayKtDtriLao"/>
      <source>
        <context value="sourceBundle"/>
        <min value="0"/>
        <max value="*"/>
        <element value="entry"/>
        <variable value="ngayKtDtriLaoSource"/>
      </source>
      <target>
        <context value="targetRow"/>
        <contextType value="variable"/>
        <element value="ngayKtDtriLao"/>
      </target>
      <documentation
                     value="Target field: NGAYKT_DTRI_LAO - Ngày kết thúc điều trị lao/lao tiềm ẩn tại cơ sở KBCB (yyyymmdd) FHIR path: VNCoreEpisodeOfCare.period.end | VNCoreCarePlan.period.end Mapping note: Để trống khi chưa kết thúc điều trị."/>
    </rule>
    <rule>
      <name value="ketQuaDtriLao"/>
      <source>
        <context value="sourceBundle"/>
        <min value="0"/>
        <max value="*"/>
        <element value="entry"/>
        <variable value="ketQuaDtriLaoSource"/>
      </source>
      <target>
        <context value="targetRow"/>
        <contextType value="variable"/>
        <element value="ketQuaDtriLao"/>
      </target>
      <documentation
                     value="Target field: KET_QUA_DTRI_LAO - Kết quả điều trị lao (1=Khỏi; 2=Hoàn thành điều trị; 3=Thất bại; 4=Chết; 5=Không theo dõi được (bỏ); 6=Không đánh giá) FHIR path: VNCoreEpisodeOfCare | future tuberculosis-treatment-outcome extension"/>
    </rule>
    <rule>
      <name value="maCskcb"/>
      <source>
        <context value="sourceBundle"/>
        <min value="0"/>
        <max value="*"/>
        <element value="entry"/>
        <variable value="maCskcbSource"/>
      </source>
      <target>
        <context value="targetRow"/>
        <contextType value="variable"/>
        <element value="maCskcb"/>
      </target>
      <documentation
                     value="Target field: MA_CSKCB - Mã cơ sở KBCB nơi người bệnh đến khám, điều trị FHIR path: VNCoreEncounter.serviceProvider.resolve().identifier[CSKCB].value | VNCoreClaim.provider.resolve().identifier[CSKCB].value"/>
    </rule>
    <rule>
      <name value="ngayKdHiv"/>
      <source>
        <context value="sourceBundle"/>
        <min value="0"/>
        <max value="*"/>
        <element value="entry"/>
        <variable value="ngayKdHivSource"/>
      </source>
      <target>
        <context value="targetRow"/>
        <contextType value="variable"/>
        <element value="ngayKdHiv"/>
      </target>
      <documentation
                     value="Target field: NGAYKD_HIV - Ngày khẳng định nhiễm HIV (yyyymmdd) FHIR path: VNCoreCondition.onsetDateTime | Observation.effectiveDateTime Mapping note: Tái dùng map của trường NGAYKD_HIV Bảng 6 (XML6). Để trống trong trường hợp điều trị phơi nhiễm."/>
    </rule>
    <rule>
      <name value="bddtArv"/>
      <source>
        <context value="sourceBundle"/>
        <min value="0"/>
        <max value="*"/>
        <element value="entry"/>
        <variable value="bddtArvSource"/>
      </source>
      <target>
        <context value="targetRow"/>
        <contextType value="variable"/>
        <element value="bddtArv"/>
      </target>
      <documentation
                     value="Target field: BDDT_ARV - Ngày đầu tiên người bệnh nhận thuốc ARV (yyyymmdd) FHIR path: VNCoreMedicationStatement.effectiveDateTime | VNCoreMedicationAdministration.effectiveDateTime Mapping note: Thời điểm đầu tiên nhận thuốc ARV theo hồ sơ bệnh án; phân biệt với CTX qua MedicationStatement.medicationCodeableConcept (ARV)."/>
    </rule>
    <rule>
      <name value="ngayBatDauDtCtx"/>
      <source>
        <context value="sourceBundle"/>
        <min value="0"/>
        <max value="*"/>
        <element value="entry"/>
        <variable value="ngayBatDauDtCtxSource"/>
      </source>
      <target>
        <context value="targetRow"/>
        <contextType value="variable"/>
        <element value="ngayBatDauDtCtx"/>
      </target>
      <documentation
                     value="Target field: NGAY_BAT_DAU_DT_CTX - Ngày bắt đầu điều trị Cotrimoxazol (CTX) (yyyymmdd) FHIR path: VNCoreMedicationStatement.effectiveDateTime | VNCoreMedicationAdministration.effectiveDateTime Mapping note: Thời điểm bắt đầu điều trị dự phòng Cotrimoxazol; phân biệt với ARV qua MedicationStatement.medicationCodeableConcept (Cotrimoxazole)."/>
    </rule>
    <rule>
      <name value="duPhong"/>
      <source>
        <context value="sourceBundle"/>
        <min value="0"/>
        <max value="*"/>
        <element value="entry"/>
        <variable value="duPhongSource"/>
      </source>
      <target>
        <context value="targetRow"/>
        <contextType value="variable"/>
        <element value="duPhong"/>
      </target>
      <documentation
                     value="Target field: DU_PHONG - Trường dự phòng (bổ sung: dữ liệu chữ ký số của cơ sở KBCB) FHIR path: VNCoreProvenance.signature.data Mapping note: Theo bản sửa đổi QĐ 3176/QĐ-BYT, trường dự phòng nay dùng để ghi dữ liệu chữ ký số của cơ sở KBCB (NĐ 137/2024/NĐ-CP)."/>
    </rule>
  </group>
</StructureMap>