Skip to content
Code Serve Tech logo

Care team scheduling for a clinic group

Scheduling across nine clinics with rota fairness, leave management, and a published API for the EHR integration.

6 MONTHS · 3 ENGINEERS · SCHEDULING + INTEGRATIONS

§01 / THE BRIEF

A clinic group with nine sites needed scheduling that respected clinical role mixes, fair rota distribution, and leave management, then handed the resulting schedule to their EHR for visit-level workflow. The previous system was a manual scheduling spreadsheet maintained by one person across all nine sites — a single point of failure the group had finally decided to retire.

§02 / THE WORK

  1. 01

    Rota engine

    Built a constraint-based rota engine that respects role mix, qualification requirements, leave windows, and a configurable fairness function. Generates draft rotas in under a minute for a 30-clinician site.

  2. 02

    Leave management

    Leave requests, approvals, and balance tracking integrated with the rota engine so approved leave automatically rebalances coverage.

  3. 03

    EHR integration

    Published a documented REST API for the EHR vendor to consume confirmed schedules. Event-driven updates so EHR-side visits stay in sync within seconds of rota changes.

§03 / RESULTS

SITES COVERED
9
TIME TO DRAFT A ROTA
< 1 minute
EHR SYNC LATENCY
< 5 seconds
SINGLE-POINT-OF-FAILURE RETIRED
1

§04/ TEAM & STACK

TEAM

  • Architect×1
  • Engineers×2
  • Duration6 MONTHS

STACK

  • TYPESCRIPT
  • POSTGRESQL
  • NEXT.JS
  • OR-TOOLS (CONSTRAINT SOLVER)

Have a brief that looks like this?

Bring it to us