HL7 Vietnam VN Core FHIR Implementation Guide

Bộ Hướng dẫn Triển khai Core FHIR cho Việt Nam
0.6.0 - Draft for Community Review Viet Nam cờ

Bộ Hướng dẫn Triển khai Core FHIR cho Việt Nam - Draft for Community Review (v0.6.0) built by the FHIR (HL7® FHIR® Standard) Build Tools. See the Directory of published versions

Mô hình logic: Bản tin BHXH → TTDLQG (dịch vụ G12) — Logical Model (Phụ lục 03) - Mô tả chi tiết

Draft tại thời điểm 2026-06-10

Các định nghĩa cho vnHealthCheckupG12EnvelopeLm mô hình logic

Guidance on how to interpret the contents of this table can be foundhere

0. vnHealthCheckupG12EnvelopeLm
Definition

Logical model cho bản tin tiếp nhận dữ liệu khám bệnh từ Bảo hiểm xã hội Việt Nam, đồng bộ qua Trung tâm Dữ liệu Quốc gia (TTDLQG / NDOP — CP.NET) về CSDL sức khỏe Bộ Y tế. API: POST /api/integrate/v1/G12. Luồng: BHXH tạo XML (cấu trúc do TTDLQG cung cấp) → base64 → ký số (dịch vụ Ban Cơ yếu) → gửi qua AgentNode. Xác thực: API Key do TTDLQG cấp. X-Service = G12. KHÁC với BHYT Gateway thanh toán (gdbhyt.baohiemxahoi.gov.vn, XML 4210) — đây là surface đồng bộ dữ liệu khám bệnh BHXH → CSDL sức khỏe cá nhân. INFORMATIVE / non-normative: mô hình ánh xạ transport envelope NDOP G12 (không phải FHIR resource normative) — mapping aid cho implementer. Căn cứ: QĐ 1551/QĐ-BYT (31/5/2026) — Phụ lục 03 đặc tả API.

ShortBản tin BHXH → TTDLQG (dịch vụ G12) — Logical Model (Phụ lục 03)
Control0..*
Is Modifierfalse
Logical ModelInstances of this logical model are not marked to be the target of a Reference
2. vnHealthCheckupG12EnvelopeLm.contentType
Definition

content-type - application/json

Shortcontent-type - application/json
Control1..1
Typestring
Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
4. vnHealthCheckupG12EnvelopeLm.authorization
Definition

authorization - API Key do TTDLQG cấp

Shortauthorization - API Key do TTDLQG cấp
Control1..1
Typestring
Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
6. vnHealthCheckupG12EnvelopeLm.dataType
Definition

data-type - Mã dịch vụ/loại dữ liệu (tham chiếu mục mã dịch vụ)

Shortdata-type - Mã dịch vụ/loại dữ liệu (tham chiếu mục mã dịch vụ)
Control1..1
Typestring
Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
8. vnHealthCheckupG12EnvelopeLm.requestId
Definition

request-id - Mã yêu cầu do hệ thống bộ/ngành tự sinh, duy nhất trên hệ thống

Shortrequest-id - Mã yêu cầu do hệ thống bộ/ngành tự sinh, duy nhất trên hệ thống
Control1..1
Typestring
Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
10. vnHealthCheckupG12EnvelopeLm.requestTime
Definition

request-time - Thời gian yêu cầu (ddMMyyyyHHmmss); lệch >2 phút so với hệ thống nền tảng coi là timeout

Shortrequest-time - Thời gian yêu cầu (ddMMyyyyHHmmss); lệch >2 phút so với hệ thống nền tảng coi là timeout
Control1..1
Typestring
Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
12. vnHealthCheckupG12EnvelopeLm.xService
Definition

X-Service - Mã định danh điện tử bộ/ngành. Đối với BHXH: G12

ShortX-Service - Mã định danh điện tử bộ/ngành. Đối với BHXH: G12
Control1..1
Typestring
Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
14. vnHealthCheckupG12EnvelopeLm.fileName
Definition

fileName - Tên bản tin đã ký số

ShortfileName - Tên bản tin đã ký số
Control1..1
Typestring
Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
16. vnHealthCheckupG12EnvelopeLm.fileContent
Definition

fileContent - Giá trị base64 của dữ liệu XML đã ký số (bản tin khám bệnh)

ShortfileContent - Giá trị base64 của dữ liệu XML đã ký số (bản tin khám bệnh)
Control1..1
Typestring
Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
18. vnHealthCheckupG12EnvelopeLm.statusCode
Definition

statusCode (response) - 200 Thành công | 400 Lỗi (XML từ TTDLQG)

ShortstatusCode (response) - 200 Thành công | 400 Lỗi (XML từ TTDLQG)
Control0..1
Typestring
Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
20. vnHealthCheckupG12EnvelopeLm.errorCode
Definition

errorCode (response) - Bỏ trống nếu thành công; mã lỗi nếu thất bại

ShorterrorCode (response) - Bỏ trống nếu thành công; mã lỗi nếu thất bại
Control0..1
Typestring
Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
22. vnHealthCheckupG12EnvelopeLm.responseTime
Definition

responseTime (response) - Thời điểm phản hồi (ISO 8601 YYYY-MM-DDTHH:mm:ss)

ShortresponseTime (response) - Thời điểm phản hồi (ISO 8601 YYYY-MM-DDTHH:mm:ss)
Control0..1
Typestring
Primitive ValueThis primitive element may be present, or absent, or replaced by an extension

Guidance on how to interpret the contents of this table can be foundhere

0. vnHealthCheckupG12EnvelopeLm
Definition

Logical model cho bản tin tiếp nhận dữ liệu khám bệnh từ Bảo hiểm xã hội Việt Nam, đồng bộ qua Trung tâm Dữ liệu Quốc gia (TTDLQG / NDOP — CP.NET) về CSDL sức khỏe Bộ Y tế. API: POST /api/integrate/v1/G12. Luồng: BHXH tạo XML (cấu trúc do TTDLQG cung cấp) → base64 → ký số (dịch vụ Ban Cơ yếu) → gửi qua AgentNode. Xác thực: API Key do TTDLQG cấp. X-Service = G12. KHÁC với BHYT Gateway thanh toán (gdbhyt.baohiemxahoi.gov.vn, XML 4210) — đây là surface đồng bộ dữ liệu khám bệnh BHXH → CSDL sức khỏe cá nhân. INFORMATIVE / non-normative: mô hình ánh xạ transport envelope NDOP G12 (không phải FHIR resource normative) — mapping aid cho implementer. Căn cứ: QĐ 1551/QĐ-BYT (31/5/2026) — Phụ lục 03 đặc tả API.

ShortBản tin BHXH → TTDLQG (dịch vụ G12) — Logical Model (Phụ lục 03)
Logical ModelInstances of this logical model are not marked to be the target of a Reference
2. vnHealthCheckupG12EnvelopeLm.contentType
Definition

content-type - application/json

Shortcontent-type - application/json
Control1..1
Typestring
Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
4. vnHealthCheckupG12EnvelopeLm.authorization
Definition

authorization - API Key do TTDLQG cấp

Shortauthorization - API Key do TTDLQG cấp
Control1..1
Typestring
Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
6. vnHealthCheckupG12EnvelopeLm.dataType
Definition

data-type - Mã dịch vụ/loại dữ liệu (tham chiếu mục mã dịch vụ)

Shortdata-type - Mã dịch vụ/loại dữ liệu (tham chiếu mục mã dịch vụ)
Control1..1
Typestring
Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
8. vnHealthCheckupG12EnvelopeLm.requestId
Definition

request-id - Mã yêu cầu do hệ thống bộ/ngành tự sinh, duy nhất trên hệ thống

Shortrequest-id - Mã yêu cầu do hệ thống bộ/ngành tự sinh, duy nhất trên hệ thống
Control1..1
Typestring
Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
10. vnHealthCheckupG12EnvelopeLm.requestTime
Definition

request-time - Thời gian yêu cầu (ddMMyyyyHHmmss); lệch >2 phút so với hệ thống nền tảng coi là timeout

Shortrequest-time - Thời gian yêu cầu (ddMMyyyyHHmmss); lệch >2 phút so với hệ thống nền tảng coi là timeout
Control1..1
Typestring
Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
12. vnHealthCheckupG12EnvelopeLm.xService
Definition

X-Service - Mã định danh điện tử bộ/ngành. Đối với BHXH: G12

ShortX-Service - Mã định danh điện tử bộ/ngành. Đối với BHXH: G12
Control1..1
Typestring
Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
14. vnHealthCheckupG12EnvelopeLm.fileName
Definition

fileName - Tên bản tin đã ký số

ShortfileName - Tên bản tin đã ký số
Control1..1
Typestring
Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
16. vnHealthCheckupG12EnvelopeLm.fileContent
Definition

fileContent - Giá trị base64 của dữ liệu XML đã ký số (bản tin khám bệnh)

ShortfileContent - Giá trị base64 của dữ liệu XML đã ký số (bản tin khám bệnh)
Control1..1
Typestring
Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
18. vnHealthCheckupG12EnvelopeLm.statusCode
Definition

statusCode (response) - 200 Thành công | 400 Lỗi (XML từ TTDLQG)

ShortstatusCode (response) - 200 Thành công | 400 Lỗi (XML từ TTDLQG)
Control0..1
Typestring
Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
20. vnHealthCheckupG12EnvelopeLm.errorCode
Definition

errorCode (response) - Bỏ trống nếu thành công; mã lỗi nếu thất bại

ShorterrorCode (response) - Bỏ trống nếu thành công; mã lỗi nếu thất bại
Control0..1
Typestring
Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
22. vnHealthCheckupG12EnvelopeLm.responseTime
Definition

responseTime (response) - Thời điểm phản hồi (ISO 8601 YYYY-MM-DDTHH:mm:ss)

ShortresponseTime (response) - Thời điểm phản hồi (ISO 8601 YYYY-MM-DDTHH:mm:ss)
Control0..1
Typestring
Primitive ValueThis primitive element may be present, or absent, or replaced by an extension

Guidance on how to interpret the contents of this table can be foundhere

0. vnHealthCheckupG12EnvelopeLm
Definition

Logical model cho bản tin tiếp nhận dữ liệu khám bệnh từ Bảo hiểm xã hội Việt Nam, đồng bộ qua Trung tâm Dữ liệu Quốc gia (TTDLQG / NDOP — CP.NET) về CSDL sức khỏe Bộ Y tế. API: POST /api/integrate/v1/G12. Luồng: BHXH tạo XML (cấu trúc do TTDLQG cung cấp) → base64 → ký số (dịch vụ Ban Cơ yếu) → gửi qua AgentNode. Xác thực: API Key do TTDLQG cấp. X-Service = G12. KHÁC với BHYT Gateway thanh toán (gdbhyt.baohiemxahoi.gov.vn, XML 4210) — đây là surface đồng bộ dữ liệu khám bệnh BHXH → CSDL sức khỏe cá nhân. INFORMATIVE / non-normative: mô hình ánh xạ transport envelope NDOP G12 (không phải FHIR resource normative) — mapping aid cho implementer. Căn cứ: QĐ 1551/QĐ-BYT (31/5/2026) — Phụ lục 03 đặc tả API.

ShortBản tin BHXH → TTDLQG (dịch vụ G12) — Logical Model (Phụ lục 03)
Control0..*
Is Modifierfalse
Logical ModelInstances of this logical model are not marked to be the target of a Reference
2. vnHealthCheckupG12EnvelopeLm.contentType
Definition

content-type - application/json

Shortcontent-type - application/json
Control1..1
Typestring
Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
4. vnHealthCheckupG12EnvelopeLm.authorization
Definition

authorization - API Key do TTDLQG cấp

Shortauthorization - API Key do TTDLQG cấp
Control1..1
Typestring
Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
6. vnHealthCheckupG12EnvelopeLm.dataType
Definition

data-type - Mã dịch vụ/loại dữ liệu (tham chiếu mục mã dịch vụ)

Shortdata-type - Mã dịch vụ/loại dữ liệu (tham chiếu mục mã dịch vụ)
Control1..1
Typestring
Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
8. vnHealthCheckupG12EnvelopeLm.requestId
Definition

request-id - Mã yêu cầu do hệ thống bộ/ngành tự sinh, duy nhất trên hệ thống

Shortrequest-id - Mã yêu cầu do hệ thống bộ/ngành tự sinh, duy nhất trên hệ thống
Control1..1
Typestring
Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
10. vnHealthCheckupG12EnvelopeLm.requestTime
Definition

request-time - Thời gian yêu cầu (ddMMyyyyHHmmss); lệch >2 phút so với hệ thống nền tảng coi là timeout

Shortrequest-time - Thời gian yêu cầu (ddMMyyyyHHmmss); lệch >2 phút so với hệ thống nền tảng coi là timeout
Control1..1
Typestring
Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
12. vnHealthCheckupG12EnvelopeLm.xService
Definition

X-Service - Mã định danh điện tử bộ/ngành. Đối với BHXH: G12

ShortX-Service - Mã định danh điện tử bộ/ngành. Đối với BHXH: G12
Control1..1
Typestring
Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
14. vnHealthCheckupG12EnvelopeLm.fileName
Definition

fileName - Tên bản tin đã ký số

ShortfileName - Tên bản tin đã ký số
Control1..1
Typestring
Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
16. vnHealthCheckupG12EnvelopeLm.fileContent
Definition

fileContent - Giá trị base64 của dữ liệu XML đã ký số (bản tin khám bệnh)

ShortfileContent - Giá trị base64 của dữ liệu XML đã ký số (bản tin khám bệnh)
Control1..1
Typestring
Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
18. vnHealthCheckupG12EnvelopeLm.statusCode
Definition

statusCode (response) - 200 Thành công | 400 Lỗi (XML từ TTDLQG)

ShortstatusCode (response) - 200 Thành công | 400 Lỗi (XML từ TTDLQG)
Control0..1
Typestring
Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
20. vnHealthCheckupG12EnvelopeLm.errorCode
Definition

errorCode (response) - Bỏ trống nếu thành công; mã lỗi nếu thất bại

ShorterrorCode (response) - Bỏ trống nếu thành công; mã lỗi nếu thất bại
Control0..1
Typestring
Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
22. vnHealthCheckupG12EnvelopeLm.responseTime
Definition

responseTime (response) - Thời điểm phản hồi (ISO 8601 YYYY-MM-DDTHH:mm:ss)

ShortresponseTime (response) - Thời điểm phản hồi (ISO 8601 YYYY-MM-DDTHH:mm:ss)
Control0..1
Typestring
Primitive ValueThis primitive element may be present, or absent, or replaced by an extension