中文 Book a demo

The trip lifecycle: why eight states beat two

Products · · Updated November 25, 2026 · Maintained by 962120 Anhusong

Most dispatch tools model a trip with two flags: assigned and completed. That is enough to draw a list, and not enough to answer any of the questions an operator actually asks — why the trip was late, who had the patient when, whether the fare should include waiting, and whether a no-show is chargeable.

This platform models a trip as a state machine. Each transition writes a timestamp, a position where relevant, and an actor. The state is the single source of truth for dispatch, fare and reporting.

The states

StateMeaningWhat the transition writes
IntakeTrip exists, not yet validatedCaller, channel, pickup window, mobility requirement, payer
ReadyValidated and dispatchableFare rule binding, eligibility result, priority
AssignedVehicle and crew committedAssignment mode, candidate rank, override reason if any
En routeCrew traveling to pickupDeparture time, position trace start
At pickupCrew arrived at the pickup pointArrival time, waiting clock start
On boardPatient in the vehicleBoarding time, patient identity confirmation
At destinationVehicle arrived at destinationArrival time, waiting clock stop
HandoverPatient accepted by a named recipientRecipient name, signature or photo reference
CompletedTrip closed for billingFare amount, rule version, evidence links

Exception outcomes are states, not deletions

A trip can also end without transport: canceled by the patient, canceled by the payer, no-show at pickup, refused at the receiving facility, or diverted en route. Each is recorded as a terminal outcome with its own reason code and its own chargeability rule.

This matters commercially. A no-show where the crew waited 25 minutes is billable under most contracts; a cancellation called in two hours ahead is not. If the system reduces both to "canceled", finance cannot apply the rule and the operator either writes off legitimate revenue or argues every invoice.

Why does the state model change dispatch behavior?

Dispatch reads the state, not a separate task list. A vehicle is unavailable because a trip is on board or en route, not because a dispatcher remembered to mark it busy. Waiting time is computed between at pickup and on board, so it cannot be typed in later from memory.

Escalation also depends on state. A trip stuck in ready past its window escalates differently from a trip stuck in assigned where the crew has not departed. The first is a capacity problem; the second is a crew problem. Treating them as one alert trains dispatchers to ignore alerts.

What the model gives reporting

  • Pickup punctuality measured against the window, per hospital, per provider, per hour of day.
  • Waiting time that is a computed fact rather than an adjustment claim.
  • Handover completeness: the share of trips with a named recipient and evidence.
  • Exception mix: cancellations, no-shows, refusals and diversions as separate lines, not one "failed" bucket.

Frequently asked questions

Can a dispatcher skip states? No, and that is deliberate. A trip cannot be completed without a handover record, because the handover is the evidence that transport happened. Where a contract genuinely has no recipient — a self-pay ambulatory trip to a clinic entrance, for example — the recipient field records the clinic reception instead of being left blank.

What happens if the driver app loses connectivity mid-trip? Transitions are queued locally with device time and synchronised later. The server records both device time and receive time, so a gap is labelled rather than silently closed.

Can states be edited after the fact? Not silently. A correction writes a new entry with an actor and a reason, and the original remains visible. An editable history is not a history.

Related: the platform capability notes describe how these states surface in the dispatcher console, and the operations notes cover the rule set behind assignment.

Reference: Medicaid.gov — NEMT benefit definitions, including trip and mode of transport.

Want to see this workflow with your own fleet data?