DentaItinerary

Patients fly abroad for dental work on a cheap quote. If the price changes or the treatment goes wrong, they’re already thousands of miles from home.

My part: System design, architecture, backend and end-to-end delivery.

Visit DentaItinerary (opens in a new tab)

The problem

86%

of UK dentists who’d seen patients treated abroad had treated complications afterwardsSource: British Dental Association survey (opens in a new tab)

Dental work in India can cost a fraction of UK prices, so patients plan flights, time off and treatment around a clinic they’ve never seen.

UK dentists see what happens next. In a British Dental Association survey, most who had seen patients treated abroad had fixed complications afterwards, and over half put the repair bill above £1,000. The cheap quote is where it starts.

What I built

  1. The price is fixed before the flight

    Patients get one written quote built by their coordinator. Clinic prices above a researched benchmark are rejected before they reach anyone.

  2. Paying is agreeing

    Paying the deposit accepts the quote, declines the alternatives and books the journey in one database transaction, so they can never fall out of step.

  3. No payment gets lost

    Every Stripe event is saved before anything else happens, and anything unprocessed after five minutes is picked up again.

  4. Changes come with a price list

    If treatment has to change mid-trip, a fixed-price menu covers it, so nobody is haggling in the chair.

How it’s built

A 60-second planner, a vetted clinic, a written fixed quote before you fly, one coordinator and a day-by-day itinerary.

Data
PostgreSQLdeposit + booking in one transaction
Redis
QueuesAWS SQS + sweeper
Services
State machinesjourney, quote, itinerary
Pricingbenchmark cap
Recovery emails+24h, +72h, +7d
API
Three user typespatients, clinics, coordinators
Stripe webhookssaved first
Sign-inmagic link + OTP

Your itinerary

Day 03 · Treatment I

  1. 09:30Clinic appointmentPartner clinic
  2. 13:00Rest & lunchYour hotel, 4 min from clinic
  3. EveningStayYour hotel, night 3 of 6

Price confirmed in writing

Paying the deposit is accepting the quote. Payment, acceptance, declining the other quotes and booking happen in one transaction.

Every Stripe event is saved before anything else. A sweeper re-queues anything still unprocessed after 5 minutes.

Clinic prices above a researched benchmark are rejected. Patients see one coordinator-built price; clinic prices never reach them.

Journeys, quotes and itineraries are state machines shared by patient, clinic and coordinator. A final itinerary locks.

Clinical changes mid-trip are priced from a fixed menu, the Deviation Protocol, so the price stays predictable.

  1. PostgreSQL · DataPaying the deposit is accepting the quote. Payment, acceptance, declining the other quotes and booking happen in one transaction.
  2. Stripe webhooks · APIEvery Stripe event is saved before anything else. A sweeper re-queues anything still unprocessed after 5 minutes.
  3. Pricing · ServicesClinic prices above a researched benchmark are rejected. Patients see one coordinator-built price; clinic prices never reach them.
  4. State machines · ServicesJourneys, quotes and itineraries are state machines shared by patient, clinic and coordinator. A final itinerary locks.
  5. Fixed quote · InterfaceClinical changes mid-trip are priced from a fixed menu, the Deviation Protocol, so the price stays predictable.

Decisions I made

How it grew

I built it in stages, each one on top of the last.

  1. Mar–Apr 2026Foundation
    • Stack
    • Auth
    • Journeys
    • Admin
  2. Apr–May 2026Catalog & supply side
    • Treatments
    • Clinics
    • Quotes
  3. May–Jun 2026Money & itinerary
    • Stripe
    • Balance scheduling
    • Pricing
    • Deviation Protocol
    • GDPR export and erasure
    • Clinic vetting
  4. Jun 2026Launch hardening
    • Catalog seeding
    • Deploy pipeline
    • Onboarding
    • PDF itineraries
    • Drop-off recovery

The size of it

months to build
~3
modules
21
API paths
~137
data models
37
commits
87

Built with