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

HIS ERP Interface

Concept Verified 2026-04-28 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 Updated Tue Apr 28 2026 00:00:00 GMT+0000 (Coordinated Universal Time)

HIS ERP Interface — การเชื่อมต่อ MEDHIS กับ Odoo ERP

Overview

HIS ERP Interface คือชุดการรับส่งข้อมูลระหว่าง MEDHIS และ Odoo ERP เพื่อให้ข้อมูลบัญชี รายได้ และสต็อกของโรงพยาบาลสอดคล้องกันโดยอัตโนมัติ ใช้ RESTful API / JSON เป็นรูปแบบหลัก และมีบาง flow ที่อ้างถึง file/log ตามรอบประมวลผล.

flowchart LR
  Odoo[[Odoo ERP]]
  HIS[[MEDHIS]]
  PatientBilling[[Billing / Patient Bill]]
  HISInventory[[MEDHIS Inventory / Pharmacy]]
  OdooInv[[Odoo Inventory]]
  OdooAcct[[Odoo Accounting]]
  Payroll[[Payroll]]
  Budget[[Budget System]]

  Odoo -- Customer / Vendor / Item Master --> HIS
  HIS -- Receipt / Invoice / Deposit / Onward --> OdooAcct
  OdooInv -- Goods Receipt / Stock Adjust --> HISInventory
  HISInventory -- Dispense / Return / Transfer / Issue / Expired / Adjust --> OdooInv
  Payroll -- Journal Entry --> OdooAcct
  Budget -- Budget structure --> OdooAcct
  PatientBilling --> HIS

Interface Groups

GroupDirectionFrequency / TriggerMain Purpose
Customer MasterOdoo → MEDHISManual master alignment / APIPayor/customer reference for billing
Vendor MasterOdoo → MEDHISManual master alignment / APIVendor reference for procurement/accounting
Item MasterOdoo → MEDHISImmediate after ERP saveCreate/update HIS Item Master by item code
HIS ReceiptMEDHIS → OdooDaily 00:01Receipt revenue and payment posting
HIS InvoiceMEDHIS → OdooDaily 00:01Invoice / debtor posting
HIS OnwardMEDHIS → OdooMonthly, first day of next monthIPD ward revenue accrued but not billed
Goods ReceiptOdoo → MEDHISImmediate after ERP saveERP receiving updates HIS stock ledger
Stock AdjustOdoo → MEDHISImmediate after ERP saveERP adjustment updates HIS stock ledger
Dispense / Dispense ReturnMEDHIS → OdooDaily 00:01Patient sale and return stock movements
Transfer / Issue / Expired Goods / HIS Stock AdjustMEDHIS → OdooDaily 00:01HIS stock movement updates ERP stock
PayrollPayroll → OdooPrepared routeJournal entries for salary accounting
BudgetBudget → OdooPrepared routeBudget planning fields in Odoo

Environments

EnvironmentHIS EndpointERP Endpoint
UAT10.128.12.72, interface1-uat.kmch.local:7105roots-odoo-uat-1.kmch.local
Production10.128.12.19, interface1-prd.kmch.local:7105roots-odoo-prd-1.kmch.local

Core Field Groups

Data TypeKey Fields
Customer Mastercode, name, customer_type, tax_id, company name, address
Vendor Mastercode, name, tax_id, address
Item Mastercode, name, description, uom_code, store_codes, type_code (INV_MED, INV_MEDSUP)
Receipt / Invoicedocument id/name/ref, customer, patient_code, patient_name, episode_type, VN/AN, doctor_code, invoice_date, journal_code, account/cost/profit code, amount
Onwardgenerated id, patient name, HN, date, move_type entry, revenue lines, account/cost/profit code, balance
Goods Receipt / Stock Adjustdoc_no, doc_year, posting_date, store_code, item_no, item_code, batchid, expiry_date, uom_code, quantity
Stock Movement Outboundid, name, source, destination, date, product_code, cost_code, profit_code, batch, quantity

Test Result Summary

InterfaceTest Result
Master Dataผ่าน
Revenue: Receipt / Invoice / Onwardผ่าน
Inventory: Good Receipt / Stock Adjust inboundผ่าน
Inventory: Dispense / Return / Transfer / Issue / Expired / Adjust outboundผ่าน
Budget routeผ่าน / พร้อม
Payroll routeผ่าน / พร้อม

Operational Rules

Deep Extraction Pages

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