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

Mô hình logic: Phiếu kiểm kho CSDL Dược — Logical Model

URL chính thức: http://fhir.hl7.org.vn/core/StructureDefinition/vnPharmacyStockTakingLm Phiên bản: 0.9.0
Computable Name: VNPharmacyStockTakingLM
Định danh khác: OID:2.25.161089673617632664299011809196868855799.42.166

Logical model cho payload phiếu kiểm kho gửi lên Hệ thống cơ sở dữ liệu về dược (POST /transactions/stock-taking, API v1.1 mục 5.4.7): đối chiếu tồn hệ thống (system_quantity) và tồn thực tế (actual_quantity) theo từng lô thuốc. LƯU Ý FHIR: R4 KHÔNG có resource kiểm kê tồn kho (InventoryReport chỉ có từ R5) — logical model này là carrier chuẩn duy nhất trong VN Core; KHÔNG khuyến nghị ép sang Observation hay Basic.

Usages:

  • This Logical Model is not used by any profiles in this Specification

You can also check for usages in the FHIR IG Statistics

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.

NameFlagsCard.TypeDescription & Constraints    Filter: Filtersdoco
.. vnPharmacyStockTakingLm 0..* Base Phiếu kiểm kho CSDL Dược — Logical Model
... transactionDate 1..1 dateTime transaction_date — Ngày/giờ kiểm kho (GMT+7 không ghi offset — mục 6.3.1)
... storeId 0..1 string store_id — Mã chi nhánh (cơ sở đa chi nhánh; response mục 5.4.8 dùng tên facility_id — sai khác thuật ngữ trong tài liệu gốc)
... warehouseId 0..1 string warehouse_id — Mã kho (cơ sở/chi nhánh đa kho)
... practiceLicenseCode 0..1 string practice_license_code — Số GCN đủ điều kiện sản xuất/kinh doanh thuốc của chi nhánh (tài khoản cơ sở chính đẩy hộ thành viên chuỗi)
... note 0..1 string note — Ghi chú (tối đa 500 ký tự)
... item 1..* BackboneElement items[] — Danh sách thuốc kiểm kho
.... drugId 1..1 string items[].drug_id — Mã định danh thuốc
.... unitId 1..1 string items[].unit_id — Mã đơn vị tính
.... quantity 1..1 integer items[].quantity — Số lượng
.... batchNo 1..1 string items[].batch_no — Số lô sản xuất
.... packagingSpecifications 0..1 string items[].packaging_specifications — Quy cách đóng gói
.... expiryDate 1..1 date items[].expiry_date — Hạn sử dụng của lô
.... manufacturerId 0..1 string items[].manufacturer.id — Mã nhà sản xuất
.... manufacturerName 0..1 string items[].manufacturer.name — Tên nhà sản xuất
.... manufacturerCountry 0..1 string items[].manufacturer.country — Mã quốc gia sản xuất (ISO-3166)
.... gtin 0..1 string items[].gtin — Mã GTIN theo cấp độ đóng gói
.... price 0..1 decimal items[].price — Đơn giá (2 chữ số thập phân)
.... systemQuantity 1..1 integer items[].system_quantity — Tồn hệ thống tại thời điểm kiểm
.... actualQuantity 1..1 integer items[].actual_quantity — Tồn thực tế đếm được
... transactionId 0..1 string transaction_id — Mã giao dịch do hệ thống cấp trong response
... processingStatus 0..1 code status — Trạng thái xử lý bất đồng bộ (mục 6.2: accepted | processing | completed | error | rejected)

doco Documentation for this format
NameFlagsCard.TypeDescription & Constraints    Filter: Filtersdoco
.. vnPharmacyStockTakingLm 0..* Base Phiếu kiểm kho CSDL Dược — Logical Model
... transactionDate 1..1 dateTime transaction_date — Ngày/giờ kiểm kho (GMT+7 không ghi offset — mục 6.3.1)
... storeId 0..1 string store_id — Mã chi nhánh (cơ sở đa chi nhánh; response mục 5.4.8 dùng tên facility_id — sai khác thuật ngữ trong tài liệu gốc)
... warehouseId 0..1 string warehouse_id — Mã kho (cơ sở/chi nhánh đa kho)
... practiceLicenseCode 0..1 string practice_license_code — Số GCN đủ điều kiện sản xuất/kinh doanh thuốc của chi nhánh (tài khoản cơ sở chính đẩy hộ thành viên chuỗi)
... note 0..1 string note — Ghi chú (tối đa 500 ký tự)
... item 1..* BackboneElement items[] — Danh sách thuốc kiểm kho
.... @id 0..1 string Unique id for inter-element referencing
.... extension 0..* Extension Additional content defined by implementations
Slice: Unordered, Open by value:url
.... modifierExtension ?!Σ 0..* Extension Extensions that cannot be ignored even if unrecognized
.... drugId 1..1 string items[].drug_id — Mã định danh thuốc
.... unitId 1..1 string items[].unit_id — Mã đơn vị tính
.... quantity 1..1 integer items[].quantity — Số lượng
.... batchNo 1..1 string items[].batch_no — Số lô sản xuất
.... packagingSpecifications 0..1 string items[].packaging_specifications — Quy cách đóng gói
.... expiryDate 1..1 date items[].expiry_date — Hạn sử dụng của lô
.... manufacturerId 0..1 string items[].manufacturer.id — Mã nhà sản xuất
.... manufacturerName 0..1 string items[].manufacturer.name — Tên nhà sản xuất
.... manufacturerCountry 0..1 string items[].manufacturer.country — Mã quốc gia sản xuất (ISO-3166)
.... gtin 0..1 string items[].gtin — Mã GTIN theo cấp độ đóng gói
.... price 0..1 decimal items[].price — Đơn giá (2 chữ số thập phân)
.... systemQuantity 1..1 integer items[].system_quantity — Tồn hệ thống tại thời điểm kiểm
.... actualQuantity 1..1 integer items[].actual_quantity — Tồn thực tế đếm được
... transactionId 0..1 string transaction_id — Mã giao dịch do hệ thống cấp trong response
... processingStatus 0..1 code status — Trạng thái xử lý bất đồng bộ (mục 6.2: accepted | processing | completed | error | rejected)

doco Documentation for this format

Constraints

Id Grade Path(s) Description Expression
ele-1 error **ALL** elements All FHIR elements must have a @value or children hasValue() or (children().count() > id.count())
ext-1 error **ALL** extensions Must have either extensions or value[x], not both extension.exists() != value.exists()

Summary

Mandatory: 0 element(10 nested mandatory elements)

Dạng xem Differential

NameFlagsCard.TypeDescription & Constraints    Filter: Filtersdoco
.. vnPharmacyStockTakingLm 0..* Base Phiếu kiểm kho CSDL Dược — Logical Model
... transactionDate 1..1 dateTime transaction_date — Ngày/giờ kiểm kho (GMT+7 không ghi offset — mục 6.3.1)
... storeId 0..1 string store_id — Mã chi nhánh (cơ sở đa chi nhánh; response mục 5.4.8 dùng tên facility_id — sai khác thuật ngữ trong tài liệu gốc)
... warehouseId 0..1 string warehouse_id — Mã kho (cơ sở/chi nhánh đa kho)
... practiceLicenseCode 0..1 string practice_license_code — Số GCN đủ điều kiện sản xuất/kinh doanh thuốc của chi nhánh (tài khoản cơ sở chính đẩy hộ thành viên chuỗi)
... note 0..1 string note — Ghi chú (tối đa 500 ký tự)
... item 1..* BackboneElement items[] — Danh sách thuốc kiểm kho
.... drugId 1..1 string items[].drug_id — Mã định danh thuốc
.... unitId 1..1 string items[].unit_id — Mã đơn vị tính
.... quantity 1..1 integer items[].quantity — Số lượng
.... batchNo 1..1 string items[].batch_no — Số lô sản xuất
.... packagingSpecifications 0..1 string items[].packaging_specifications — Quy cách đóng gói
.... expiryDate 1..1 date items[].expiry_date — Hạn sử dụng của lô
.... manufacturerId 0..1 string items[].manufacturer.id — Mã nhà sản xuất
.... manufacturerName 0..1 string items[].manufacturer.name — Tên nhà sản xuất
.... manufacturerCountry 0..1 string items[].manufacturer.country — Mã quốc gia sản xuất (ISO-3166)
.... gtin 0..1 string items[].gtin — Mã GTIN theo cấp độ đóng gói
.... price 0..1 decimal items[].price — Đơn giá (2 chữ số thập phân)
.... systemQuantity 1..1 integer items[].system_quantity — Tồn hệ thống tại thời điểm kiểm
.... actualQuantity 1..1 integer items[].actual_quantity — Tồn thực tế đếm được
... transactionId 0..1 string transaction_id — Mã giao dịch do hệ thống cấp trong response
... processingStatus 0..1 code status — Trạng thái xử lý bất đồng bộ (mục 6.2: accepted | processing | completed | error | rejected)

doco Documentation for this format

Dạng xem SnapshotView

NameFlagsCard.TypeDescription & Constraints    Filter: Filtersdoco
.. vnPharmacyStockTakingLm 0..* Base Phiếu kiểm kho CSDL Dược — Logical Model
... transactionDate 1..1 dateTime transaction_date — Ngày/giờ kiểm kho (GMT+7 không ghi offset — mục 6.3.1)
... storeId 0..1 string store_id — Mã chi nhánh (cơ sở đa chi nhánh; response mục 5.4.8 dùng tên facility_id — sai khác thuật ngữ trong tài liệu gốc)
... warehouseId 0..1 string warehouse_id — Mã kho (cơ sở/chi nhánh đa kho)
... practiceLicenseCode 0..1 string practice_license_code — Số GCN đủ điều kiện sản xuất/kinh doanh thuốc của chi nhánh (tài khoản cơ sở chính đẩy hộ thành viên chuỗi)
... note 0..1 string note — Ghi chú (tối đa 500 ký tự)
... item 1..* BackboneElement items[] — Danh sách thuốc kiểm kho
.... @id 0..1 string Unique id for inter-element referencing
.... extension 0..* Extension Additional content defined by implementations
Slice: Unordered, Open by value:url
.... modifierExtension ?!Σ 0..* Extension Extensions that cannot be ignored even if unrecognized
.... drugId 1..1 string items[].drug_id — Mã định danh thuốc
.... unitId 1..1 string items[].unit_id — Mã đơn vị tính
.... quantity 1..1 integer items[].quantity — Số lượng
.... batchNo 1..1 string items[].batch_no — Số lô sản xuất
.... packagingSpecifications 0..1 string items[].packaging_specifications — Quy cách đóng gói
.... expiryDate 1..1 date items[].expiry_date — Hạn sử dụng của lô
.... manufacturerId 0..1 string items[].manufacturer.id — Mã nhà sản xuất
.... manufacturerName 0..1 string items[].manufacturer.name — Tên nhà sản xuất
.... manufacturerCountry 0..1 string items[].manufacturer.country — Mã quốc gia sản xuất (ISO-3166)
.... gtin 0..1 string items[].gtin — Mã GTIN theo cấp độ đóng gói
.... price 0..1 decimal items[].price — Đơn giá (2 chữ số thập phân)
.... systemQuantity 1..1 integer items[].system_quantity — Tồn hệ thống tại thời điểm kiểm
.... actualQuantity 1..1 integer items[].actual_quantity — Tồn thực tế đếm được
... transactionId 0..1 string transaction_id — Mã giao dịch do hệ thống cấp trong response
... processingStatus 0..1 code status — Trạng thái xử lý bất đồng bộ (mục 6.2: accepted | processing | completed | error | rejected)

doco Documentation for this format

Constraints

Id Grade Path(s) Description Expression
ele-1 error **ALL** elements All FHIR elements must have a @value or children hasValue() or (children().count() > id.count())
ext-1 error **ALL** extensions Must have either extensions or value[x], not both extension.exists() != value.exists()

Summary

Mandatory: 0 element(10 nested mandatory elements)

 

Biểu diễn khác của hồ sơ: CSV, Excel