RideKit
Docs/Reference/Healthcare and NEMT patient rides

Healthcare and NEMT patient rides

Built: 2026-11-04.

This is for operators selling to clinics, health plans and Medicaid brokers, and for whoever maintains the code.

Overview

Uber Health and Lyft Healthcare sell a booking desk to healthcare organizations. A coordinator books rides for patients who have no app, using the patient's name and phone number. A ride can be for now or for an appointment, and can include the ride home. The patient gets text updates, the organization is billed, and every trip can be exported for the broker's reconciliation. Lyft provides Medicaid non-emergency medical transport (NEMT) rides in 21 states.

In RideKit a health account is a corporate account that the operator has marked as one. Billing, the credit limit, monthly invoices and credit notes all work as they do for any corporate account.

Setting up an account

  1. Admin → Organizations: create the corporate account, or pick an existing one. Verify it and set its credit limit, as for any company.
  2. Edit → turn on "Healthcare account (book for patients)". Only corporate accounts can be health accounts (health_needs_corporate). The setting is the operator's alone; the account's owner cannot change it.
  3. The owner, and any member with the manager role, can now book.

Booking (rider app → Business → Patient rides)

Field Notes
Patient A name and a mobile number with the country code. The member or trip ID is optional, and appears on the ride and in the export.
From / To Searched addresses.
When Now, or a time up to 30 days ahead.
Ride home Optional. It is booked from the drop-off back to the pickup at the chosen time, which must be at least 5 minutes after the ride there. If the ride home fails to book, the ride there stands and the coordinator is told why.
Ride type Every type available on the route, with its fare. WAV types are marked ♿. A WAV or Assist type records accessible_kind on the ride.
Text updates On by default. Turn it off for a patient who uses the app themselves.

The patient's account:

  • A patient with no account gets one, made from their phone number.
  • If they install the app later, they log in by OTP and see their rides.
  • They are not added to the organization's members.
  • A blocked account is refused (health_patient_blocked).
  • A patient already on a ride now is refused (health_patient_busy).

What does not apply on a patient ride:

  • Teen-account rules: the organization pays, not the family.
  • Brazil's CPF requirement: the ride is the organization's purchase, invoiced to its CNPJ.

Billing: the ride is billed to the organization (payment_method = 'organization', org_id). The credit check and any expense-field requirements run against the coordinator, not the patient.

Bulk booking: POST /orgs/:orgId/patient-rides/bulk with { rides: [...] } books up to 50 rides. Each row succeeds or fails on its own, and the response reports booked and failed rows by row number. It is meant for broker integrations that send a day's trips at once.

The patient's texts

The texts go out through the installation's SMS provider, in the market's language. Nine languages have their own text; any other language gets English.

When Text
Booked "{org} booked your ride to {to}…", or "…for {when}" when the ride is for later
Driver accepted The driver's name, the car and plate, and a live tracking link (TripShare)
Driver arrived "Your driver {name} is outside in a {car} ({plate})"
Cancelled / no driver "Your ride to {to} was cancelled. Contact {org}…"

If the ride needs a start PIN, it is added to the "booked" and "driver accepted" texts. Sending is best-effort: a failed text never holds up the ride.

Reconciliation export

You can download the export from either of two places:

  • the rider app, under Patient rides → Export (shared as text);
  • Admin → Organizations → Billing, under the Patient rides block, which shows the counts and a Download CSV button. Each download is audited as org.patientRides.export.

The CSV has one row per ride, with these columns:

Column Notes
ride_id
patient_name
patient_phone
member_ref The member or trip ID
status
ride_type
wheelchair_or_assist
pickup_address
dropoff_address
scheduled_for ISO 8601 UTC
requested_at ISO 8601 UTC
picked_up_at ISO 8601 UTC
dropped_off_at ISO 8601 UTC
miles GPS-travelled, or the quoted distance when there is no GPS distance
fare Filled only once the ride is completed
currency
driver
vehicle_plate
return_of_ride The ride this one is the way home from
booked_by

Typed text that starts with =, +, - or @ is prefixed with ', so a spreadsheet does not run it as a formula.

Confirm locally.

  • Medicaid NEMT brokers (ModivCare, MTM, Verida and others) each have their own trip-log format and signature or attestation requirements. Map this export to your broker's template.
  • Patient names and phone numbers are PHI when tied to a healthcare provider. Sign a BAA where HIPAA applies, and keep the exports out of email.
  • Some states require NEMT drivers to hold extra credentials or training. Configure them under driver eligibility and training.

Code

Area Where
Rules (no I/O) backend/src/patient-rides/health-rides.ts (+ spec): patient and time validation, SMS copy, export row
Booking, list, cancel, export patient-rides/health-rides.service.ts, mounted at /orgs/:orgId/patient-rides (GET, POST, POST bulk, POST :rideId/cancel, GET export.csv) and /orgs/admin/:orgId/patient-rides (GET, GET export.csv)
Texts patient-rides/health-sms.service.ts, called from RidesService.transitionAndNotify when rides.sms_updates is set
Data Migration 1700000206000-HealthRides: organizations.health_account, rides.patient_ref, rides.sms_updates, rides.return_of_ride_id
Billing gate org-billing.service.ts assertBookable({ bookerId })
Rider app app/(app)/patient-rides.tsx, plus a link on business.tsx
Admin organizations/page.tsx: the health toggle in Edit, and the Patient rides block in Billing

Tested

  • Unit tests: health-rides.spec.ts.
  • End to end: 24 checks:
    • the account gate and the role gate;
    • booking with the ride home;
    • the patient account created from the phone number;
    • billing to the clinic, and the patient not added as a member;
    • the texts in Portuguese, including the live link and the plate;
    • a full trip settled on the clinic's ledger;
    • bulk booking with a failed row, and the 50-ride cap;
    • the list, cancelling (with a text to the patient), and another account refused;
    • the CSV with ISO times, miles and fare;
    • the operator export, audited and permission-checked;
    • text updates off.
  • iOS (Arabic, RTL): the Business card, and the full booking form:
    • address search;
    • ride types with fares;
    • the ride home;
    • booking, and the list.
  • Chrome: the admin health toggle and the CSV download.
source: docs/us-healthcare-nemt.md (ships identically in the product zip)