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

OP Billing Workflow

Workflow Verified Wed Apr 29 2026 00:00:00 GMT+0000 (Coordinated Universal Time) For: AdminSystem Source: 5.MEDHIS Manual_Billing V.1.docx Updated Wed Apr 29 2026 00:00:00 GMT+0000 (Coordinated Universal Time)

ชำระเงิน

เตรียม Bill

Medical Discharge

Lock Bill

Allocate Bill

Modify Payor

Allocate All

Generate Bill

Settle

Financial Discharge

Workflow flowchart

กระบวนการออกบิลผู้ป่วยนอก (OP Billing Workflow)

ขั้นตอนการออกเอกสารทางการเงินสำหรับผู้ป่วยนอกใน Billing module

ขั้นตอน

1. ผู้ป่วยมาถึงการเงิน

2. Lock (ล็อคผู้ป่วย)

3. Allocate Bill

4. Modify Payor (ถ้าจำเป็น)

5. Allocate All (คำนวณใหม่)

6. Generate Bill

7. Settle (ชำระเงิน)

8. Financial Discharge

Flow Diagram

Medical Discharge → Lock → Allocate → [Modify Payor] → Allocate All → Generate Bill → Settle → Financial Discharge

Modules Involved

UAT Verification (Phase 5b–5e, 2026-04-29)

Source: TCK-001 walkthrough Phase 5b–5e, see uat-recon/agent-uat-handoff §5 Recipe Phase 5b–5e.

Self-pay collapse — 7 steps → 2 atomic actions

The 7-step flow above (Lock · Allocate Bill · Modify Payor · Allocate All · Generate Bill · Settle · Financial Discharge) is the Invoice / payor-mix mode. For OPD self-pay (ชำระเงินเอง), the flow collapses to:

  1. Lock — on OP Cashier Worklist → vm.lockPatientVisit(visit) → status Billing Inprogress (VSTSTS8 / _id 57c4446aa454a0ba852ce690)
  2. Settle — on Generate Bill Screen → vm.settleBill() → POST /billing/generatebill/settle

The single settleBill() call atomically:

Steps 2–5 of the manual flow do not require operator action for self-pay — auto-allocation handles them.

Auto-attached service charge

Every OPD visit auto-attaches ค่าบริการผู้ป่วยนอก ในเวลาราชการ:

FieldValue
Charge code55020
Item UID6833e0e7c7a8b1000176354a
Amount150.00 baht
BehaviorAttached at visit creation regardless of orders placed

See Generate Bill Screen.

Receipt format

RO<YY><serial> e.g. RO26001901 (Receipt Outpatient, year 26 BE → 2026, serial 001901).

Verified TCK-001 outcome

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