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 - Local Development build (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ô ttl | Tải xuống

@prefix fhir: <http://hl7.org/fhir/> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

# - resource -------------------------------------------------------------------

<http://hl7.org/fhir/StructureMap/vn-sm-bhyt-xml15-tuberculosis> a fhir:StructureMap ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:Resource.id [ fhir:value "vn-sm-bhyt-xml15-tuberculosis"] ;
  fhir:Resource.language [ fhir:value "vi"] ;
  fhir:DomainResource.text [
     fhir:Narrative.status [ fhir:value "generated" ] ;
     fhir:Narrative.div "<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\">#xD;\n<b>map</b><span style=\"color: navy\"> \"</span>http://fhir.hl7.org.vn/core/StructureMap/vn-sm-bhyt-xml15-tuberculosis<span style=\"color: navy\">\" = \"</span>BHYTXML15TuberculosisLMStructureMap<span style=\"color: navy\">\"#xD;\n#xD;\n</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>#xD;\n#xD;\n<span style=\"color: navy\">// </span><span style=\"color: green\">FHIR-native source bundle profile used by the repository round-trip adapter.</span>#xD;\n<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>#xD;\n<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>#xD;\n<b>uses</b><span style=\"color: navy\"> \"</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\">\" </span><b>alias </b>BHYTXML15TuberculosisLM <b>as </b><b>target</b>#xD;\n#xD;\n<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>#xD;\n<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\"> {#xD;\n</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>#xD;\n  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>\"maLk\"</i><span style=\"color: navy\">;</span>#xD;\n  <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>#xD;\n  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>\"stt\"</i><span style=\"color: navy\">;</span>#xD;\n  <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>#xD;\n  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>\"maBn\"</i><span style=\"color: navy\">;</span>#xD;\n  <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>#xD;\n  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>\"hoTen\"</i><span style=\"color: navy\">;</span>#xD;\n  <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>#xD;\n  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>\"soCccd\"</i><span style=\"color: navy\">;</span>#xD;\n  <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>#xD;\n  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>\"phanLoaiLaoViTri\"</i><span style=\"color: navy\">;</span>#xD;\n  <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>#xD;\n  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>\"phanLoaiLaoTs\"</i><span style=\"color: navy\">;</span>#xD;\n  <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>#xD;\n  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>\"phanLoaiLaoHiv\"</i><span style=\"color: navy\">;</span>#xD;\n  <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>#xD;\n  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>\"phanLoaiLaoVk\"</i><span style=\"color: navy\">;</span>#xD;\n  <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>#xD;\n  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>\"phanLoaiLaoKt\"</i><span style=\"color: navy\">;</span>#xD;\n  <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>#xD;\n  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>\"loaiDtriLao\"</i><span style=\"color: navy\">;</span>#xD;\n  <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>#xD;\n  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>\"ngayBdDtriLao\"</i><span style=\"color: navy\">;</span>#xD;\n  <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>#xD;\n  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>\"phacDoDtriLao\"</i><span style=\"color: navy\">;</span>#xD;\n  <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>#xD;\n  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>\"ngayKtDtriLao\"</i><span style=\"color: navy\">;</span>#xD;\n  <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>#xD;\n  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>\"ketQuaDtriLao\"</i><span style=\"color: navy\">;</span>#xD;\n  <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>#xD;\n  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>\"maCskcb\"</i><span style=\"color: navy\">;</span>#xD;\n  <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>#xD;\n  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>\"ngayKdHiv\"</i><span style=\"color: navy\">;</span>#xD;\n  <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>#xD;\n  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>\"bddtArv\"</i><span style=\"color: navy\">;</span>#xD;\n  <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>#xD;\n  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>\"ngayBatDauDtCtx\"</i><span style=\"color: navy\">;</span>#xD;\n  <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>#xD;\n  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>\"duPhong\"</i><span style=\"color: navy\">;</span>#xD;\n<span style=\"color: navy\">}#xD;\n#xD;\n</span></pre></div>"
  ] ;
  fhir:DomainResource.extension [
     fhir:index -1 ;
     fhir:Extension.url [ fhir:value "http://fhir.hl7.org.vn/core/StructureDefinition/vn-ext-legal-basis" ] ;
     fhir:Extension.valueCoding [
       fhir:Coding.system [ fhir:value "http://fhir.hl7.org.vn/core/CodeSystem/vn-legal-document-ref-cs" ] ;
       fhir:Coding.code [ fhir:value "QD-3176-2024" ]
     ]
  ] ;
  fhir:StructureMap.url [ fhir:value "http://fhir.hl7.org.vn/core/StructureMap/vn-sm-bhyt-xml15-tuberculosis"] ;
  fhir:StructureMap.identifier [
     fhir:index -1 ;
     fhir:Identifier.system [ fhir:value "urn:ietf:rfc:3986" ] ;
     fhir:Identifier.value [ fhir:value "urn:oid:2.25.161089673617632664299011809196868855799.43.7" ]
  ] ;
  fhir:StructureMap.version [ fhir:value "0.9.0"] ;
  fhir:StructureMap.name [ fhir:value "BHYTXML15TuberculosisLMStructureMap"] ;
  fhir:StructureMap.title [ fhir:value "Bảng 15 quản lý điều trị bệnh lao — XML15 Tuberculosis Treatment Logical Model — StructureMap"] ;
  fhir:StructureMap.status [ fhir:value "draft"] ;
  fhir:StructureMap.experimental [ fhir:value "false"^^xsd:boolean] ;
  fhir:StructureMap.date [ fhir:value "2026-04-28"^^xsd:date] ;
  fhir:StructureMap.publisher [ fhir:value "Omi HealthTech / VN Core FHIR Community Initiative"] ;
  fhir:StructureMap.contact [
     fhir:index -1 ;
     fhir:ContactDetail.name [ fhir:value "Omi HealthTech / VN Core FHIR Community Initiative" ] ;
     fhir:ContactDetail.telecom [
       fhir:index -1 ;
       fhir:ContactPoint.system [ fhir:value "url" ] ;
       fhir:ContactPoint.value [ fhir:value "https://hl7.org.vn" ]
     ], [
       fhir:index -1 ;
       fhir:ContactPoint.system [ fhir:value "email" ] ;
       fhir:ContactPoint.value [ fhir:value "info@hl7.org.vn" ]
     ]
  ], [
     fhir:index -1 ;
     fhir:ContactDetail.name [ fhir:value "Omi HealthTech (OmiGroup)" ] ;
     fhir:ContactDetail.telecom [
       fhir:index -1 ;
       fhir:ContactPoint.system [ fhir:value "url" ] ;
       fhir:ContactPoint.value [ fhir:value "https://omihealthtech.vn" ]
     ], [
       fhir:index -1 ;
       fhir:ContactPoint.system [ fhir:value "url" ] ;
       fhir:ContactPoint.value [ fhir:value "https://omigroup.vn" ]
     ], [
       fhir:index -1 ;
       fhir:ContactPoint.system [ fhir:value "email" ] ;
       fhir:ContactPoint.value [ fhir:value "info@hl7.org.vn" ]
     ]
  ] ;
  fhir:StructureMap.description [ fhir: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."] ;
  fhir:StructureMap.jurisdiction [
     fhir:index -1 ;
     fhir:CodeableConcept.coding [
       fhir:index -1 ;
       fhir:Coding.system [ fhir:value "urn:iso:std:iso:3166" ] ;
       fhir:Coding.code [ fhir:value "VN" ] ;
       fhir:Coding.display [ fhir:value "Viet Nam" ]
     ]
  ] ;
  fhir:StructureMap.purpose [ fhir: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."] ;
  fhir:StructureMap.structure [
     fhir:index -1 ;
     fhir:StructureMap.structure.url [
       fhir:value "http://fhir.hl7.org.vn/core/StructureDefinition/vn-core-bhyt-submission-bundle" ;
       fhir:link <http://fhir.hl7.org.vn/core/StructureDefinition/vn-core-bhyt-submission-bundle>
     ] ;
     fhir:StructureMap.structure.mode [ fhir:value "source" ] ;
     fhir:StructureMap.structure.alias [ fhir:value "BHYTSubmissionBundle" ] ;
     fhir:StructureMap.structure.documentation [ fhir:value "FHIR-native source bundle profile used by the repository round-trip adapter." ]
  ], [
     fhir:index -1 ;
     fhir:StructureMap.structure.url [
       fhir:value "http://fhir.hl7.org.vn/core/StructureDefinition/bhytXml15TuberculosisLm" ;
       fhir:link <http://fhir.hl7.org.vn/core/StructureDefinition/bhytXml15TuberculosisLm>
     ] ;
     fhir:StructureMap.structure.mode [ fhir:value "target" ] ;
     fhir:StructureMap.structure.alias [ fhir:value "BHYTXML15TuberculosisLM" ] ;
     fhir:StructureMap.structure.documentation [ fhir:value "Bảng 15 quản lý điều trị bệnh lao — XML15 Tuberculosis Treatment Logical Model" ]
  ] ;
  fhir:StructureMap.group [
     fhir:index -1 ;
     fhir:StructureMap.group.name [ fhir:value "MapBHYTXML15TuberculosisLM" ] ;
     fhir:StructureMap.group.typeMode [ fhir:value "none" ] ;
     fhir:StructureMap.group.documentation [ fhir: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`." ] ;
     fhir:StructureMap.group.input [
       fhir:index -1 ;
       fhir:StructureMap.group.input.name [ fhir:value "sourceBundle" ] ;
       fhir:StructureMap.group.input.type [ fhir:value "BHYTSubmissionBundle" ] ;
       fhir:StructureMap.group.input.mode [ fhir:value "source" ] ;
       fhir:StructureMap.group.input.documentation [ fhir:value "VN Core BHYT submission bundle." ]
     ], [
       fhir:index -1 ;
       fhir:StructureMap.group.input.name [ fhir:value "targetRow" ] ;
       fhir:StructureMap.group.input.type [ fhir:value "BHYTXML15TuberculosisLM" ] ;
       fhir:StructureMap.group.input.mode [ fhir:value "target" ] ;
       fhir:StructureMap.group.input.documentation [ fhir:value "Bảng 15 quản lý điều trị bệnh lao — XML15 Tuberculosis Treatment Logical Model" ]
     ] ;
     fhir:StructureMap.group.rule [
       fhir:index -1 ;
       fhir:StructureMap.group.rule.name [ fhir:value "maLk" ] ;
       fhir:StructureMap.group.rule.source [
         fhir:index -1 ;
         fhir:StructureMap.group.rule.source.context [ fhir:value "sourceBundle" ] ;
         fhir:StructureMap.group.rule.source.min [ fhir:value "0"^^xsd:integer ] ;
         fhir:StructureMap.group.rule.source.max [ fhir:value "*" ] ;
         fhir:StructureMap.group.rule.source.element [ fhir:value "entry" ] ;
         fhir:StructureMap.group.rule.source.variable [ fhir:value "maLkSource" ]
       ] ;
       fhir:StructureMap.group.rule.target [
         fhir:index -1 ;
         fhir:StructureMap.group.rule.target.context [ fhir:value "targetRow" ] ;
         fhir:StructureMap.group.rule.target.contextType [ fhir:value "variable" ] ;
         fhir:StructureMap.group.rule.target.element [ fhir:value "maLk" ]
       ] ;
       fhir:StructureMap.group.rule.documentation [ fhir: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" ]
     ], [
       fhir:index -1 ;
       fhir:StructureMap.group.rule.name [ fhir:value "stt" ] ;
       fhir:StructureMap.group.rule.source [
         fhir:index -1 ;
         fhir:StructureMap.group.rule.source.context [ fhir:value "sourceBundle" ] ;
         fhir:StructureMap.group.rule.source.min [ fhir:value "0"^^xsd:integer ] ;
         fhir:StructureMap.group.rule.source.max [ fhir:value "*" ] ;
         fhir:StructureMap.group.rule.source.element [ fhir:value "entry" ] ;
         fhir:StructureMap.group.rule.source.variable [ fhir:value "sttSource" ]
       ] ;
       fhir:StructureMap.group.rule.target [
         fhir:index -1 ;
         fhir:StructureMap.group.rule.target.context [ fhir:value "targetRow" ] ;
         fhir:StructureMap.group.rule.target.contextType [ fhir:value "variable" ] ;
         fhir:StructureMap.group.rule.target.element [ fhir:value "stt" ]
       ] ;
       fhir:StructureMap.group.rule.documentation [ fhir:value "Target field: STT - Số thứ tự dòng FHIR path: Derived export row order for tuberculosis treatment rows" ]
     ], [
       fhir:index -1 ;
       fhir:StructureMap.group.rule.name [ fhir:value "maBn" ] ;
       fhir:StructureMap.group.rule.source [
         fhir:index -1 ;
         fhir:StructureMap.group.rule.source.context [ fhir:value "sourceBundle" ] ;
         fhir:StructureMap.group.rule.source.min [ fhir:value "0"^^xsd:integer ] ;
         fhir:StructureMap.group.rule.source.max [ fhir:value "*" ] ;
         fhir:StructureMap.group.rule.source.element [ fhir:value "entry" ] ;
         fhir:StructureMap.group.rule.source.variable [ fhir:value "maBnSource" ]
       ] ;
       fhir:StructureMap.group.rule.target [
         fhir:index -1 ;
         fhir:StructureMap.group.rule.target.context [ fhir:value "targetRow" ] ;
         fhir:StructureMap.group.rule.target.contextType [ fhir:value "variable" ] ;
         fhir:StructureMap.group.rule.target.element [ fhir:value "maBn" ]
       ] ;
       fhir:StructureMap.group.rule.documentation [ fhir:value "Target field: MA_BN - Mã người bệnh tại cơ sở KBCB FHIR path: VNCorePatient.identifier[MRN].value" ]
     ], [
       fhir:index -1 ;
       fhir:StructureMap.group.rule.name [ fhir:value "hoTen" ] ;
       fhir:StructureMap.group.rule.source [
         fhir:index -1 ;
         fhir:StructureMap.group.rule.source.context [ fhir:value "sourceBundle" ] ;
         fhir:StructureMap.group.rule.source.min [ fhir:value "0"^^xsd:integer ] ;
         fhir:StructureMap.group.rule.source.max [ fhir:value "*" ] ;
         fhir:StructureMap.group.rule.source.element [ fhir:value "entry" ] ;
         fhir:StructureMap.group.rule.source.variable [ fhir:value "hoTenSource" ]
       ] ;
       fhir:StructureMap.group.rule.target [
         fhir:index -1 ;
         fhir:StructureMap.group.rule.target.context [ fhir:value "targetRow" ] ;
         fhir:StructureMap.group.rule.target.contextType [ fhir:value "variable" ] ;
         fhir:StructureMap.group.rule.target.element [ fhir:value "hoTen" ]
       ] ;
       fhir:StructureMap.group.rule.documentation [ fhir:value "Target field: HO_TEN - Họ tên người bệnh FHIR path: VNCorePatient.name.text" ]
     ], [
       fhir:index -1 ;
       fhir:StructureMap.group.rule.name [ fhir:value "soCccd" ] ;
       fhir:StructureMap.group.rule.source [
         fhir:index -1 ;
         fhir:StructureMap.group.rule.source.context [ fhir:value "sourceBundle" ] ;
         fhir:StructureMap.group.rule.source.min [ fhir:value "0"^^xsd:integer ] ;
         fhir:StructureMap.group.rule.source.max [ fhir:value "*" ] ;
         fhir:StructureMap.group.rule.source.element [ fhir:value "entry" ] ;
         fhir:StructureMap.group.rule.source.variable [ fhir:value "soCccdSource" ]
       ] ;
       fhir:StructureMap.group.rule.target [
         fhir:index -1 ;
         fhir:StructureMap.group.rule.target.context [ fhir:value "targetRow" ] ;
         fhir:StructureMap.group.rule.target.contextType [ fhir:value "variable" ] ;
         fhir:StructureMap.group.rule.target.element [ fhir:value "soCccd" ]
       ] ;
       fhir:StructureMap.group.rule.documentation [ fhir: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)." ]
     ], [
       fhir:index -1 ;
       fhir:StructureMap.group.rule.name [ fhir:value "phanLoaiLaoViTri" ] ;
       fhir:StructureMap.group.rule.source [
         fhir:index -1 ;
         fhir:StructureMap.group.rule.source.context [ fhir:value "sourceBundle" ] ;
         fhir:StructureMap.group.rule.source.min [ fhir:value "0"^^xsd:integer ] ;
         fhir:StructureMap.group.rule.source.max [ fhir:value "*" ] ;
         fhir:StructureMap.group.rule.source.element [ fhir:value "entry" ] ;
         fhir:StructureMap.group.rule.source.variable [ fhir:value "phanLoaiLaoViTriSource" ]
       ] ;
       fhir:StructureMap.group.rule.target [
         fhir:index -1 ;
         fhir:StructureMap.group.rule.target.context [ fhir:value "targetRow" ] ;
         fhir:StructureMap.group.rule.target.contextType [ fhir:value "variable" ] ;
         fhir:StructureMap.group.rule.target.element [ fhir:value "phanLoaiLaoViTri" ]
       ] ;
       fhir:StructureMap.group.rule.documentation [ fhir: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" ]
     ], [
       fhir:index -1 ;
       fhir:StructureMap.group.rule.name [ fhir:value "phanLoaiLaoTs" ] ;
       fhir:StructureMap.group.rule.source [
         fhir:index -1 ;
         fhir:StructureMap.group.rule.source.context [ fhir:value "sourceBundle" ] ;
         fhir:StructureMap.group.rule.source.min [ fhir:value "0"^^xsd:integer ] ;
         fhir:StructureMap.group.rule.source.max [ fhir:value "*" ] ;
         fhir:StructureMap.group.rule.source.element [ fhir:value "entry" ] ;
         fhir:StructureMap.group.rule.source.variable [ fhir:value "phanLoaiLaoTsSource" ]
       ] ;
       fhir:StructureMap.group.rule.target [
         fhir:index -1 ;
         fhir:StructureMap.group.rule.target.context [ fhir:value "targetRow" ] ;
         fhir:StructureMap.group.rule.target.contextType [ fhir:value "variable" ] ;
         fhir:StructureMap.group.rule.target.element [ fhir:value "phanLoaiLaoTs" ]
       ] ;
       fhir:StructureMap.group.rule.documentation [ fhir: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" ]
     ], [
       fhir:index -1 ;
       fhir:StructureMap.group.rule.name [ fhir:value "phanLoaiLaoHiv" ] ;
       fhir:StructureMap.group.rule.source [
         fhir:index -1 ;
         fhir:StructureMap.group.rule.source.context [ fhir:value "sourceBundle" ] ;
         fhir:StructureMap.group.rule.source.min [ fhir:value "0"^^xsd:integer ] ;
         fhir:StructureMap.group.rule.source.max [ fhir:value "*" ] ;
         fhir:StructureMap.group.rule.source.element [ fhir:value "entry" ] ;
         fhir:StructureMap.group.rule.source.variable [ fhir:value "phanLoaiLaoHivSource" ]
       ] ;
       fhir:StructureMap.group.rule.target [
         fhir:index -1 ;
         fhir:StructureMap.group.rule.target.context [ fhir:value "targetRow" ] ;
         fhir:StructureMap.group.rule.target.contextType [ fhir:value "variable" ] ;
         fhir:StructureMap.group.rule.target.element [ fhir:value "phanLoaiLaoHiv" ]
       ] ;
       fhir:StructureMap.group.rule.documentation [ fhir: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" ]
     ], [
       fhir:index -1 ;
       fhir:StructureMap.group.rule.name [ fhir:value "phanLoaiLaoVk" ] ;
       fhir:StructureMap.group.rule.source [
         fhir:index -1 ;
         fhir:StructureMap.group.rule.source.context [ fhir:value "sourceBundle" ] ;
         fhir:StructureMap.group.rule.source.min [ fhir:value "0"^^xsd:integer ] ;
         fhir:StructureMap.group.rule.source.max [ fhir:value "*" ] ;
         fhir:StructureMap.group.rule.source.element [ fhir:value "entry" ] ;
         fhir:StructureMap.group.rule.source.variable [ fhir:value "phanLoaiLaoVkSource" ]
       ] ;
       fhir:StructureMap.group.rule.target [
         fhir:index -1 ;
         fhir:StructureMap.group.rule.target.context [ fhir:value "targetRow" ] ;
         fhir:StructureMap.group.rule.target.contextType [ fhir:value "variable" ] ;
         fhir:StructureMap.group.rule.target.element [ fhir:value "phanLoaiLaoVk" ]
       ] ;
       fhir:StructureMap.group.rule.documentation [ fhir: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" ]
     ], [
       fhir:index -1 ;
       fhir:StructureMap.group.rule.name [ fhir:value "phanLoaiLaoKt" ] ;
       fhir:StructureMap.group.rule.source [
         fhir:index -1 ;
         fhir:StructureMap.group.rule.source.context [ fhir:value "sourceBundle" ] ;
         fhir:StructureMap.group.rule.source.min [ fhir:value "0"^^xsd:integer ] ;
         fhir:StructureMap.group.rule.source.max [ fhir:value "*" ] ;
         fhir:StructureMap.group.rule.source.element [ fhir:value "entry" ] ;
         fhir:StructureMap.group.rule.source.variable [ fhir:value "phanLoaiLaoKtSource" ]
       ] ;
       fhir:StructureMap.group.rule.target [
         fhir:index -1 ;
         fhir:StructureMap.group.rule.target.context [ fhir:value "targetRow" ] ;
         fhir:StructureMap.group.rule.target.contextType [ fhir:value "variable" ] ;
         fhir:StructureMap.group.rule.target.element [ fhir:value "phanLoaiLaoKt" ]
       ] ;
       fhir:StructureMap.group.rule.documentation [ fhir: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" ]
     ], [
       fhir:index -1 ;
       fhir:StructureMap.group.rule.name [ fhir:value "loaiDtriLao" ] ;
       fhir:StructureMap.group.rule.source [
         fhir:index -1 ;
         fhir:StructureMap.group.rule.source.context [ fhir:value "sourceBundle" ] ;
         fhir:StructureMap.group.rule.source.min [ fhir:value "0"^^xsd:integer ] ;
         fhir:StructureMap.group.rule.source.max [ fhir:value "*" ] ;
         fhir:StructureMap.group.rule.source.element [ fhir:value "entry" ] ;
         fhir:StructureMap.group.rule.source.variable [ fhir:value "loaiDtriLaoSource" ]
       ] ;
       fhir:StructureMap.group.rule.target [
         fhir:index -1 ;
         fhir:StructureMap.group.rule.target.context [ fhir:value "targetRow" ] ;
         fhir:StructureMap.group.rule.target.contextType [ fhir:value "variable" ] ;
         fhir:StructureMap.group.rule.target.element [ fhir:value "loaiDtriLao" ]
       ] ;
       fhir:StructureMap.group.rule.documentation [ fhir: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" ]
     ], [
       fhir:index -1 ;
       fhir:StructureMap.group.rule.name [ fhir:value "ngayBdDtriLao" ] ;
       fhir:StructureMap.group.rule.source [
         fhir:index -1 ;
         fhir:StructureMap.group.rule.source.context [ fhir:value "sourceBundle" ] ;
         fhir:StructureMap.group.rule.source.min [ fhir:value "0"^^xsd:integer ] ;
         fhir:StructureMap.group.rule.source.max [ fhir:value "*" ] ;
         fhir:StructureMap.group.rule.source.element [ fhir:value "entry" ] ;
         fhir:StructureMap.group.rule.source.variable [ fhir:value "ngayBdDtriLaoSource" ]
       ] ;
       fhir:StructureMap.group.rule.target [
         fhir:index -1 ;
         fhir:StructureMap.group.rule.target.context [ fhir:value "targetRow" ] ;
         fhir:StructureMap.group.rule.target.contextType [ fhir:value "variable" ] ;
         fhir:StructureMap.group.rule.target.element [ fhir:value "ngayBdDtriLao" ]
       ] ;
       fhir:StructureMap.group.rule.documentation [ fhir: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" ]
     ], [
       fhir:index -1 ;
       fhir:StructureMap.group.rule.name [ fhir:value "phacDoDtriLao" ] ;
       fhir:StructureMap.group.rule.source [
         fhir:index -1 ;
         fhir:StructureMap.group.rule.source.context [ fhir:value "sourceBundle" ] ;
         fhir:StructureMap.group.rule.source.min [ fhir:value "0"^^xsd:integer ] ;
         fhir:StructureMap.group.rule.source.max [ fhir:value "*" ] ;
         fhir:StructureMap.group.rule.source.element [ fhir:value "entry" ] ;
         fhir:StructureMap.group.rule.source.variable [ fhir:value "phacDoDtriLaoSource" ]
       ] ;
       fhir:StructureMap.group.rule.target [
         fhir:index -1 ;
         fhir:StructureMap.group.rule.target.context [ fhir:value "targetRow" ] ;
         fhir:StructureMap.group.rule.target.contextType [ fhir:value "variable" ] ;
         fhir:StructureMap.group.rule.target.element [ fhir:value "phacDoDtriLao" ]
       ] ;
       fhir:StructureMap.group.rule.documentation [ fhir: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)." ]
     ], [
       fhir:index -1 ;
       fhir:StructureMap.group.rule.name [ fhir:value "ngayKtDtriLao" ] ;
       fhir:StructureMap.group.rule.source [
         fhir:index -1 ;
         fhir:StructureMap.group.rule.source.context [ fhir:value "sourceBundle" ] ;
         fhir:StructureMap.group.rule.source.min [ fhir:value "0"^^xsd:integer ] ;
         fhir:StructureMap.group.rule.source.max [ fhir:value "*" ] ;
         fhir:StructureMap.group.rule.source.element [ fhir:value "entry" ] ;
         fhir:StructureMap.group.rule.source.variable [ fhir:value "ngayKtDtriLaoSource" ]
       ] ;
       fhir:StructureMap.group.rule.target [
         fhir:index -1 ;
         fhir:StructureMap.group.rule.target.context [ fhir:value "targetRow" ] ;
         fhir:StructureMap.group.rule.target.contextType [ fhir:value "variable" ] ;
         fhir:StructureMap.group.rule.target.element [ fhir:value "ngayKtDtriLao" ]
       ] ;
       fhir:StructureMap.group.rule.documentation [ fhir: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ị." ]
     ], [
       fhir:index -1 ;
       fhir:StructureMap.group.rule.name [ fhir:value "ketQuaDtriLao" ] ;
       fhir:StructureMap.group.rule.source [
         fhir:index -1 ;
         fhir:StructureMap.group.rule.source.context [ fhir:value "sourceBundle" ] ;
         fhir:StructureMap.group.rule.source.min [ fhir:value "0"^^xsd:integer ] ;
         fhir:StructureMap.group.rule.source.max [ fhir:value "*" ] ;
         fhir:StructureMap.group.rule.source.element [ fhir:value "entry" ] ;
         fhir:StructureMap.group.rule.source.variable [ fhir:value "ketQuaDtriLaoSource" ]
       ] ;
       fhir:StructureMap.group.rule.target [
         fhir:index -1 ;
         fhir:StructureMap.group.rule.target.context [ fhir:value "targetRow" ] ;
         fhir:StructureMap.group.rule.target.contextType [ fhir:value "variable" ] ;
         fhir:StructureMap.group.rule.target.element [ fhir:value "ketQuaDtriLao" ]
       ] ;
       fhir:StructureMap.group.rule.documentation [ fhir: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" ]
     ], [
       fhir:index -1 ;
       fhir:StructureMap.group.rule.name [ fhir:value "maCskcb" ] ;
       fhir:StructureMap.group.rule.source [
         fhir:index -1 ;
         fhir:StructureMap.group.rule.source.context [ fhir:value "sourceBundle" ] ;
         fhir:StructureMap.group.rule.source.min [ fhir:value "0"^^xsd:integer ] ;
         fhir:StructureMap.group.rule.source.max [ fhir:value "*" ] ;
         fhir:StructureMap.group.rule.source.element [ fhir:value "entry" ] ;
         fhir:StructureMap.group.rule.source.variable [ fhir:value "maCskcbSource" ]
       ] ;
       fhir:StructureMap.group.rule.target [
         fhir:index -1 ;
         fhir:StructureMap.group.rule.target.context [ fhir:value "targetRow" ] ;
         fhir:StructureMap.group.rule.target.contextType [ fhir:value "variable" ] ;
         fhir:StructureMap.group.rule.target.element [ fhir:value "maCskcb" ]
       ] ;
       fhir:StructureMap.group.rule.documentation [ fhir: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" ]
     ], [
       fhir:index -1 ;
       fhir:StructureMap.group.rule.name [ fhir:value "ngayKdHiv" ] ;
       fhir:StructureMap.group.rule.source [
         fhir:index -1 ;
         fhir:StructureMap.group.rule.source.context [ fhir:value "sourceBundle" ] ;
         fhir:StructureMap.group.rule.source.min [ fhir:value "0"^^xsd:integer ] ;
         fhir:StructureMap.group.rule.source.max [ fhir:value "*" ] ;
         fhir:StructureMap.group.rule.source.element [ fhir:value "entry" ] ;
         fhir:StructureMap.group.rule.source.variable [ fhir:value "ngayKdHivSource" ]
       ] ;
       fhir:StructureMap.group.rule.target [
         fhir:index -1 ;
         fhir:StructureMap.group.rule.target.context [ fhir:value "targetRow" ] ;
         fhir:StructureMap.group.rule.target.contextType [ fhir:value "variable" ] ;
         fhir:StructureMap.group.rule.target.element [ fhir:value "ngayKdHiv" ]
       ] ;
       fhir:StructureMap.group.rule.documentation [ fhir: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." ]
     ], [
       fhir:index -1 ;
       fhir:StructureMap.group.rule.name [ fhir:value "bddtArv" ] ;
       fhir:StructureMap.group.rule.source [
         fhir:index -1 ;
         fhir:StructureMap.group.rule.source.context [ fhir:value "sourceBundle" ] ;
         fhir:StructureMap.group.rule.source.min [ fhir:value "0"^^xsd:integer ] ;
         fhir:StructureMap.group.rule.source.max [ fhir:value "*" ] ;
         fhir:StructureMap.group.rule.source.element [ fhir:value "entry" ] ;
         fhir:StructureMap.group.rule.source.variable [ fhir:value "bddtArvSource" ]
       ] ;
       fhir:StructureMap.group.rule.target [
         fhir:index -1 ;
         fhir:StructureMap.group.rule.target.context [ fhir:value "targetRow" ] ;
         fhir:StructureMap.group.rule.target.contextType [ fhir:value "variable" ] ;
         fhir:StructureMap.group.rule.target.element [ fhir:value "bddtArv" ]
       ] ;
       fhir:StructureMap.group.rule.documentation [ fhir: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)." ]
     ], [
       fhir:index -1 ;
       fhir:StructureMap.group.rule.name [ fhir:value "ngayBatDauDtCtx" ] ;
       fhir:StructureMap.group.rule.source [
         fhir:index -1 ;
         fhir:StructureMap.group.rule.source.context [ fhir:value "sourceBundle" ] ;
         fhir:StructureMap.group.rule.source.min [ fhir:value "0"^^xsd:integer ] ;
         fhir:StructureMap.group.rule.source.max [ fhir:value "*" ] ;
         fhir:StructureMap.group.rule.source.element [ fhir:value "entry" ] ;
         fhir:StructureMap.group.rule.source.variable [ fhir:value "ngayBatDauDtCtxSource" ]
       ] ;
       fhir:StructureMap.group.rule.target [
         fhir:index -1 ;
         fhir:StructureMap.group.rule.target.context [ fhir:value "targetRow" ] ;
         fhir:StructureMap.group.rule.target.contextType [ fhir:value "variable" ] ;
         fhir:StructureMap.group.rule.target.element [ fhir:value "ngayBatDauDtCtx" ]
       ] ;
       fhir:StructureMap.group.rule.documentation [ fhir: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)." ]
     ], [
       fhir:index -1 ;
       fhir:StructureMap.group.rule.name [ fhir:value "duPhong" ] ;
       fhir:StructureMap.group.rule.source [
         fhir:index -1 ;
         fhir:StructureMap.group.rule.source.context [ fhir:value "sourceBundle" ] ;
         fhir:StructureMap.group.rule.source.min [ fhir:value "0"^^xsd:integer ] ;
         fhir:StructureMap.group.rule.source.max [ fhir:value "*" ] ;
         fhir:StructureMap.group.rule.source.element [ fhir:value "entry" ] ;
         fhir:StructureMap.group.rule.source.variable [ fhir:value "duPhongSource" ]
       ] ;
       fhir:StructureMap.group.rule.target [
         fhir:index -1 ;
         fhir:StructureMap.group.rule.target.context [ fhir:value "targetRow" ] ;
         fhir:StructureMap.group.rule.target.contextType [ fhir:value "variable" ] ;
         fhir:StructureMap.group.rule.target.element [ fhir:value "duPhong" ]
       ] ;
       fhir:StructureMap.group.rule.documentation [ fhir: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)." ]
     ]
  ] .

# - ontology header ------------------------------------------------------------

<http://hl7.org/fhir/StructureMap/vn-sm-bhyt-xml15-tuberculosis.ttl> a owl:Ontology ;
  owl:imports fhir:fhir.ttl ;
  owl:versionIRI <http://build.fhir.org/StructureMap/vn-sm-bhyt-xml15-tuberculosis.ttl> .