ShiftAccordSuper Scheduling™

Blog / Rules / Optimization / Fairness

Hard rules, soft rules, and putting a price on every preference

A hard rule can’t be broken. A soft rule can, at a price. Getting the split right and the prices honest is most of what makes a physician schedule defensible, and both can be done with a simple test.

Colleagues seated around an office table with notebooks in window light

Every rule in a physician schedule is one of two kinds. A hard rule can never be broken, and any schedule that breaks one is invalid. A soft rule can be broken at a price, and the price is its penalty weight. Getting your scheduling rules and penalty weights right, meaning the sort into two piles and honest prices on the soft pile, is most of the work of making a schedule you can defend.

Why everything can’t be a hard rule

It’s tempting to make every rule hard. Each one sounds reasonable alone: grant all day-off requests, never exceed anyone’s night target, no backward rotation, no working more than two weekends in a row.

Put together, they contradict each other. Take a week when five of 14 physicians have asked for the same Saturday off and the site needs five shifts covered that day. Nine people are left for five slots, which sounds comfortable. Then you find that three of the nine have already reached their weekend count for the quarter, and two more would be working a third weekend in a row. Four people remain for five shifts, and no arrangement satisfies every rule. A solver given all of them as hard rules returns nothing. A person building by hand breaks one quietly and hopes nobody notices which.

Soft rules exist so that the choice of which rule to break is made in advance, by the group, in numbers.

A test for what belongs on the hard side

Ask one question of each rule: if the only way to cover the shift were to break this rule, would we break it, or would we find another doctor?

If you’d find another doctor, bring in a per-diem or have the chair work the shift, it’s a hard rule. For most groups that list is short:

  • Every required shift is filled.
  • Nobody is in two places at once.
  • Nobody works a site or shift type they aren’t credentialed or contracted for.
  • Contract maximums hold, such as a cap on nights.
  • Approved leave is respected.
  • The minimum rest interval is met.

Everything else is a preference, however strongly felt. Day-off requests, night and weekend targets, forward rotation, pairings and limits on consecutive weekends all belong on the soft side with weights.

One caution. Each hard rule you add shrinks the set of valid schedules, and enough of them shrink it to zero. When a build comes back with no solution, the usual culprits are approved leave stacked on the same days, or contract maximums that add up to fewer shifts than there are slots.

Blank sticky notes arranged in two uneven columns on an office window with a hand adding one

A weight is a relative price

Penalty weights don’t mean anything alone. A missed day-off request costing 10 points tells you nothing until you know what a quick turnaround costs. What matters is the ratio between them.

Suppose a group sets these weights. The numbers are illustrative. A missed day-off request costs 10. A backward rotation step costs 8. A split pairing costs 5. An isolated night costs 12. Each night away from a physician’s target costs 15, each weekend over target costs 20, and a turnaround shorter than 12 hours costs 25.

Read as prices, this says the group would deny two day-off requests before it would schedule one short turnaround, and would accept three split pairings before putting someone a night over target.

Now compare two drafts of the same week. Draft A misses two day-off requests and puts one physician a weekend over target: 10 plus 10 plus 20 makes 40. Draft B has one short turnaround and one backward step: 25 plus 8 makes 33. The weights choose B.

If your instinct says A is obviously the better week, your instinct is telling you the turnaround is underpriced. That reaction is the most useful calibration signal you’ll get.

Setting the weights with trade questions

Nobody can pick these numbers in the abstract. Schedulers and chairs are good at answering concrete trades, though, and a handful of those pins the weights down.

  1. Pick one familiar rule as the anchor and give it a round number. A missed day-off request at 10 works well, since everyone has a feel for what one costs.
  2. For each other rule, ask how many of the anchor you’d give up to avoid one violation. “Would we deny two day-off requests to remove one sub-12-hour turnaround?” If yes, the turnaround is worth more than 20. “Would we deny three?” If no, it’s worth less than 30. Call it 25.
  3. Build a draft with those weights and read the result as a physician would. Find the thing you’d complain about if it were your row.
  4. Raise that rule’s weight, rebuild, and look again. Two or three rounds usually settles it.
  5. Freeze the weights for the quarter.

The last step matters more than it looks. A score only means something relative to the weights that produced it, so two drafts built under different weights can’t be compared, and neither can a swap priced under a rulebook that changed mid-quarter. Write the weights down, date them, and change them between quarters.

How requests themselves should be ranked and limited is a policy matter, covered in a request policy that survives a full quarter.

Two refinements

Keep penalties from piling up on one person

Flat weights have a blind spot. A schedule that misses one request each for six physicians scores the same as one that misses six requests for a single physician. The total is identical and the second schedule is plainly worse.

There are two fixes, and they work together. First, make repeated violations for the same person cost more: 10 for the first missed request, 20 for the second, 40 for the third. The cheapest way to absorb six misses is then to spread them. Second, always read the score per person as well as per rule, which is the subject of how to read a schedule score.

Per-person overrides belong here too. If Dr. S.D. has told you weekends matter far more to them than nights, their weekend weight can go up and their night weight down, and the score will reflect what that physician would say about the schedule.

A physician in scrubs sitting in a staff room chair holding a printed sheet at arm’s length

Very large weights, and when to use them

A soft rule weighted at 1,000 behaves almost like a hard rule. Nothing ordinary will outbid it. The difference shows up only when the rule truly can’t be satisfied: a hard rule gives you no schedule, while the heavy soft rule gives you a schedule with one expensive, clearly visible violation.

That’s often the more useful result. You see exactly which shift caused the problem and can decide what to do about it, such as calling a per-diem or asking one physician a direct question. Use heavy weights for rules you’d break only in a real emergency, and keep truly hard status for things that can’t physically or contractually happen.

Avoid the opposite habit of giving every rule the same weight because choosing feels arbitrary. Equal weights are a choice too. They say a split pairing is exactly as bad as a short turnaround, and nobody in your group believes that.

What scheduling rules and penalty weights give you

A sorted rulebook with frozen weights is a written statement of the group’s priorities. It turns “the schedule is unfair” into a discussion about a specific number, which is a discussion that can end. It also gives a solver something exact to minimize, and schedule optimization explained picks up from there.

This is the structure ShiftAccord’s rulebook uses: each rule is hard or soft, and each soft rule carries its own weight at the group level or per person. The same sorting works on paper. Start with the hard-rule test this week and see how short your list turns out to be.

Keep reading

Related posts