ShiftPilotDocs

Rules

Rules are plain sentences with values you can edit. Hard rules are never broken; soft rules are preferences the solver trades off.

What a rule looks like

A rule is a sentence, for example:

  • "No more than 2 consecutive night shifts."
  • "Only licensed physicians at a given site."

The numbers in a rule are values you can edit in place. Changing a 2 to a 3 changes the rule; there is nothing else to configure.

A list of scheduling rules marked hard or soft
Rules as sentences, each marked hard or soft. Illustration with sample data.

Hard and soft

KindWhat the solver does with it
HardNever breaks it. If the month cannot be built without breaking it, the solver stops and names the rule.
SoftFollows it where it can. When two preferences pull against each other it trades one off, and shows you which.

The Rules page

In the radiology edition, Rules is one list of every rule, whatever it applies to:

  • Global rules apply to everyone.
  • Per person rules apply to one member.
  • Per site rules apply to one site.

Filter the list by scope, edit a number in the line, and use Modify or Delete on any rule. Each line carries its Hard or Soft label.

The Users and Sites pages link here with the person or site already selected, so a person's rules are always the same lines you see in the full list.

A rule the settings cannot express

When you ask Avery for a rule that the scheduler's settings cannot express, Avery offers to send it to the ShiftPilot team. The request then shows on the Rules page under Requested rules, marked Sent to developers.

When the team has built the rule and put it in force for your group, the request leaves that list by itself, and your Briefing and change digest email says the rule is in force, with its wording and who asked for it. You do not need to send the rule again.

Rules in ShiftPilot Go

In ShiftPilot Go you add or change a rule by telling Avery in plain words on the Rules page. Avery answers with a card that says what the rule will do: its type, who it covers, its numbers, and whether it always applies or only when possible.

  • Confirm saves the rule. Cancel drops it.
  • If you type a correction instead of pressing either, the card is marked not confirmed, nothing is saved, and Avery carries on from your new message.

Each rule in the list starts with its on/off switch. A rule that is switched off stays in the list, dimmed as a whole, and is not enforced until you switch it back on.

Days off between blocks of work

A rest rule counts calendar days unless you say business days.

You sayWhat counts as a day off
"Two days off between blocks of working days"Every calendar day.
"Two business days off between blocks of working days"Monday to Friday only. Saturdays, Sundays and your group's holidays are not counted.

With business days, a block that ends on a Friday is followed by Monday and Tuesday off, so the next block starts on Wednesday at the earliest. The schedule generator, the check when a draft is saved, swap checks and the rule's statistics all count the same way.

Exceptions to a rule

A rule can leave one member out without being rewritten. Tell Avery, for example "make Dana Brooks an exception to R7". When a new rule clashes with an existing one for a member, Avery asks whether that member should be an exception, and a yes makes it one. Either way you confirm a card that names the rule and the member first.

  • The rule's row on the Rules page then reads Except followed by the members it leaves out. The x beside a name ends that exception, after an "are you sure".
  • The schedule generator, the check when a draft is saved, swap checks and the rule's statistics all leave the rule out for those members, and only for them.
  • The rule's own wording, strength and switch do not change.

Only a rule about one member at a time can have exceptions: days in a row and blocks, days off, limits per week or month, blackouts, and rules Avery wrote as custom logic. A rule about the group as a whole (who works together, how many people a shift needs, sharing days or holidays evenly) cannot, and Avery says so.

A rule Avery cannot build yet

When a rule cannot be said in any of the rule types, Avery offers to send it to the ShiftPilot team. The request then sits in your Rules list, dimmed and marked Sent to developers. It is not enforced while it waits.

When the team has finished it, ShiftPilot Go adds the rule to your list for you:

  • The request's line becomes the rule itself. It keeps its R number and is switched on.
  • You do not need to ask Avery again.
  • Your Admin change digest email lists it under Rules, with the rule's wording, so every admin who gets the digest sees that a new rule is now enforced.

Read the rule's line when it arrives. If it is not what you meant, switch it off or tell Avery what to change.

What rules can express

The rules groups rely on most:

  • licensing and credentials per site
  • coverage minimums, including holidays
  • rest between shifts, and no day shift after a night
  • days off between blocks of work, in calendar days or business days (ShiftPilot Go)
  • limits on consecutive shifts
  • fairness across weekends and nights
  • opener and closer pairs for split shifts
  • people who must never be at two given sites on the same day
  • targets for each person's share of the work

Type a word or two: availability, OneDrive, swap.