KMCH HIS Wiki
สแกนเพื่อเปิดบนมือถือ

HIS ERP Interface Data Dictionary

Concept Verified Tue Apr 28 2026 00:00:00 GMT+0000 (Coordinated Universal Time) For: AdminSystemITSupportFinanceAccountingWarehouseStaff Source: phase-4-uat-documents/1. MEDHIS/3. MEDHIS - รายงานผลการทดสอบเชื่อมโยงระบบ MEDHIS กับระบบงาน ODOO ERP.pdf, phase-4-uat-documents/2. Odoo ERP/2. Odoo - รายงานผลการทดสอบเชื่อมต่อ Odoo กับระบบต่างๆ.pdf, phase-4-uat-documents/2. Odoo ERP/4. Odoo - คู่มือสำหรับการฝึกอบรมผู้ใช้งานหลักระบบ ERP (User Manual).pdf Updated Tue Apr 28 2026 00:00:00 GMT+0000 (Coordinated Universal Time)

HIS ERP Interface Data Dictionary

Purpose

Field-level dictionary for the HIS ERP Interface between MEDHIS and Odoo ERP. Use this page when mapping payloads, validating reruns, or diagnosing interface errors.

Master Data

InterfaceDirectionKey FieldsNotes
Customer MasterOdoo → MEDHIScode, name, customer_type, tax_id, company name, addressSupports billing/payor reference.
Vendor MasterOdoo → MEDHIScode, name, tax_id, addressSupports procurement/accounting reference.
Item MasterOdoo → MEDHIScode, name, description, uom_code, store_codes, type_codeMedicine and medical-supply product master must align with HIS Item Master.
Product API triggerOdoo → MEDHISInternal Reference, Product Name, Internal Notes, UOM code, Product Category codeProduct category can expose Send API when configured to send to HIS.

Revenue Outbound

PayloadDirectionTimingHeader FieldsLine / Payment Fields
HIS ReceiptMEDHIS → OdooDaily 00:01id, name, customer, patient_code, patient_name, episode_type, episode_code, doctor_code, ref, invoice_date, journal_code [1], move_type out_invoicelines.display_type, lines.name, lines.account_code, lines.cost_code, lines.profit_code, lines.price_unit, payments.method, payments.bank, payments.ref, payments.ref2, payments.amount
HIS InvoiceMEDHIS → OdooDaily 00:01id, name, customer, patient_code, patient_name, episode_type, episode_code, insurance_code, doctor_code, ref, invoice_date, journal_code [2], move_type out_invoicelines.display_type, lines.name, lines.account_code, lines.cost_code, lines.profit_code, lines.price_unit
HIS OnwardMEDHIS → OdooMonthly, first day of next monthid, name, ref, date, move_type entrylines.name, lines.account_code, lines.cost_code, lines.profit_code, lines.balance
DepositMEDHIS → OdooInterface test scopeaccounting date, number, HN, VN, account, debit/credit, analytic, customer payment fieldsTested in Phase 4 as passed.

Inventory Inbound To MEDHIS

PayloadDirectionTriggerHeader FieldsItem FieldsQuantity Rule
Goods ReceiptOdoo → MEDHISOdoo save/APIdoc_no, doc_year, posting_date, store_codeitem_no, item_code, batchid, expiry_date, uom_code, quantityQuantity must be positive.
Stock AdjustOdoo → MEDHISOdoo save/APIdoc_no, doc_year, posting_date, store_codeitem_no, item_code, batchid, expiry_date, uom_code, quantityPositive increases stock; negative decreases stock.

Inventory Outbound To Odoo

PayloadDirectionTriggerHeader FieldsItem Fields
Dispense / Dispense ReturnMEDHIS → OdooDaily 00:01id, name, source, destination, dateproduct_code, cost_code, profit_code, batch, quantity
Transfer / Issue / Expired Goods / HIS Stock AdjustMEDHIS → OdooDaily 00:01id, name, source, destination, dateproduct_code, cost_code, profit_code, batch, quantity

Interface Validation Rules

เนื้อหาที่เกี่ยวข้อง / Related