Operations

Live write flows — status, QR handoff, dispatch, and offline sync — wired to the backend.

Live writes

Wire the operational flows through the backend

These controls hit the real referral, dispatch, QR, and offline sync endpoints so the UI can do more than display snapshots.

Update status

Advance a referral from created to received or completed.

Verify QR

Confirm the handoff at the receiving facility.

Request ambulance

Create a dispatch from a patient and facility route.

Retry sync

Replay a failed queued action from the offline queue.