medOS ultra

News

Auto-assign dispatcher shipped: porter → queue projection, SUGGEST panel with notify-on-assign

2026-05-29DispatchAuto-assign

The existing auto-assign engine finally fires on order events — a trigger AFTER INSERT ON department_queues drives suggestions in the PorterGigBoard with notification on assignment.

The auto-assign engine could already rank and assign staff, but nothing invoked it outside the admin screen. The new dispatcher closes that gap: a Postgres trigger fires AFTER INSERT ON department_queues — the single dispatch funnel — maps the department type to an order type, and runs the resolver.

In SUGGEST mode it logs recommendations to a panel in the PorterGigBoard; in AUTO mode it accepts the top-ranked candidate. Mover roles land on user tasks, while in-place roles land on the queue row's assigned_to.

Accepting an assignment creates an acknowledgement request through the messaging dispatcher, so staff are notified in-app and on the web. The dispatcher is off by default — zero behavior change until a hospital configures it.

Ask Anything