Packs / healthcare-admin-public
appointment-slot-scheduler
Book appointment requests into clinicians' free slots by priority and list what could not be booked
Install
logicpacks pack use healthcare-admin-public/appointment-slot-schedulerget_pack healthcare-admin-public/appointment-slot-schedulerThe second line is the MCP tool call for the LogicPacks connector (Claude Code, Codex, Claude.ai and others). The first run of a pack someone else wrote asks for your yes.
Keys it needs (names only)
None.
Playbooks included
- Spec:
spec/SPEC.md(goal, steps, edge cases, don’ts) - Routes:
local-python - Checks: 1 in
outcome/checks.yaml - Code:
schedule.py - Tools: python3
Usage, last 8 weeks
New: no recorded use yet.
Purpose (from spec/SPEC.md)
Goal
A schedule CSV (request, clinician, start, end) that fits requests into availability windows (urgent first, then by request time), with buffer minutes, plus an unbooked list.
Verified by: Synthetic fixture: urgent request lands first, a 60-min request that fits no window is reported unbooked.
Steps
- Export availability and the request queue (synthetic or from your PM system, kept local).
- Run
python3 code/schedule.py availability.csv requests.csv --buffer 5. - Confirm bookings in the practice-management system; contact unbooked patients.
Edge cases
- Requests tied to a clinician are only placed with that clinician.
- Windows shorter than the visit + buffer are skipped.
Don'ts
- Never put real patient data in fixtures, prompts, logs or git; fixtures are synthetic.
- Don't send confirmations automatically from this output; the PM system is the source of truth.