# Bảng 7 giấy ra viện — XML7 Discharge Paper Logical Model - Bộ Hướng dẫn Triển khai Core FHIR cho Việt Nam v0.5.0

## Mô hình logic: Bảng 7 giấy ra viện — XML7 Discharge Paper Logical Model 

 
Logical model cho Bảng 7 QĐ 3176/QĐ-BYT: dữ liệu giấy ra viện. 

**Usages:**

* This Logical Model is not used by any profiles in this Implementation Guide

You can also check for [usages in the FHIR IG Statistics](https://packages2.fhir.org/xig/hl7.fhir.vn.core|current/StructureDefinition/bhytXml7DischargePaperLm)

### Các dạng xem hình thức của nội dung hồ sơ

 [Mô tả profile, differential, snapshot và các biểu diễn liên quan](http://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#structure-definitions). 

*  [Bảng Differential](#tabs-diff) 
*  [Bảng Snapshot](#tabs-snap) 
*  [Thống kê/Tham chiếu](#tabs-summ) 
*  [Tất cả](#tabs-all) 

#### Constraints

#### Constraints

** Summary **

Mandatory: 0 element(7 nested mandatory elements)

 **Dạng xem Differential** 

#### Constraints

 **Dạng xem SnapshotView** 

#### Constraints

** Summary **

Mandatory: 0 element(7 nested mandatory elements)

 

Biểu diễn khác của hồ sơ: [CSV](../StructureDefinition-bhytXml7DischargePaperLm.csv), [Excel](../StructureDefinition-bhytXml7DischargePaperLm.xlsx) 



## Resource Content

```json
{
  "resourceType" : "StructureDefinition",
  "id" : "bhytXml7DischargePaperLm",
  "url" : "http://fhir.hl7.org.vn/core/StructureDefinition/bhytXml7DischargePaperLm",
  "version" : "0.5.0",
  "name" : "BHYTXML7DischargePaperLM",
  "title" : "Bảng 7 giấy ra viện — XML7 Discharge Paper Logical Model",
  "status" : "draft",
  "date" : "2026-04-29T14:58:55+07:00",
  "publisher" : "Omi HealthTech / VN Core FHIR Community Initiative",
  "contact" : [{
    "name" : "Omi HealthTech / VN Core FHIR Community Initiative",
    "telecom" : [{
      "system" : "url",
      "value" : "https://hl7.org.vn"
    },
    {
      "system" : "email",
      "value" : "info@hl7.org.vn"
    }]
  },
  {
    "name" : "Omi HealthTech (OmiGroup)",
    "telecom" : [{
      "system" : "url",
      "value" : "https://omihealthtech.vn"
    },
    {
      "system" : "url",
      "value" : "https://omigroup.vn"
    },
    {
      "system" : "email",
      "value" : "healthtech@omigroup.vn"
    }]
  }],
  "description" : "Logical model cho Bảng 7 QĐ 3176/QĐ-BYT: dữ liệu giấy ra viện.",
  "jurisdiction" : [{
    "coding" : [{
      "system" : "urn:iso:std:iso:3166",
      "code" : "VN",
      "display" : "Viet Nam"
    }]
  }],
  "fhirVersion" : "4.0.1",
  "mapping" : [{
    "identity" : "vn-fhir",
    "uri" : "http://fhir.hl7.org.vn/core/mapping/bhyt-submission-fhir",
    "name" : "VN Core FHIR mapping",
    "comment" : "Rows are derived from discharge Composition/DocumentReference, the linked Encounter, Condition, Practitioner and guardian/temporary card data."
  }],
  "kind" : "logical",
  "abstract" : false,
  "type" : "http://fhir.hl7.org.vn/core/StructureDefinition/bhytXml7DischargePaperLm",
  "baseDefinition" : "http://hl7.org/fhir/StructureDefinition/Base",
  "derivation" : "specialization",
  "differential" : {
    "element" : [{
      "id" : "bhytXml7DischargePaperLm",
      "path" : "bhytXml7DischargePaperLm",
      "short" : "Bảng 7 giấy ra viện — XML7 Discharge Paper Logical Model",
      "definition" : "Logical model cho Bảng 7 QĐ 3176/QĐ-BYT: dữ liệu giấy ra viện.",
      "constraint" : [{
        "key" : "bhyt-xml7-abortion-fields-required",
        "severity" : "error",
        "human" : "XML7 abortion detail fields are required when MA_DINH_CHI_THAI is 1.",
        "expression" : "maDinhChiThai != '1' or (nguyenNhanDinhChi.exists() and thoiGianDinhChi.exists() and tuoiThai.exists())",
        "source" : "http://fhir.hl7.org.vn/core/StructureDefinition/bhytXml7DischargePaperLm"
      }]
    },
    {
      "id" : "bhytXml7DischargePaperLm.maLk",
      "path" : "bhytXml7DischargePaperLm.maLk",
      "short" : "MA_LK - Mã liên kết hồ sơ",
      "definition" : "MA_LK - Mã liên kết hồ sơ",
      "min" : 1,
      "max" : "1",
      "type" : [{
        "code" : "string"
      }],
      "mapping" : [{
        "identity" : "vn-fhir",
        "map" : "VNCoreClaim.identifier[MALK].value"
      }]
    },
    {
      "id" : "bhytXml7DischargePaperLm.soLuuTru",
      "path" : "bhytXml7DischargePaperLm.soLuuTru",
      "short" : "SO_LUU_TRU - Số lưu trữ/số hồ sơ bệnh án",
      "definition" : "SO_LUU_TRU - Số lưu trữ/số hồ sơ bệnh án",
      "min" : 1,
      "max" : "1",
      "type" : [{
        "code" : "string"
      }],
      "mapping" : [{
        "identity" : "vn-fhir",
        "map" : "VNCoreComposition.identifier.value | VNCoreDocumentReference.identifier.value"
      }]
    },
    {
      "id" : "bhytXml7DischargePaperLm.maYte",
      "path" : "bhytXml7DischargePaperLm.maYte",
      "short" : "MA_YTE - Mã y tế/mã người bệnh",
      "definition" : "MA_YTE - Mã y tế/mã người bệnh",
      "min" : 1,
      "max" : "1",
      "type" : [{
        "code" : "string"
      }],
      "mapping" : [{
        "identity" : "vn-fhir",
        "map" : "VNCorePatient.identifier[MRN].value"
      }]
    },
    {
      "id" : "bhytXml7DischargePaperLm.maKhoaRv",
      "path" : "bhytXml7DischargePaperLm.maKhoaRv",
      "short" : "MA_KHOA_RV - Mã khoa ra viện/tổng kết",
      "definition" : "MA_KHOA_RV - Mã khoa ra viện/tổng kết",
      "min" : 1,
      "max" : "1",
      "type" : [{
        "code" : "string"
      }],
      "mapping" : [{
        "identity" : "vn-fhir",
        "map" : "VNCoreEncounter.location.location.resolve().identifier.value | VNCoreOrganizationDepartment.identifier.value"
      }]
    },
    {
      "id" : "bhytXml7DischargePaperLm.ngayVao",
      "path" : "bhytXml7DischargePaperLm.ngayVao",
      "short" : "NGAY_VAO - Ngày vào viện",
      "definition" : "NGAY_VAO - Ngày vào viện",
      "min" : 1,
      "max" : "1",
      "type" : [{
        "code" : "string"
      }],
      "mapping" : [{
        "identity" : "vn-fhir",
        "map" : "VNCoreEncounter.period.start"
      }]
    },
    {
      "id" : "bhytXml7DischargePaperLm.ngayRa",
      "path" : "bhytXml7DischargePaperLm.ngayRa",
      "short" : "NGAY_RA - Ngày ra viện",
      "definition" : "NGAY_RA - Ngày ra viện",
      "min" : 1,
      "max" : "1",
      "type" : [{
        "code" : "string"
      }],
      "mapping" : [{
        "identity" : "vn-fhir",
        "map" : "VNCoreEncounter.period.end | VNCoreComposition.date"
      }]
    },
    {
      "id" : "bhytXml7DischargePaperLm.maDinhChiThai",
      "path" : "bhytXml7DischargePaperLm.maDinhChiThai",
      "short" : "MA_DINH_CHI_THAI - Mã đình chỉ thai",
      "definition" : "MA_DINH_CHI_THAI - Mã đình chỉ thai",
      "min" : 0,
      "max" : "1",
      "type" : [{
        "code" : "string"
      }]
    },
    {
      "id" : "bhytXml7DischargePaperLm.nguyenNhanDinhChi",
      "path" : "bhytXml7DischargePaperLm.nguyenNhanDinhChi",
      "short" : "NGUYENNHAN_DINHCHI - Nguyên nhân đình chỉ thai",
      "definition" : "NGUYENNHAN_DINHCHI - Nguyên nhân đình chỉ thai",
      "comment" : "Conditionally required when MA_DINH_CHI_THAI=1.",
      "min" : 0,
      "max" : "1",
      "type" : [{
        "code" : "string"
      }]
    },
    {
      "id" : "bhytXml7DischargePaperLm.thoiGianDinhChi",
      "path" : "bhytXml7DischargePaperLm.thoiGianDinhChi",
      "short" : "THOIGIAN_DINHCHI - Thời gian đình chỉ thai",
      "definition" : "THOIGIAN_DINHCHI - Thời gian đình chỉ thai",
      "comment" : "Conditionally required when MA_DINH_CHI_THAI=1.",
      "min" : 0,
      "max" : "1",
      "type" : [{
        "code" : "string"
      }]
    },
    {
      "id" : "bhytXml7DischargePaperLm.tuoiThai",
      "path" : "bhytXml7DischargePaperLm.tuoiThai",
      "short" : "TUOI_THAI - Tuổi thai",
      "definition" : "TUOI_THAI - Tuổi thai",
      "comment" : "Conditionally required when MA_DINH_CHI_THAI=1.",
      "min" : 0,
      "max" : "1",
      "type" : [{
        "code" : "string"
      }]
    },
    {
      "id" : "bhytXml7DischargePaperLm.chanDoanRv",
      "path" : "bhytXml7DischargePaperLm.chanDoanRv",
      "short" : "CHAN_DOAN_RV - Chẩn đoán ra viện",
      "definition" : "CHAN_DOAN_RV - Chẩn đoán ra viện",
      "min" : 0,
      "max" : "1",
      "type" : [{
        "code" : "string"
      }],
      "mapping" : [{
        "identity" : "vn-fhir",
        "map" : "VNCoreComposition.section[diagnosis].entry.resolve().code | VNCoreCondition.code | section.text"
      }]
    },
    {
      "id" : "bhytXml7DischargePaperLm.ghiChu",
      "path" : "bhytXml7DischargePaperLm.ghiChu",
      "short" : "GHI_CHU - Ghi chú",
      "definition" : "GHI_CHU - Ghi chú",
      "min" : 0,
      "max" : "1",
      "type" : [{
        "code" : "string"
      }],
      "mapping" : [{
        "identity" : "vn-fhir",
        "map" : "VNCoreDocumentReference.description | VNCoreComposition.section.text"
      }]
    },
    {
      "id" : "bhytXml7DischargePaperLm.maTtdv",
      "path" : "bhytXml7DischargePaperLm.maTtdv",
      "short" : "MA_TTDV - Mã thủ trưởng đơn vị/người ký",
      "definition" : "MA_TTDV - Mã thủ trưởng đơn vị/người ký",
      "min" : 1,
      "max" : "1",
      "type" : [{
        "code" : "string"
      }],
      "mapping" : [{
        "identity" : "vn-fhir",
        "map" : "VNCoreComposition.attester.party.resolve().identifier.value | VNCoreDocumentReference.authenticator.resolve().identifier.value"
      }]
    },
    {
      "id" : "bhytXml7DischargePaperLm.maBs",
      "path" : "bhytXml7DischargePaperLm.maBs",
      "short" : "MA_BS - Mã bác sĩ",
      "definition" : "MA_BS - Mã bác sĩ",
      "min" : 0,
      "max" : "1",
      "type" : [{
        "code" : "string"
      }],
      "mapping" : [{
        "identity" : "vn-fhir",
        "map" : "VNCoreComposition.author.resolve().identifier.value | VNCorePractitioner.identifier.value"
      }]
    },
    {
      "id" : "bhytXml7DischargePaperLm.tenBs",
      "path" : "bhytXml7DischargePaperLm.tenBs",
      "short" : "TEN_BS - Tên bác sĩ",
      "definition" : "TEN_BS - Tên bác sĩ",
      "min" : 0,
      "max" : "1",
      "type" : [{
        "code" : "string"
      }],
      "mapping" : [{
        "identity" : "vn-fhir",
        "map" : "VNCoreComposition.author.display | VNCorePractitioner.name.text"
      }]
    },
    {
      "id" : "bhytXml7DischargePaperLm.ngayCt",
      "path" : "bhytXml7DischargePaperLm.ngayCt",
      "short" : "NGAY_CT - Ngày cấp chứng từ",
      "definition" : "NGAY_CT - Ngày cấp chứng từ",
      "min" : 0,
      "max" : "1",
      "type" : [{
        "code" : "string"
      }],
      "mapping" : [{
        "identity" : "vn-fhir",
        "map" : "VNCoreDocumentReference.date | VNCoreComposition.date"
      }]
    },
    {
      "id" : "bhytXml7DischargePaperLm.maCha",
      "path" : "bhytXml7DischargePaperLm.maCha",
      "short" : "MA_CHA - Mã cha",
      "definition" : "MA_CHA - Mã cha",
      "min" : 0,
      "max" : "1",
      "type" : [{
        "code" : "string"
      }],
      "mapping" : [{
        "identity" : "vn-fhir",
        "map" : "VNCoreRelatedPerson.where(relationship.coding.code='FTH').identifier[CCCD].value | VNCorePatient.contact.where(relationship.coding.code='FTH').name"
      }]
    },
    {
      "id" : "bhytXml7DischargePaperLm.maMe",
      "path" : "bhytXml7DischargePaperLm.maMe",
      "short" : "MA_ME - Mã mẹ",
      "definition" : "MA_ME - Mã mẹ",
      "min" : 0,
      "max" : "1",
      "type" : [{
        "code" : "string"
      }],
      "mapping" : [{
        "identity" : "vn-fhir",
        "map" : "VNCoreRelatedPerson.where(relationship.coding.code='MTH').identifier[CCCD].value | VNCorePatient.contact.where(relationship.coding.code='MTH').name"
      }]
    },
    {
      "id" : "bhytXml7DischargePaperLm.maTheTam",
      "path" : "bhytXml7DischargePaperLm.maTheTam",
      "short" : "MA_THE_TAM - Mã thẻ tạm",
      "definition" : "MA_THE_TAM - Mã thẻ tạm",
      "min" : 0,
      "max" : "1",
      "type" : [{
        "code" : "string"
      }],
      "mapping" : [{
        "identity" : "vn-fhir",
        "map" : "VNCoreCoverage.identifier.value",
        "comment" : "Temporary card identifiers are kept as Coverage.identifier until a dedicated temporary-card slice is profiled."
      }]
    },
    {
      "id" : "bhytXml7DischargePaperLm.hoTenCha",
      "path" : "bhytXml7DischargePaperLm.hoTenCha",
      "short" : "HO_TEN_CHA - Họ tên cha",
      "definition" : "HO_TEN_CHA - Họ tên cha",
      "min" : 0,
      "max" : "1",
      "type" : [{
        "code" : "string"
      }],
      "mapping" : [{
        "identity" : "vn-fhir",
        "map" : "VNCoreRelatedPerson.where(relationship.coding.code='FTH').name.text | VNCorePatient.contact.where(relationship.coding.code='FTH').name.text"
      }]
    },
    {
      "id" : "bhytXml7DischargePaperLm.hoTenMe",
      "path" : "bhytXml7DischargePaperLm.hoTenMe",
      "short" : "HO_TEN_ME - Họ tên mẹ",
      "definition" : "HO_TEN_ME - Họ tên mẹ",
      "min" : 0,
      "max" : "1",
      "type" : [{
        "code" : "string"
      }],
      "mapping" : [{
        "identity" : "vn-fhir",
        "map" : "VNCoreRelatedPerson.where(relationship.coding.code='MTH').name.text | VNCorePatient.contact.where(relationship.coding.code='MTH').name.text"
      }]
    },
    {
      "id" : "bhytXml7DischargePaperLm.soNgayNghi",
      "path" : "bhytXml7DischargePaperLm.soNgayNghi",
      "short" : "SO_NGAY_NGHI - Số ngày nghỉ",
      "definition" : "SO_NGAY_NGHI - Số ngày nghỉ",
      "min" : 0,
      "max" : "1",
      "type" : [{
        "code" : "string"
      }],
      "mapping" : [{
        "identity" : "vn-fhir",
        "map" : "Derived from VNCoreDocumentReference.context.period | VNCoreComposition.event.period"
      }]
    },
    {
      "id" : "bhytXml7DischargePaperLm.ngoaiTruTuNgay",
      "path" : "bhytXml7DischargePaperLm.ngoaiTruTuNgay",
      "short" : "NGOAITRU_TUNGAY - Ngoại trú từ ngày",
      "definition" : "NGOAITRU_TUNGAY - Ngoại trú từ ngày",
      "min" : 0,
      "max" : "1",
      "type" : [{
        "code" : "string"
      }],
      "mapping" : [{
        "identity" : "vn-fhir",
        "map" : "VNCoreDocumentReference.context.period.start | VNCoreComposition.event.period.start"
      }]
    },
    {
      "id" : "bhytXml7DischargePaperLm.ngoaiTruDenNgay",
      "path" : "bhytXml7DischargePaperLm.ngoaiTruDenNgay",
      "short" : "NGOAITRU_DENNGAY - Ngoại trú đến ngày",
      "definition" : "NGOAITRU_DENNGAY - Ngoại trú đến ngày",
      "min" : 0,
      "max" : "1",
      "type" : [{
        "code" : "string"
      }],
      "mapping" : [{
        "identity" : "vn-fhir",
        "map" : "VNCoreDocumentReference.context.period.end | VNCoreComposition.event.period.end"
      }]
    }]
  }
}

```
