What Are Work Hours?

- Clinic Hours: Define when your clinic is operational
- Provider Hours: Define when individual providers are available (must intersect with clinic hours)
New Feature (2025-11-21): Multiple non-contiguous time periods per day are now supported. You can configure split shifts like 09:00-13:00 + 15:00-19:00 with lunch breaks.
Hierarchy: Clinic Hours → Provider Hours
The system uses an intersection-based hierarchy:Weekday Numbering
The system uses numeric weekday identifiers:| Number | Day |
|---|---|
| 1 | Monday (Lunes) |
| 2 | Tuesday (Martes) |
| 3 | Wednesday (Miércoles) |
| 4 | Thursday (Jueves) |
| 5 | Friday (Viernes) |
| 6 | Saturday (Sábado) |
| 7 | Sunday (Domingo) |
Multiple Periods Per Day
You can configure multiple non-contiguous time periods for the same day: Example: Split ShiftThe system generates slots only within configured periods, not in gaps. This ensures professional scheduling aligned with your actual availability.
Overlap Validation
The system prevents overlapping time periods for the same clinic/provider/weekday:- Overlap Formula:
A_start < B_end AND B_start < A_end - Contiguous Periods: Allowed when
A_end == B_start(e.g., 09:00-13:00 and 13:00-17:00) - Validation: Performed at application level before saving
Quick Start Guides
Configure Clinic Hours
Set up your clinic’s operational hours for each day of the week
Multiple Periods Per Day
Configure split shifts and non-contiguous time periods
Provider Hours
Set individual availability for each provider
Edit & Delete Hours
Modify or remove existing work hour configurations
Best Practices
Start with clinic hours first
Start with clinic hours first
Always configure clinic-level hours before setting provider hours. Provider hours are validated against clinic hours.
Use multiple periods for split shifts
Use multiple periods for split shifts
Instead of one long period with manual blocking, use multiple periods (e.g., 09:00-13:00 + 15:00-19:00) for automatic gap handling.
Review overlap validation errors
Review overlap validation errors
If you get overlap errors, check the formula:
A_start < B_end AND B_start < A_end. Adjust times to create a gap or make periods contiguous.Use closures for one-time changes
Use closures for one-time changes
For holidays or exceptional days, use the Closures feature instead of deleting work hours. Work hours define your regular weekly schedule.
Cache invalidation is automatic
Cache invalidation is automatic
When you create, update, or delete work hours, the system automatically clears availability caches. No manual action needed.
How Work Hours Affect Availability
The availability system follows this logic:- Fetch clinic work hours for the requested weekday
- Fetch provider work hours for the same weekday
- Calculate intersection of clinic and provider hours
- Generate slots within intersected periods (e.g., every 30 minutes)
- Filter conflicts (existing appointments, closures, external calendars)