Queue Status and Routing
Concept Verified 2026-04-28 For: NurseOPDDoctorPharmacistAdminSystemITSupport Source: phase-4-uat-documents/1. MEDHIS/4. MEDHIS - เอกสารส่งมอบระบบ Queue.pdf Updated Tue Apr 28 2026 00:00:00 GMT+0000 (Coordinated Universal Time)
Queue Status and Routing — สถานะและการส่งต่อคิว
Overview
ระบบ Queue Management ใช้แนวคิด Worklist + Dashboard โดยแยกสถานะคิวตามจุดบริการและห้อง เพื่อให้ผู้ป่วยถูกเรียก พัก ส่งต่อ หรือจบคิวตามเส้นทางบริการจริง.
Core Queue States
| State / Tab | Meaning | Typical Actor |
|---|---|---|
| รอรายงานตัว | ผู้ป่วยถูกส่งมาถึงจุดบริการ แต่ยังไม่ได้ report | NurseOPD |
| รอเรียก | ผู้ป่วยพร้อมรอเรียกเข้าห้องหรือช่องบริการ | Doctor, NurseOPD, Pharmacist |
| คิวที่เรียก / Calling | ผู้ป่วยถูกเรียกแล้วหรือถูก assign เข้าห้อง/จุดพักคอย | Staff at service point |
| พักคอย | สถานะพักหลังจุดบริการหนึ่งและรอจุดถัดไป | NurseOPD |
| ออกจากคิว | กระบวนการบริการจบแล้ว ชื่อหายจาก Dashboard | Cashier / final service point |
Routing Pattern
stateDiagram-v2
[*] --> Registered: Registration success
Registered --> Screening: Forward to OPD screening
Screening --> DoctorQueue: Screening complete
DoctorQueue --> Called: Doctor calls queue
Called --> AfterDoctor: Forward/complete
AfterDoctor --> Pharmacy: Medicine/payment required
Pharmacy --> Cashier: Medicine prepared
Cashier --> Done: Paid / received medicine
Done --> [*]
Screening --> Hold: Patient not ready
DoctorQueue --> Hold
Hold --> Screening: Recall
Hold --> DoctorQueue: Recall
Queue Number
Queue No. is generated from the last 4 digits of Visit Number (VN). This makes Queue depend on successful Registration and a valid visit.
Department / Room Rules
| Setting | Effect |
|---|---|
| Department Type = OPD + Default Room | Patient appears at Calling tab and default room is selected automatically |
| Login without room | User sees all patients in the department |
| Login with room | User sees only patients assigned to selected room |
| Forward configuration | Controls which destination departments appear when a room-specific user completes/forwards a queue |
Display Refresh
| Surface | Refresh Interval |
|---|---|
| Worklist | Every 2 minutes |
| Dashboard | Every 1 minute |