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 xuất hàng CSDL Dược — Logical Model - Mô tả chi tiết

Draft tại thời điểm 2026-07-31

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

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

0. vnPharmacyStockOutLm
Definition

Logical model cho payload phiếu xuất hàng gửi lên Hệ thống cơ sở dữ liệu về dược (POST /transactions/stock-out, API v1.1 mục 5.4.4). Bao trùm cả nghiệp vụ BÁN LẺ THUỐC (reason=sale-retail — v1.1 đã bỏ nhóm API hóa đơn /invoices của v1.0, bán lẻ chỉ còn liên thông qua stock-out): với bán lẻ theo đơn, đích FHIR chủ đạo là VNCoreMedicationDispense; với các nghiệp vụ kho khác là SupplyDelivery. reason=recall gắn trực tiếp quy trình thu hồi thuốc theo TT 30/2025/TT-BYT.

ShortPhiếu xuất hàng CSDL Dược — Logical Model
Control0..*
Is Modifierfalse
Logical ModelInstances of this logical model are not marked to be the target of a Reference
2. vnPharmacyStockOutLm.transactionDate
Definition

transaction_date — Ngày/giờ xuất hàng (GMT+7 không ghi offset — mục 6.3.1)

Shorttransaction_date — Ngày/giờ xuất hàng (GMT+7 không ghi offset — mục 6.3.1)
Control1..1
TypedateTime
Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
4. vnPharmacyStockOutLm.reason
Definition

reason — Loại phiếu xuất/Lý do xuất (mục 6.4.2; tối đa 20 ký tự)

Shortreason — Loại phiếu xuất/Lý do xuất (mục 6.4.2; tối đa 20 ký tự)
Comments

Cơ sở bán lẻ: sale-retail | return | destroy | other. Cơ sở khác thêm: sale-wholesale | transfer-out | recall (xuất thu hồi theo công văn/khuyến cáo BYT). Giá trị return bắt buộc kèm supplier_id; transfer-out bắt buộc kèm cặp source_/target_.

Control1..1
Typecode
Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
6. vnPharmacyStockOutLm.sourceStoreId
Definition

source_store_id — Mã chi nhánh xuất hàng (chuỗi nhà thuốc, reason=transfer-out)

Shortsource_store_id — Mã chi nhánh xuất hàng (chuỗi nhà thuốc, reason=transfer-out)
Control0..1
Typestring
Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
8. vnPharmacyStockOutLm.sourceWarehouseId
Definition

source_warehouse_id — Mã kho xuất (reason=transfer-out)

Shortsource_warehouse_id — Mã kho xuất (reason=transfer-out)
Control0..1
Typestring
Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
10. vnPharmacyStockOutLm.targetStoreId
Definition

target_store_id — Mã chi nhánh nhập hàng (reason=transfer-out)

Shorttarget_store_id — Mã chi nhánh nhập hàng (reason=transfer-out)
Control0..1
Typestring
Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
12. vnPharmacyStockOutLm.targetWarehouseId
Definition

target_warehouse_id — Mã kho nhập (reason=transfer-out)

Shorttarget_warehouse_id — Mã kho nhập (reason=transfer-out)
Control0..1
Typestring
Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
14. vnPharmacyStockOutLm.supplierId
Definition

supplier_id — Mã định danh nhà cung cấp (reason=return — xuất trả nhà cung cấp)

Shortsupplier_id — Mã định danh nhà cung cấp (reason=return — xuất trả nhà cung cấp)
Control0..1
Typestring
Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
16. vnPharmacyStockOutLm.referenceNumber
Definition

reference_number — Số chứng từ xuất hàng

Shortreference_number — Số chứng từ xuất hàng
Control1..1
Typestring
Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
18. vnPharmacyStockOutLm.practiceLicenseCode
Definition

practice_license_code — Số GCN đủ điều kiện sản xuất/kinh doanh thuốc của chi nhánh (bổ sung ở v1.1; tài khoản cơ sở chính đẩy hộ thành viên chuỗi)

Shortpractice_license_code — Số GCN đủ điều kiện sản xuất/kinh doanh thuốc của chi nhánh (bổ sung ở v1.1; tài khoản cơ sở chính đẩy hộ thành viên chuỗi)
Control0..1
Typestring
Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
20. vnPharmacyStockOutLm.note
Definition

note — Ghi chú (tối đa 500 ký tự)

Shortnote — Ghi chú (tối đa 500 ký tự)
Control0..1
Typestring
Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
22. vnPharmacyStockOutLm.item
Definition

items[] — Danh sách thuốc trong phiếu xuất

Shortitems[] — Danh sách thuốc trong phiếu xuất
Control1..*
TypeBackboneElement
Invariantsele-1: All FHIR elements must have a @value or children (hasValue() or (children().count() > id.count()))
24. vnPharmacyStockOutLm.item.id
Definition

Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.

ShortUnique id for inter-element referencing
Control0..1
Typestring
Is Modifierfalse
XML FormatIn the XML format, this property is represented as an attribute.
Summaryfalse
26. vnPharmacyStockOutLm.item.extension
Definition

May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.

ShortAdditional content defined by implementations
Comments

There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.

Control0..*
TypeExtension
Is Modifierfalse
Summaryfalse
Alternate Namesextensions, user content
Invariantsele-1: All FHIR elements must have a @value or children (hasValue() or (children().count() > id.count()))
ext-1: Must have either extensions or value[x], not both (extension.exists() != value.exists())
SlicingThis element introduces a set of slices on vnPharmacyStockOutLm.item.extension. The slices areUnordered and Open, and can be differentiated using the following discriminators:
  • value @ url
  • 28. vnPharmacyStockOutLm.item.modifierExtension
    Definition

    May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.

    Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).

    ShortExtensions that cannot be ignored even if unrecognized
    Comments

    There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.

    Control0..*
    TypeExtension
    Is Modifiertrue because Modifier extensions are expected to modify the meaning or interpretation of the element that contains them
    Summarytrue
    Requirements

    Modifier extensions allow for extensions that cannot be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the definition of modifier extensions.

    Alternate Namesextensions, user content, modifiers
    Invariantsele-1: All FHIR elements must have a @value or children (hasValue() or (children().count() > id.count()))
    ext-1: Must have either extensions or value[x], not both (extension.exists() != value.exists())
    30. vnPharmacyStockOutLm.item.drugId
    Definition

    items[].drug_id — Mã định danh thuốc (bắt buộc — validator trả lỗi khi để trống)

    Shortitems[].drug_id — Mã định danh thuốc (bắt buộc — validator trả lỗi khi để trống)
    Control1..1
    Typestring
    Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
    32. vnPharmacyStockOutLm.item.unitId
    Definition

    items[].unit_id — Mã đơn vị tính (bắt buộc — validator trả lỗi khi để trống)

    Shortitems[].unit_id — Mã đơn vị tính (bắt buộc — validator trả lỗi khi để trống)
    Control1..1
    Typestring
    Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
    34. vnPharmacyStockOutLm.item.quantity
    Definition

    items[].quantity — Số lượng

    Shortitems[].quantity — Số lượng
    Control1..1
    Typeinteger
    Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
    36. vnPharmacyStockOutLm.item.batchNo
    Definition

    items[].batch_no — Số lô sản xuất (tối đa 20 ký tự)

    Shortitems[].batch_no — Số lô sản xuất (tối đa 20 ký tự)
    Control1..1
    Typestring
    Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
    38. vnPharmacyStockOutLm.item.packagingSpecifications
    Definition

    items[].packaging_specifications — Quy cách đóng gói (bổ sung ở v1.1)

    Shortitems[].packaging_specifications — Quy cách đóng gói (bổ sung ở v1.1)
    Control0..1
    Typestring
    Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
    40. vnPharmacyStockOutLm.item.expiryDate
    Definition

    items[].expiry_date — Hạn sử dụng của lô

    Shortitems[].expiry_date — Hạn sử dụng của lô
    Control1..1
    Typedate
    Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
    42. vnPharmacyStockOutLm.item.manufacturerId
    Definition

    items[].manufacturer.id — Mã nhà sản xuất

    Shortitems[].manufacturer.id — Mã nhà sản xuất
    Control0..1
    Typestring
    Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
    44. vnPharmacyStockOutLm.item.manufacturerName
    Definition

    items[].manufacturer.name — Tên nhà sản xuất (tối đa 200 ký tự)

    Shortitems[].manufacturer.name — Tên nhà sản xuất (tối đa 200 ký tự)
    Control0..1
    Typestring
    Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
    46. vnPharmacyStockOutLm.item.manufacturerCountry
    Definition

    items[].manufacturer.country — Mã quốc gia sản xuất (ISO-3166)

    Shortitems[].manufacturer.country — Mã quốc gia sản xuất (ISO-3166)
    Control0..1
    Typestring
    Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
    48. vnPharmacyStockOutLm.item.gtin
    Definition

    items[].gtin — Mã GTIN theo cấp độ đóng gói

    Shortitems[].gtin — Mã GTIN theo cấp độ đóng gói
    Control0..1
    Typestring
    Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
    50. vnPharmacyStockOutLm.item.price
    Definition

    items[].price — Đơn giá xuất (2 chữ số thập phân)

    Shortitems[].price — Đơn giá xuất (2 chữ số thập phân)
    Control0..1
    Typedecimal
    Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
    52. vnPharmacyStockOutLm.transactionId
    Definition

    transaction_id — Mã giao dịch do hệ thống cấp trong response

    Shorttransaction_id — Mã giao dịch do hệ thống cấp trong response
    Control0..1
    Typestring
    Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
    54. vnPharmacyStockOutLm.processingStatus
    Definition

    status — Trạng thái xử lý bất đồng bộ (mục 6.2: accepted | processing | completed | error | rejected)

    Shortstatus — Trạng thái xử lý bất đồng bộ (mục 6.2: accepted | processing | completed | error | rejected)
    Control0..1
    Typecode
    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. vnPharmacyStockOutLm
    Definition

    Logical model cho payload phiếu xuất hàng gửi lên Hệ thống cơ sở dữ liệu về dược (POST /transactions/stock-out, API v1.1 mục 5.4.4). Bao trùm cả nghiệp vụ BÁN LẺ THUỐC (reason=sale-retail — v1.1 đã bỏ nhóm API hóa đơn /invoices của v1.0, bán lẻ chỉ còn liên thông qua stock-out): với bán lẻ theo đơn, đích FHIR chủ đạo là VNCoreMedicationDispense; với các nghiệp vụ kho khác là SupplyDelivery. reason=recall gắn trực tiếp quy trình thu hồi thuốc theo TT 30/2025/TT-BYT.

    ShortPhiếu xuất hàng CSDL Dược — Logical Model
    Logical ModelInstances of this logical model are not marked to be the target of a Reference
    2. vnPharmacyStockOutLm.transactionDate
    Definition

    transaction_date — Ngày/giờ xuất hàng (GMT+7 không ghi offset — mục 6.3.1)

    Shorttransaction_date — Ngày/giờ xuất hàng (GMT+7 không ghi offset — mục 6.3.1)
    Control1..1
    TypedateTime
    Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
    4. vnPharmacyStockOutLm.reason
    Definition

    reason — Loại phiếu xuất/Lý do xuất (mục 6.4.2; tối đa 20 ký tự)

    Shortreason — Loại phiếu xuất/Lý do xuất (mục 6.4.2; tối đa 20 ký tự)
    Comments

    Cơ sở bán lẻ: sale-retail | return | destroy | other. Cơ sở khác thêm: sale-wholesale | transfer-out | recall (xuất thu hồi theo công văn/khuyến cáo BYT). Giá trị return bắt buộc kèm supplier_id; transfer-out bắt buộc kèm cặp source_/target_.

    Control1..1
    Typecode
    Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
    6. vnPharmacyStockOutLm.sourceStoreId
    Definition

    source_store_id — Mã chi nhánh xuất hàng (chuỗi nhà thuốc, reason=transfer-out)

    Shortsource_store_id — Mã chi nhánh xuất hàng (chuỗi nhà thuốc, reason=transfer-out)
    Control0..1
    Typestring
    Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
    8. vnPharmacyStockOutLm.sourceWarehouseId
    Definition

    source_warehouse_id — Mã kho xuất (reason=transfer-out)

    Shortsource_warehouse_id — Mã kho xuất (reason=transfer-out)
    Control0..1
    Typestring
    Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
    10. vnPharmacyStockOutLm.targetStoreId
    Definition

    target_store_id — Mã chi nhánh nhập hàng (reason=transfer-out)

    Shorttarget_store_id — Mã chi nhánh nhập hàng (reason=transfer-out)
    Control0..1
    Typestring
    Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
    12. vnPharmacyStockOutLm.targetWarehouseId
    Definition

    target_warehouse_id — Mã kho nhập (reason=transfer-out)

    Shorttarget_warehouse_id — Mã kho nhập (reason=transfer-out)
    Control0..1
    Typestring
    Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
    14. vnPharmacyStockOutLm.supplierId
    Definition

    supplier_id — Mã định danh nhà cung cấp (reason=return — xuất trả nhà cung cấp)

    Shortsupplier_id — Mã định danh nhà cung cấp (reason=return — xuất trả nhà cung cấp)
    Control0..1
    Typestring
    Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
    16. vnPharmacyStockOutLm.referenceNumber
    Definition

    reference_number — Số chứng từ xuất hàng

    Shortreference_number — Số chứng từ xuất hàng
    Control1..1
    Typestring
    Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
    18. vnPharmacyStockOutLm.practiceLicenseCode
    Definition

    practice_license_code — Số GCN đủ điều kiện sản xuất/kinh doanh thuốc của chi nhánh (bổ sung ở v1.1; tài khoản cơ sở chính đẩy hộ thành viên chuỗi)

    Shortpractice_license_code — Số GCN đủ điều kiện sản xuất/kinh doanh thuốc của chi nhánh (bổ sung ở v1.1; tài khoản cơ sở chính đẩy hộ thành viên chuỗi)
    Control0..1
    Typestring
    Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
    20. vnPharmacyStockOutLm.note
    Definition

    note — Ghi chú (tối đa 500 ký tự)

    Shortnote — Ghi chú (tối đa 500 ký tự)
    Control0..1
    Typestring
    Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
    22. vnPharmacyStockOutLm.item
    Definition

    items[] — Danh sách thuốc trong phiếu xuất

    Shortitems[] — Danh sách thuốc trong phiếu xuất
    Control1..*
    TypeBackboneElement
    24. vnPharmacyStockOutLm.item.drugId
    Definition

    items[].drug_id — Mã định danh thuốc (bắt buộc — validator trả lỗi khi để trống)

    Shortitems[].drug_id — Mã định danh thuốc (bắt buộc — validator trả lỗi khi để trống)
    Control1..1
    Typestring
    Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
    26. vnPharmacyStockOutLm.item.unitId
    Definition

    items[].unit_id — Mã đơn vị tính (bắt buộc — validator trả lỗi khi để trống)

    Shortitems[].unit_id — Mã đơn vị tính (bắt buộc — validator trả lỗi khi để trống)
    Control1..1
    Typestring
    Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
    28. vnPharmacyStockOutLm.item.quantity
    Definition

    items[].quantity — Số lượng

    Shortitems[].quantity — Số lượng
    Control1..1
    Typeinteger
    Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
    30. vnPharmacyStockOutLm.item.batchNo
    Definition

    items[].batch_no — Số lô sản xuất (tối đa 20 ký tự)

    Shortitems[].batch_no — Số lô sản xuất (tối đa 20 ký tự)
    Control1..1
    Typestring
    Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
    32. vnPharmacyStockOutLm.item.packagingSpecifications
    Definition

    items[].packaging_specifications — Quy cách đóng gói (bổ sung ở v1.1)

    Shortitems[].packaging_specifications — Quy cách đóng gói (bổ sung ở v1.1)
    Control0..1
    Typestring
    Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
    34. vnPharmacyStockOutLm.item.expiryDate
    Definition

    items[].expiry_date — Hạn sử dụng của lô

    Shortitems[].expiry_date — Hạn sử dụng của lô
    Control1..1
    Typedate
    Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
    36. vnPharmacyStockOutLm.item.manufacturerId
    Definition

    items[].manufacturer.id — Mã nhà sản xuất

    Shortitems[].manufacturer.id — Mã nhà sản xuất
    Control0..1
    Typestring
    Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
    38. vnPharmacyStockOutLm.item.manufacturerName
    Definition

    items[].manufacturer.name — Tên nhà sản xuất (tối đa 200 ký tự)

    Shortitems[].manufacturer.name — Tên nhà sản xuất (tối đa 200 ký tự)
    Control0..1
    Typestring
    Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
    40. vnPharmacyStockOutLm.item.manufacturerCountry
    Definition

    items[].manufacturer.country — Mã quốc gia sản xuất (ISO-3166)

    Shortitems[].manufacturer.country — Mã quốc gia sản xuất (ISO-3166)
    Control0..1
    Typestring
    Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
    42. vnPharmacyStockOutLm.item.gtin
    Definition

    items[].gtin — Mã GTIN theo cấp độ đóng gói

    Shortitems[].gtin — Mã GTIN theo cấp độ đóng gói
    Control0..1
    Typestring
    Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
    44. vnPharmacyStockOutLm.item.price
    Definition

    items[].price — Đơn giá xuất (2 chữ số thập phân)

    Shortitems[].price — Đơn giá xuất (2 chữ số thập phân)
    Control0..1
    Typedecimal
    Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
    46. vnPharmacyStockOutLm.transactionId
    Definition

    transaction_id — Mã giao dịch do hệ thống cấp trong response

    Shorttransaction_id — Mã giao dịch do hệ thống cấp trong response
    Control0..1
    Typestring
    Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
    48. vnPharmacyStockOutLm.processingStatus
    Definition

    status — Trạng thái xử lý bất đồng bộ (mục 6.2: accepted | processing | completed | error | rejected)

    Shortstatus — Trạng thái xử lý bất đồng bộ (mục 6.2: accepted | processing | completed | error | rejected)
    Control0..1
    Typecode
    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. vnPharmacyStockOutLm
    Definition

    Logical model cho payload phiếu xuất hàng gửi lên Hệ thống cơ sở dữ liệu về dược (POST /transactions/stock-out, API v1.1 mục 5.4.4). Bao trùm cả nghiệp vụ BÁN LẺ THUỐC (reason=sale-retail — v1.1 đã bỏ nhóm API hóa đơn /invoices của v1.0, bán lẻ chỉ còn liên thông qua stock-out): với bán lẻ theo đơn, đích FHIR chủ đạo là VNCoreMedicationDispense; với các nghiệp vụ kho khác là SupplyDelivery. reason=recall gắn trực tiếp quy trình thu hồi thuốc theo TT 30/2025/TT-BYT.

    ShortPhiếu xuất hàng CSDL Dược — Logical Model
    Control0..*
    Is Modifierfalse
    Logical ModelInstances of this logical model are not marked to be the target of a Reference
    2. vnPharmacyStockOutLm.transactionDate
    Definition

    transaction_date — Ngày/giờ xuất hàng (GMT+7 không ghi offset — mục 6.3.1)

    Shorttransaction_date — Ngày/giờ xuất hàng (GMT+7 không ghi offset — mục 6.3.1)
    Control1..1
    TypedateTime
    Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
    4. vnPharmacyStockOutLm.reason
    Definition

    reason — Loại phiếu xuất/Lý do xuất (mục 6.4.2; tối đa 20 ký tự)

    Shortreason — Loại phiếu xuất/Lý do xuất (mục 6.4.2; tối đa 20 ký tự)
    Comments

    Cơ sở bán lẻ: sale-retail | return | destroy | other. Cơ sở khác thêm: sale-wholesale | transfer-out | recall (xuất thu hồi theo công văn/khuyến cáo BYT). Giá trị return bắt buộc kèm supplier_id; transfer-out bắt buộc kèm cặp source_/target_.

    Control1..1
    Typecode
    Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
    6. vnPharmacyStockOutLm.sourceStoreId
    Definition

    source_store_id — Mã chi nhánh xuất hàng (chuỗi nhà thuốc, reason=transfer-out)

    Shortsource_store_id — Mã chi nhánh xuất hàng (chuỗi nhà thuốc, reason=transfer-out)
    Control0..1
    Typestring
    Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
    8. vnPharmacyStockOutLm.sourceWarehouseId
    Definition

    source_warehouse_id — Mã kho xuất (reason=transfer-out)

    Shortsource_warehouse_id — Mã kho xuất (reason=transfer-out)
    Control0..1
    Typestring
    Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
    10. vnPharmacyStockOutLm.targetStoreId
    Definition

    target_store_id — Mã chi nhánh nhập hàng (reason=transfer-out)

    Shorttarget_store_id — Mã chi nhánh nhập hàng (reason=transfer-out)
    Control0..1
    Typestring
    Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
    12. vnPharmacyStockOutLm.targetWarehouseId
    Definition

    target_warehouse_id — Mã kho nhập (reason=transfer-out)

    Shorttarget_warehouse_id — Mã kho nhập (reason=transfer-out)
    Control0..1
    Typestring
    Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
    14. vnPharmacyStockOutLm.supplierId
    Definition

    supplier_id — Mã định danh nhà cung cấp (reason=return — xuất trả nhà cung cấp)

    Shortsupplier_id — Mã định danh nhà cung cấp (reason=return — xuất trả nhà cung cấp)
    Control0..1
    Typestring
    Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
    16. vnPharmacyStockOutLm.referenceNumber
    Definition

    reference_number — Số chứng từ xuất hàng

    Shortreference_number — Số chứng từ xuất hàng
    Control1..1
    Typestring
    Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
    18. vnPharmacyStockOutLm.practiceLicenseCode
    Definition

    practice_license_code — Số GCN đủ điều kiện sản xuất/kinh doanh thuốc của chi nhánh (bổ sung ở v1.1; tài khoản cơ sở chính đẩy hộ thành viên chuỗi)

    Shortpractice_license_code — Số GCN đủ điều kiện sản xuất/kinh doanh thuốc của chi nhánh (bổ sung ở v1.1; tài khoản cơ sở chính đẩy hộ thành viên chuỗi)
    Control0..1
    Typestring
    Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
    20. vnPharmacyStockOutLm.note
    Definition

    note — Ghi chú (tối đa 500 ký tự)

    Shortnote — Ghi chú (tối đa 500 ký tự)
    Control0..1
    Typestring
    Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
    22. vnPharmacyStockOutLm.item
    Definition

    items[] — Danh sách thuốc trong phiếu xuất

    Shortitems[] — Danh sách thuốc trong phiếu xuất
    Control1..*
    TypeBackboneElement
    Invariantsele-1: All FHIR elements must have a @value or children (hasValue() or (children().count() > id.count()))
    24. vnPharmacyStockOutLm.item.id
    Definition

    Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.

    ShortUnique id for inter-element referencing
    Control0..1
    Typestring
    Is Modifierfalse
    XML FormatIn the XML format, this property is represented as an attribute.
    Summaryfalse
    26. vnPharmacyStockOutLm.item.extension
    Definition

    May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.

    ShortAdditional content defined by implementations
    Comments

    There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.

    Control0..*
    TypeExtension
    Is Modifierfalse
    Summaryfalse
    Alternate Namesextensions, user content
    Invariantsele-1: All FHIR elements must have a @value or children (hasValue() or (children().count() > id.count()))
    ext-1: Must have either extensions or value[x], not both (extension.exists() != value.exists())
    SlicingThis element introduces a set of slices on vnPharmacyStockOutLm.item.extension. The slices areUnordered and Open, and can be differentiated using the following discriminators:
    • value @ url
    • 28. vnPharmacyStockOutLm.item.modifierExtension
      Definition

      May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.

      Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).

      ShortExtensions that cannot be ignored even if unrecognized
      Comments

      There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.

      Control0..*
      TypeExtension
      Is Modifiertrue because Modifier extensions are expected to modify the meaning or interpretation of the element that contains them
      Summarytrue
      Requirements

      Modifier extensions allow for extensions that cannot be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the definition of modifier extensions.

      Alternate Namesextensions, user content, modifiers
      Invariantsele-1: All FHIR elements must have a @value or children (hasValue() or (children().count() > id.count()))
      ext-1: Must have either extensions or value[x], not both (extension.exists() != value.exists())
      30. vnPharmacyStockOutLm.item.drugId
      Definition

      items[].drug_id — Mã định danh thuốc (bắt buộc — validator trả lỗi khi để trống)

      Shortitems[].drug_id — Mã định danh thuốc (bắt buộc — validator trả lỗi khi để trống)
      Control1..1
      Typestring
      Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
      32. vnPharmacyStockOutLm.item.unitId
      Definition

      items[].unit_id — Mã đơn vị tính (bắt buộc — validator trả lỗi khi để trống)

      Shortitems[].unit_id — Mã đơn vị tính (bắt buộc — validator trả lỗi khi để trống)
      Control1..1
      Typestring
      Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
      34. vnPharmacyStockOutLm.item.quantity
      Definition

      items[].quantity — Số lượng

      Shortitems[].quantity — Số lượng
      Control1..1
      Typeinteger
      Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
      36. vnPharmacyStockOutLm.item.batchNo
      Definition

      items[].batch_no — Số lô sản xuất (tối đa 20 ký tự)

      Shortitems[].batch_no — Số lô sản xuất (tối đa 20 ký tự)
      Control1..1
      Typestring
      Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
      38. vnPharmacyStockOutLm.item.packagingSpecifications
      Definition

      items[].packaging_specifications — Quy cách đóng gói (bổ sung ở v1.1)

      Shortitems[].packaging_specifications — Quy cách đóng gói (bổ sung ở v1.1)
      Control0..1
      Typestring
      Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
      40. vnPharmacyStockOutLm.item.expiryDate
      Definition

      items[].expiry_date — Hạn sử dụng của lô

      Shortitems[].expiry_date — Hạn sử dụng của lô
      Control1..1
      Typedate
      Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
      42. vnPharmacyStockOutLm.item.manufacturerId
      Definition

      items[].manufacturer.id — Mã nhà sản xuất

      Shortitems[].manufacturer.id — Mã nhà sản xuất
      Control0..1
      Typestring
      Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
      44. vnPharmacyStockOutLm.item.manufacturerName
      Definition

      items[].manufacturer.name — Tên nhà sản xuất (tối đa 200 ký tự)

      Shortitems[].manufacturer.name — Tên nhà sản xuất (tối đa 200 ký tự)
      Control0..1
      Typestring
      Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
      46. vnPharmacyStockOutLm.item.manufacturerCountry
      Definition

      items[].manufacturer.country — Mã quốc gia sản xuất (ISO-3166)

      Shortitems[].manufacturer.country — Mã quốc gia sản xuất (ISO-3166)
      Control0..1
      Typestring
      Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
      48. vnPharmacyStockOutLm.item.gtin
      Definition

      items[].gtin — Mã GTIN theo cấp độ đóng gói

      Shortitems[].gtin — Mã GTIN theo cấp độ đóng gói
      Control0..1
      Typestring
      Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
      50. vnPharmacyStockOutLm.item.price
      Definition

      items[].price — Đơn giá xuất (2 chữ số thập phân)

      Shortitems[].price — Đơn giá xuất (2 chữ số thập phân)
      Control0..1
      Typedecimal
      Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
      52. vnPharmacyStockOutLm.transactionId
      Definition

      transaction_id — Mã giao dịch do hệ thống cấp trong response

      Shorttransaction_id — Mã giao dịch do hệ thống cấp trong response
      Control0..1
      Typestring
      Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
      54. vnPharmacyStockOutLm.processingStatus
      Definition

      status — Trạng thái xử lý bất đồng bộ (mục 6.2: accepted | processing | completed | error | rejected)

      Shortstatus — Trạng thái xử lý bất đồng bộ (mục 6.2: accepted | processing | completed | error | rejected)
      Control0..1
      Typecode
      Primitive ValueThis primitive element may be present, or absent, or replaced by an extension