ENGINE • TIMEZONES • CONFLICT‑FREE

Smart availability engine

Qlynic turns scheduling rules into patient‑ready time slots. It merges shifts, subtracts blackouts, removes bookings, then steps by duration + gap—all displayed in the clinic timezone.

Correctness
Zero overlap slots (server‑validated)
Timezones
Store UTC, display clinic time
Speed
Deterministic and fast

The rule stack (in order)

The engine behaves like a clean pipeline: start with working time, subtract exceptions, then split into bookable slots.

1) Shifts define the day
Weekly working windows per provider form the base availability.
09:00–12:00 13:00–17:00
2) Blackouts subtract time
Vacation days, half days, or slot‑level exceptions carve out time instantly.
10:00–11:00 14:00–15:00
3) Bookings remove overlaps
Existing appointments are removed so patients never see conflict slots.
4) Duration + gap stepping
Slots are stepped across free ranges: duration, plus a configurable buffer gap.
5) TZ-safe labels
Store in UTC, convert for display and reminders using the clinic timezone.
6) AI scope (optional)
Provider scope text helps match visit reasons—without weakening booking rules.

Try the engine logic

Toggle shifts and blackouts, then compute free ranges and slots. This mirrors the same union/subtract behavior used by admin timelines and patient booking.

Live preview (09:00 → 17:00)
Shift Blackout Free Slots
Free ranges
0
Slots generated
0
Timezone
Clinic time

Why clinics trust the engine

Built for correctness first—then speed and UX polish.

Conflict‑safe
Slots never overlap shifts/blackouts/bookings. Server validation double‑checks.
Fast and deterministic
Predictable calculations that scale with busy calendars.
Reminder‑ready
Correct time conversions keep reminders and reschedules on schedule.
Patient‑friendly
Patients see only truly available times—clean, simple, and trustworthy.

Use Smart Availability in your clinic

Start with one provider, define shifts, and watch the booking page stay conflict‑free.