smaple.tr
Case study

Healthcare Shift Scheduling Software: Lessons From Oplist

Mehmet Kurtipek
January 19, 2026
12 min read
Case study
Healthcare
Shift scheduling
Optimization

Healthcare shift scheduling software takes a ward's staff list, their skills, contracts and leave, plus the rules they work under, and produces a rota that covers every shift without breaking rest limits or loading the same people with all the nights and weekends. The tools worth paying for solve this as an optimization problem instead of handing you a calendar to fill in, and they let a manager review, adjust and approve the result before staff see it. The quickest way to judge one is to give it your hardest ward and last month's real leave data and watch what happens.

Since November 2023 we have been the engineering team for Oplist, a Turkish company whose software builds rotas for hospital departments. Oplist is our client and the product is theirs; we build and maintain it with them.

What a hospital rota has to satisfy

Nurse rostering has been studied in operations research for decades, and the problem definitions used in research competitions make a good checklist. The Second International Nurse Rostering Competition (INRC-II) splits the rules into hard constraints, which a valid rota may never break, and soft constraints, which are allowed to bend but cost penalty points when they do. On a real ward the list looks like this:

  • a minimum number of people on every shift, and for some shifts a particular skill, such as a senior nurse on nights
  • at most one shift per person per day
  • forbidden sequences, the classic one being a night followed by an early shift the next morning
  • rest periods, a cap on consecutive nights and a cap on hours over a period
  • contract differences: full-time, part-time, nights only, no weekends
  • days people asked for off, and an even spread of the shifts nobody wants

Where those rules come from matters. In the EU, the Working Time Directive sets a minimum of 11 consecutive hours of rest in every 24, an uninterrupted 24 hours of rest each week on top of that, and an average of no more than 48 working hours a week including overtime. Night workers' normal hours may not average more than 8 in any 24-hour period. Hospitals are among the services where member states may derogate from some of these, provided staff get equivalent compensatory rest, so the limits on your ward depend on national law and your collective agreement as much as on the directive. Since the Court of Justice's Jaeger judgment (C-151/02, 2003), on-call duty spent at the hospital counts as working time in full, even when the doctor is allowed to rest there.

Oplist works with private hospitals in Türkiye, where the Labour Law caps night work at 7.5 hours but lets health services go beyond that with the worker's written consent, and requires at least 11 hours of uninterrupted rest when someone moves between the day and night rotations. That consent is exactly the kind of fact a roster tool has to store. The same 12-hour night shift is legal for one nurse and not for the colleague who never signed.

So the rules belong in settings the hospital owns and can read. If a vendor's answer to "how do we change the rest rule?" is "open a support ticket", think twice.

Why spreadsheets stop working

For a small clinic with six staff and a fixed rotation, a spreadsheet is fine, and we would tell you to keep it. Things change at ward size. Thirty nurses, three shift types and a 30-day month give 2,700 person-day-shift combinations to decide, and each one interacts with the days before and after it.

People who build rotas by hand tend to place the nights first, then patch the weekends, then fill the holes the patching created. Each fix can break a rest rule two weeks away. Fairness drifts as well, because nobody keeps a running count of who covered the last three public holidays. When a nurse asks why she has four weekends this month, the honest answer is "that's how it worked out", which satisfies nobody.

How an optimization engine builds the rota

A rostering engine turns the rules into a mathematical model and hands it to a solver. Oplist's engine is a set of optimization models for the nurse rostering problem, solved with a MILP (mixed-integer linear programming) solver in Python. There is no machine learning in it. Simplified, such a model has this shape:

x[n, d, s] = 1 if person n works shift s on day d, otherwise 0

Hard constraints
  every day d, shift s:      sum over n of x[n, d, s]          >= required[d, s]
  every person n, day d:     sum over s of x[n, d, s]          <= 1
  no early after a night:    x[n, d, night] + x[n, d+1, early] <= 1
  leave:                     x[n, d, s] = 0 when n is on leave on day d

Soft constraints (penalty per violation)
  day-off request not met               10
  only one day of a weekend worked      30
  weekends above the contract maximum   30

Objective: minimise the total penalty

The penalty weights above are the ones INRC-II uses. In a real hospital the hospital chooses them.

The solver searches for the assignment with the lowest total penalty that breaks no hard constraint. Two practical things follow from working this way. Because every rule is written down, you can find out which rules conflict when no valid rota exists, for example a night-cover target that the ward can't meet once leave is taken out. And the weights are policy decisions. Whether an unmet day-off request should cost more than an uneven weekend is for the ward manager to decide, and good software puts those settings in front of the people who own them.

If you want to see a working model, Google's OR-Tools employee scheduling guide has a runnable nurse example. It uses a constraint-programming solver instead of MILP, but the model is built the same way.

Fair means counted, and counted over time

Fairness stays vague until you write it down. In practice it means counting, per person, the shifts people dislike (nights, weekends, public holidays) and keeping those counts close together. The objective can minimise the highest count or the gap between highest and lowest, and part-time staff should have targets in proportion to their contract.

The counts have to survive the end of the month. INRC-II plans one week at a time and passes a history forward: each nurse's last shift, how many days in a row they have worked, and their total shifts and weekends so far. A monthly rota needs the same memory. Someone who worked nights on the 29th, 30th and 31st can't start the new month on an early shift, and whoever covered New Year's Eve shouldn't be first in line for the next holiday.

We would also show staff their own counts. A line like "you have worked 4 weekends this quarter; the ward average is 4" is far easier to discuss than the algorithm behind it.

Leave types and messy HR data

A rota tool can't work from "available" and "unavailable". Oplist has live API integrations with the HR and payroll systems of private hospitals in Türkiye, with more on the way, and through them it receives leave reasons and types: sick leave and other reasons, hourly leave, and block leave such as training. The scheduling rules depend on the type. An hourly leave takes someone out of part of a shift; a training block takes them out for days and may still count toward their hours.

The source data also needed work. The hospitals' systems can contain duplicate staff records, and some leave types take precedence over others when two overlap. We handle both inside Oplist, deduplicating staff and applying a precedence order to leave, instead of trusting each record as it arrives. Time and data integrity were the hardest part of migrating Oplist, and this is what the data half of that looked like.

Time causes its own bugs in any rostering system. A night shift starts on one date and ends on the next, and payroll has to decide which day those hours belong to. Türkiye keeps the same time all year, but where clocks change, one night a year is an hour longer and one is an hour shorter. EU summer time ends on the last Sunday of October (25 October in 2026), so a 20:00 to 08:00 night shift from that Saturday into Sunday lasts 13 hours. Store each shift's start and end as exact instants with the ward's time zone, and calculate hours from those, never from the times printed on the rota.

Then there is privacy. The rota needs to know that someone is on sick leave and for how long; it has no use for the diagnosis. The UK's data protection regulator, the ICO, notes that a simple absence record without details of a worker's health condition is not likely to be special category data, while a record of the illness is. Build the integration so the medical detail stays in HR, and show the leave type only to the people who plan the rota. We wrote more about the integration side in hospital information system integration.

Approval, changes and payroll

A generated rota is a draft. The manager reviews it, moves a few shifts and approves it, and only then do staff see it. Around Oplist's solver we built organizations and roles, approval workflows and email notifications, plus a Google Sheets add-on.

Most of the real work comes after approval: swaps, sick calls, someone leaving mid-month. Two rules help. Every manual change should pass through the same checks as the generated rota, with a clear warning when a swap breaks a rest rule. And every change should be recorded with who made it and when, because payroll and any later dispute depend on the final version of the rota.

Payroll needs what was actually worked, including nights, on-call hours and public holidays, in a format its system accepts. Ask to see that export early in any evaluation.

Questions to ask before you buy

  1. Will you build a rota for our hardest ward during the demo, from our real staff list and last month's leave?
  2. How do we enter and change rules and penalty weights, and who in our hospital can do it?
  3. What happens when no valid rota exists? Does the tool say which rule to relax?
  4. Are manual edits and swaps checked against the same rules as generated rotas?
  5. How do staff, contracts and leave types arrive from HR, and what goes to payroll?
  6. How are night, weekend and holiday counts carried from one period to the next?
  7. Where is the data hosted, and does any health information reach the tool?

If the answers to 3 and 5 are vague, expect someone to keep a spreadsheet next to the product.

What we did on Oplist

We took over Oplist's codebase in November 2023. It had an early Flutter Web front end, a Flask backend and the MILP solver. We moved the product to a React front end and a Node.js/Express API on PostgreSQL, documented with Swagger, and we work alongside Oplist's own team on the Python solver service. It runs on AWS (ECS Fargate, Lambda and CloudWatch). Oplist is now used at 5 to 10 locations and has generated schedules for more than 2,000 people, and in 2026 we are still shipping releases of both the web app and the solver with them.

Two things have worked well: the solver runs as its own Python service, apart from the Node.js API, and we treat hospital data as untrusted input. Staff deduplication and leave precedence sit in our code, because the source systems won't do that work for us. If you are planning a similar rebuild, our notes on legacy system modernization cover the general approach.

Build or buy

If you run a hospital, buy. Rostering is a mature product category, and the real cost of a home-grown engine is the years of maintenance after version one. Building makes sense when scheduling is the thing you sell, as it is for Oplist, or when your rules are unusual enough that no product on the market models them. Our build versus buy guide walks through that decision in general terms.

If you are building scheduling or workforce software yourself and want a team that has done it, you can reach us here.

Frequently asked questions

Does healthcare scheduling software use AI?

Some products describe parts of what they do as AI. The rota itself is usually built by an optimization solver, a technique from operations research that is much older than the current AI wave. Oplist uses optimization models and a MILP solver, with no machine learning. Treat the label as a prompt for questions: if it is an optimization model, ask what it optimizes and how you change that; if it is a learned model, ask how it guarantees the hard rules.

Can it handle 24-hour on-call shifts?

A good tool should. Check how the hours are split across the two dates for payroll, and remember that in the EU on-call time spent at the hospital counts as working time for the rest and weekly-hours limits.

Is a spreadsheet enough for a small clinic?

Often it is. With a handful of staff and a fixed pattern, a shared spreadsheet plus a clear swap rule is cheaper and simpler. Move to software when building the rota takes the manager days every month, or when staff start disputing who gets the nights.

Related Articles

August 11, 2026

MLOps Guide: What to Set Up First, and What Can Wait

MLOps gets a model into production and keeps it useful there. Here is the order we'd set it up in, with current MLflow and DVC examples, and what changes for LLM features.

Read More: MLOps Guide: What to Set Up First, and What Can Wait
August 9, 2026

Computer Vision Applications: Where It Works and Where It Struggles

Where computer vision works today, from inspection lines to invoices and medical scans, what makes some applications hard, and when a general vision model saves you training your own.

Read More: Computer Vision Applications: Where It Works and Where It Struggles
August 4, 2026

AI Agent Development: When You Need One and How to Build It

An AI agent is a language model working in a loop with tools. When you need one, the loop in Python, choosing a framework, keeping it safe, and what each run costs.

Read More: AI Agent Development: When You Need One and How to Build It