Features / Roster rules

Roster rules to describe who can work when

Rules, also sometimes called “constraints” are the heartbeat of building rosters. Even if it’s as simple as “someone can’t work two shifts at the same time” to as complex as “John and Mary can’t work at the same time as they have small children”. Our powerful rules system has you covered, both for your own manual rostering, where our rules will alert you if you try to place someone that breaks a rule, or for using with our AI and automatic roster building tools.

HosPortal roster flagging a shift conflict where a user's Day shift starts the day after their Nights shift

What are roster rules?

Roster rules—also called constraints—are automated rules that prevent common scheduling mistakes. Whether you're avoiding double shifts, limiting overtime, or managing team compatibility, our rules engine makes building safe, efficient rosters easy.

Prevent overlaps
Avoid assigning someone to two shifts at once
Limit fatigue
Set caps on weekly hours or weekend duties
Manage conflicts
Keep incompatible roles or users off the same shift

Why this matters: Manual rostering increases risk of error. Rules catch issues before they happen.

Shift conflict rules

Prevent shift overlaps that lead to burnout, errors, and unsafe workloads. Shift Conflict Rules automatically block back-to-back or clashing shifts—ensuring safer, smarter rosters.

Example: If a user finishes a night shift today, they can’t be rostered for a morning duty tomorrow.

No back-to-back shifts
Set cooldown time between shifts
Prevent overlapping assignments
Never double-book a staff member
Custom recovery windows
Define safe time buffers between critical shifts
HosPortal shift conflict rule marking a conflict when a Day shift starts within one day after a Nights shift
HosPortal work rule limiting anaesthetic consultants to one after-hours weekend in every four weeks

Work rules

Work Rules let you control how much your team works across days, weeks, or payroll cycles—helping prevent burnout, ensure fairness, and meet compliance standards.

Example: Ensure no user exceeds 38 hours per week or is rostered more than 2 weekends per month.

Limit weekly hours
Set maximum shift time per user over a cycle
Manage weekend loads
Restrict how many weekends a person can work
Apply by role or team
Customise rules per specialty or position

User conflict rules

User conflict rules affect two users, or roles and how they work together - maybe people don’t work well together, maybe they are both caring for a young family.

Example: Dr. Brown and Dr. Adams are partners with a small child. This rule prevents them from being rostered on the same day.

Block user pairings
Prevent specific users from working the same shift
Control by role or department
E.g., Registrar + Consultant conflicts
Apply to all or specific rosters
Customise where and when the rule applies
HosPortal conflict rule stopping two registrars from working shifts that start on the same day
HosPortal leave conflict rule flagging an Evening shift that starts within one day before a user's leave

Leave conflict rules

While it’s typical not to allow users on leave to do shifts, sometimes it’s more complicated. Leave Conflict Rules ensure staff aren’t booked into critical shifts right before their leave begins.

Example: A user has approved leave starting Saturday. The rule shown prevents them from working the Friday evening shift.

Prevent pre-leave shifts
Block last-minute shifts before staff go on leave
Smart date logic
Use "X days before" or "evening before" conditions
Flexible rules by role or shift type
E.g., avoid complex night duties just before vacation

Frequently asked questions

What kinds of rules can HosPortal enforce?

Hours caps per day, week or payroll period; minimum rest between shifts; forbidden sequences such as a list after a night on call; skill requirements; supervision, meaning who needs a supervisor and who may be one; and pairings of people who cannot work together.

What happens when a rule is broken?

The shift is flagged on the draft roster, in self-roster windows and in the AI roster builder; administrators can override with a recorded reason, which is audit-logged.

Do the rules apply to manual rostering as well as AI builds?

Yes. The same rules alert you when you place a shift by hand, constrain what staff can pick in a self-roster, and bind the AI roster builder. Read more: fatigue and award rules in hospital rosters.

Ready to simplify your healthcare rostering?

Start saving time, improving communication, and optimising your hospital operations today with HosPortal's proven rostering solution.