Skip to content

Client work · Case study

Scheduling a trauma department, made calm.

A Level 1 trauma department in the Northeastern US was running a demanding, rule-heavy call schedule on spreadsheets, texts and memory. We built them their own scheduling software: a main screen for the person who builds the month, and a calm, phone-first portal for the attendings (the department’s senior doctors) who live by it. It's fitted to how the department actually works: its rules, its handovers, its people.

THREE ACTS · 13 FEATURES BUILD · BREAK · LIVE WITH IT

How long have you got?

Read all three acts, or one highlight from each. You can switch at any point.

Act 1 of 3

Build the month.

For the person who builds the schedule: a fair draft in one click, every rule checked, everyone's share in the open and every holiday covered.

OPERATOR

The whole department, one glance.

Month status, the decisions waiting on you and a week of coverage, all on one calm screen.

Scheduling Hub · demo
MONTHSLast sent: January 2027. Next up: February 2027.
November 2026SENTSent Mon, Sep 28, 2026
December 2026SENTSent Wed, Sep 30 · Revised Oct 12 · Rev 1
January 2027SENTSent Wed, Sep 30 · Revised Oct 12 · Rev 1
February 2027INTAKEIntake open · requests due Nov 15
NEEDS A DECISIONTap whichever one needs you. Approving changes the published schedule.
Call-outs & swaps0 uncovered7-day coverage, live
Time off & changes1 waitingOpen the queue →
Build the month0 months to draftNext 30 days fully staffed
Shown with demo data. Names, initials and numbers are illustrative.

OPERATOR

A fair month, drafted for you.

Hit Generate and get a complete, rule-checked schedule with a balance score you can defend.

The math behind Generate ↓
Scheduling Hub · Build the month · demo
March 2027 · draft ▾ Sign off & send…
Drafted from the attendings, their requests and the rulebook. Nothing is sent until you sign off.
DAYCALLBACK-UPICU 1ICU 2FLOOR/OR Thu 1 TB VO LS CL AR Fri 2 CL RVT DK KP AR Sat 3 EV GT JW CL BM Sun 4 FH JW MN AR LMC Mon 5 RVT FH GT KP BM Tue 6 GT FH CL SD MN Wed 7 KP MN VO SD GT Thu 8 KP PR RVT CL BM
A−DRAFT GRADE BALANCE SCORE · ILLUSTRATIVE94.2✓ Weekend calls within ±1✓ 0 hard rules broken✓ 61 of 64 requests honored
Shown with demo data. The grade, score and counts are illustrative, not results.

OPERATOR

Your rules, enforced automatically.

Hard limits, preferences, pairings and weekend caps are written once and checked on every draft. Each one is a line of math underneath.

See a rule become an equation ↓
Scheduling Hub · Rules · demo
RULES What the scheduler will do Find a rule. Open it for details and exceptions. A word from the rule, or an id like CAP-2 Generate will not draw across a hard rule, and a month that breaks one is refused.
Fill each required position or show an explicit gap.HARD-1Hard rule
Keep Call and Back-up on different people each day.HARD-5Hard rule
Honor each configured monthly weekend limit.CAP-2Weekend cap
Keep the configured pair apart on Call and Back-up.PAIR-2Pairing
Prefer no call the night before a clinic day.PREF-4Preference
Shown with demo data. Rule ids are illustrative.

ATTENDING

Fair, and you can see it.

Your share of weekends, calls and holidays, next to the group. The same share the solver aims every attending at.

Attending portal · My Stats · demo
My fairness numbersYour share of the published year, next to the group.
Are you doing more than your share? No — you're right at it. 100% of your share, so far this year. Nearly everyone lands right around 100%.
you
80%100% = exactly your share120%
Your counts, next to everyone else's
Weekend days
≤1520–25 · you26–3031+
Call shifts
≤910–21 · you22–2526+
Shown with demo data. Percentages and counts are illustrative, not results.

ATTENDING

Holidays, handled.

You're off. Coverage is handled. Every holiday of the year and who's covering it, with yours highlighted so there's never any doubt.

Attending portal · Holidays · demo
Holiday coverageEvery major holiday for the year, and who's covering it. Your holidays are highlighted.
Veterans DayWed, Nov 11
Call PRBack-up KPICU 1 RQICU 2 JWFloor/OR TB
You're off. Coverage is handled.
ThanksgivingThu, Nov 26
Call GTBack-up KPICU 1 EVICU 2 CLFloor/OR AR
You're off. Coverage is handled.
Christmas EveThu, Dec 24
Call RVTBack-up KPICU 1 SDACS BMACS 2 EV
You're on — thank you for covering.
Shown with demo data. Names, initials and numbers are illustrative.

Act 2 of 3

When it breaks.

People get sick, ask for time off and swap. Each break is handled in a few taps, and nothing changes quietly.

ATTENDING

Just say it.

Type "I'm off the week of Thanksgiving", see the dates it understood, then send. Only the dates are shared.

Attending portal · demo

November 2026

SUNMONTUEWEDTHUFRISAT 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
Your words become dates. You see exactly what it understood before anything is sent — only the dates go with your request.
WHAT IT UNDERSTOOD ● Off · Mon Nov 23 – Sun Nov 29 7 days · includes Thanksgiving, Thu Nov 26. Only these dates go with your request.
Shown with demo data. Try your own sentence; nothing is sent from this page.

OPERATOR

See the hole before you approve it.

Every time-off request shows exactly which shifts it would leave open, and who can cover them.

Scheduling Hub · Requests · demo
THE ASK● SD · OffSun Dec 27 – Sat Jan 27 days · 2 on a weekend · waiting
THOSE DAYS
Sun2711 Mon2811 Tue2913 Wed3014 Thu3114 Fri115 Sat214
Number under each day: doctors free, of 20.
WHO CAN FILL SUN 27
KPKP · free Sun 27 · 2 calls this monthCan fill
ARAR · free Sun 27 · last call Dec 19Can fill
TBTB · free · would be 3rd weekendOver cap
Approving this leaves 2 shifts unfilled:Call AM · Sun 27 Dec
ICU 1 · Sun 27 Dec
✓ ApproveOpens 2 shifts Talk firstHold it until you've spoken to them ✕ Decline…With a reason they see
Shown with demo data. Names, initials and numbers are illustrative.

ATTENDING

Out sick? Two taps.

Pick the day and send. Scheduling is texted the moment you send it, and no medical information is shared. Built for the hour nobody wants to make a phone call.

3:02•••
Report a sick day or emergencyThis creates a clearly-flagged notice so coverage can be arranged fast.
✓ Scheduling is texted the moment you send this.
For a shift in the next few hours, call as well.
① PICK THE DAY · OCTOBER 2026
② WHAT'S AFFECTED
I'm sick Mon, Oct 26 → Your notice includes only your initials, the date, and what's affected — no medical information.
Shown with demo data. Tap a day; nothing is sent from this page.

OPERATOR

Every change, accounted for.

Each revision is versioned and compared with the last, so nothing changes quietly.

Scheduling Hub · Call load · demo
DECEMBER 2026 · REVISION HISTORY
Published Wed, Sep 30Revised Oct 12 · Rev 1Every change logged
What changed since November, person by person.
VO8 → 18+10Call −1 · Wknd +1 · ACS +6 · Clinic +1
JW12 → 19+7Wknd +2 · ICU −4 · F/OR +5
RQ7 → 0−7Wknd −2 · ICU −7
TB16 → 10−6ICU −7 · F/OR +1
LMC11 → 16+5ICU +5 · B/U +1 · ACS −1
LS11 → 7−4Hol −1 · ACS −4
BM6 → 9+3Call −2 · Hol +2 · ACS +6
Rules broken per month TRACK RECORD · ILLUSTRATIVE DEMO VALUES
JFMAMJJASOND
Shown with demo data. The chart's trend is illustrative, not a measured result.

Act 3 of 3

What it feels like.

For the attendings who live by it: who's on in one second, the next shift as a sentence, and every shift in the calendar they already use.

ATTENDING

Who's on, in one second.

The department board opens on today, with no login and no app: who's on call, ICU, floor and back-up. The night's call hands to the day's at seven, and the board says so.

Department board · demo
On todayOfficial · version 1INITIALS ONLY
UNTIL THE MORNING HANDOVERRVTSunday's 24-hour call
FROM THE MORNING HANDOVERJW24 hours, into Tuesday morning
ICU 1MN
ICU 2MICU
FLOOR/ORPR
ACSLS
BACK-UPGT
ON CALL · NEXT 7 DAYS
MON 19JW
TUE 20LMC
WED 21SD
THU 22DK
FRI 23PR
SAT 24FH
SUN 25JW
Shown with demo data. Names, initials and numbers are illustrative.

ATTENDING

When do I work next?

Open the portal and the answer is the headline, along with your weekend, your next two weeks and your longest break.

8:15•••
Attending PortalTrauma Department BM
Monday, October 19 NEXT ON YOUR SCHEDULE You are next on Mon, Oct 26. Oct 26 brings ICU 1, and it holds through Sunday. THIS WEEKENDoff · Oct 24 & Oct 25
19 20 21 22 23 24 25 ICU26 ICU27 ICU28 ICU29 ICU30 ICU31 B/U1
7 days off — your longest stretch off. HOLIDAYVeterans Day · Wed, Nov 11 — you're not on it
Shown with demo data. "BM" is the attending viewing their own schedule.

HERO FEATURE

A swap lands before anyone's awake

Your shifts on your phone. Subscribe once.

Every call, ICU week and floor day lands in the calendar you already use, and approved swaps and sick-day covers update themselves.

6:30•••
OCT31 Calendar
Swap approved — Sat Oct 31 Call is now yours. Updated on its own.
MTWTFSS 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
UP NEXT
MON26 Call7:00 AM – 7:00 AM · TraumaUPDATED
TUE27 ICU 1All day · TraumaUPDATED
WED28 ICU 1All day · TraumaUPDATED
THU29 Back-up7:00 AM – 7:00 AM · TraumaUPDATED
SAT31 Call7:00 AM – 7:00 AM · TraumaUPDATED

Your shifts on your phone

Subscribe once. Approved swaps and sick-day covers follow on their own — the portal is always current.

Every shift you are on Apple / iPhone Google Calendar (Android)
Google Calendar can take up to a day to reflect changes — the portal is always current. Anyone with this link can see your schedule. Reset it if you shared it by mistake. ↻ Reset link
Shown with demo data. Names, initials and numbers are illustrative.

Nothing moved. And you can see that.

Every published month carries its version, and revised months say so. The call hands over at seven, exactly where the board said it would.

Department BoardOctober is official, version 1 — nothing has moved since it went out. ✓ Official · version 1
Shown with demo data. Initials and dates only — no patient information.
THAT WAS THE HIGHLIGHTSTen more features fill out the three acts.

Under the hood

The math behind a fair month.

Behind Generate is a free scheduling tool from Google (OR-Tools). Each department rule becomes something the computer checks, and among the schedules that break no rule it looks for the fairest. Technically it is a constraint model solved with CP-SAT, the open-source solver in OR-Tools: every rule becomes a line of math, and fairness becomes the thing the solver minimises.

3,600yes-or-no decisions: 30 days × 6 seats × 20 attendings.
1,084digits in 2 to the power of 3,600, the number of ways to fill those yes-or-no decisions. Almost all of them break a rule.
1board gets published: the fairest one the solver finds that breaks nothing.

Sized for a month like the demo. Arithmetic, not results.

  1. 01 · RULES BECOME MATHΣp xd,s,p = 1Every hard rule is a constraint. A board that breaks one doesn't exist to the solver.
  2. 02 · FAIRNESS IS THE GOALmin Σp |Lp − Tp|Among legal boards, find the one closest to everyone's fair share.
  3. 03 · OPEN-SOURCE SOLVEROR-Tools CP-SATPublic tools do the searching. The department's rules stay theirs.

The rulebook, written as math

Hard rules are constraints: a board that breaks one doesn't exist as far as the solver is concerned, which is why a month that breaks one is refused. Preferences are penalties: they can bend, and bending them has a visible cost.

xd,s,p ∈ {0, 1} One yes-or-no decision for every day d, seat s and person p. VARIABLES
Σp xd,s,p = 1 for every d, s Every seat, every day, has exactly one person. HARD-1
Σs xd,s,p ≤ 1 for every d, p Nobody holds two seats at once, so Call and Back-up are always different people. HARD-5
Σd∈W Σs xd,s,p ≤ cp Weekend days W stay under each person's cap c. CAP-2
xd,call,a + xd,back-up,b ≤ 1 The configured pair a, b is never Call and Back-up on the same day (and the same the other way round). PAIR-2
xd,s,p = 0 for approved time off (p, d) An approved request is a hard rule, not a hope. REQUEST
THE OBJECTIVE minimise wfair Σp |Lp − Tp| + Σr wr yr L is each person's load and T their fair share; y counts each bent preference, like a call the night before a clinic day (PREF-4). Among boards that break no hard rule, the solver looks for the one nearest to everyone's fair share. That's the same share the attendings see in My Stats.

Simplified for the page. Rule ids match the demo rulebook; weights aren't shown.

TRY A TINY ONE

Six attendings, one week, three seats.

Change a rule and the week is solved again, live in your browser. Set the weekend cap to 0 and watch it refuse.

Weekend cap CAP-2
Mon Tue Wed Thu Fri Sat Sun Call BM AR BM AR FH EV BM Back-up FH EV FH EV CL DK CL ICU CL DK CL DK AR FH AR
Solved. 21 seats filled, no hard rule broken. Every load is 3 or 4: as even as 21 shifts across 6 people can be.
21 placements tried · 0 undone
SHIFTS PER PERSON
AR4
BM3
CL4
DK3
EV3
FH4

Demo initials, toy rules. This toy searches seat by seat and backs out of dead ends. CP-SAT goes much further: it propagates constraints, learns from each conflict, and can prove a board is optimal or that none exists.

PYTHON · OR-TOOLSRead the model as code (a simplified sketch)
from ortools.sat.python import cp_model
m = cp_model.CpModel()
x = {(d, s, p): m.new_bool_var(f"x_{d}_{s}_{p}")
     for d in days for s in seats for p in people}
for d in days:
    for s in seats:                                   # HARD-1  every seat filled
        m.add_exactly_one(x[d, s, p] for p in people)
    for p in people:                                  # HARD-5  one seat a day
        m.add_at_most_one(x[d, s, p] for s in seats)
for p in people:                                      # CAP-2   weekend cap
    m.add(sum(x[d, s, p] for d in weekend for s in seats) <= cap[p])
for d in days:                                        # PAIR-2  keep the pair apart
    m.add(x[d, "call", a] + x[d, "backup", b] <= 1)
    m.add(x[d, "call", b] + x[d, "backup", a] <= 1)
for p, d in approved_time_off:                        # requests are hard rules
    m.add(sum(x[d, s, p] for s in seats) == 0)
load = {p: sum(x[d, s, p] for d in days for s in seats) for p in people}
dev = {p: m.new_int_var(0, len(days), f"dev_{p}") for p in people}
for p in people:                                      # distance from fair share
    m.add_abs_equality(dev[p], load[p] - target[p])
m.minimize(W_FAIR * sum(dev.values()) + sum(w * y for w, y in preferences))
status = cp_model.CpSolver().solve(m)                 # OPTIMAL, FEASIBLE or INFEASIBLE

Public tools, private rules.

Most of what makes this work is free, open and well-tested. The custom part is small and specific: this department's rules, roster and handover, fitted onto public building blocks.

  • PUBLIC · SOLVEROR-Tools CP-SATGoogle's open-source (Apache 2.0) constraint solver does the searching. We write the department's rules as its constraints.
  • PUBLIC · STANDARDiCalendar, RFC 5545The open standard behind Subscribe once. One feed works in Apple Calendar and Google Calendar, with no app to install.
  • PUBLIC · DATAIANA time-zone databaseShifts are stored in local time. When the clocks go back on Sun, Nov 1, that night's call still runs 7:00 to 7:00, all 25 hours of it.
  • PUBLIC · RULESHoliday calendarsThanksgiving is the fourth Thursday of November. Holidays are worked out from their rules, so nobody has to type them in each year.
  • PRIVATE · THEIRSThe rulebook, the roster, the handoverWe wrote these with the department. It holds initials and dates only, with no patient information.

Imagine That AI

How we built it

Imagine That AI is two people, Alberto and Emilio, directing a team of AI agents. That means bespoke software at a pace and price that used to need a full dev shop.

We scoped this project around the department itself: we sat with how the schedule is really built, wrote their rules down as code, and designed for the moments that matter, like the handover, the sick call and the holiday. No templates and no off-the-shelf compromises.

The software holds initials and dates only, with no patient information.

Want something like this for your business?

We build software and AI workflows around how your team actually works.

Book a call →
Next: Formic → All work