# appointment-slot-scheduler

Book appointment requests into clinicians' free slots by priority and list what could not be booked

- **Space:** healthcare-admin-public (https://github.com/Tech-Realm/space-healthcare-admin-public/tree/main/appointment-slot-scheduler)
- **Level:** L2 (as the registry reports it)
- **Keys it needs (names only):** none
- **Tools:** python3
- **Routes:** local-python; checks: 1
- **Uses:** new (no recorded use yet)
- **Install:** `logicpacks pack use healthcare-admin-public/appointment-slot-scheduler` or MCP `get_pack healthcare-admin-public/appointment-slot-scheduler`
- **Files:** CHANGELOG.md, code/schedule.py, outcome/EVIDENCE.md, outcome/checks.yaml, outcome/fixtures/availability.csv, outcome/fixtures/requests.csv, outcome/results.json, pack.yaml, spec/SPEC.md, spec/source.md

## Purpose (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

1. Export availability and the request queue (synthetic or from your PM system, kept local).
2. Run `python3 code/schedule.py availability.csv requests.csv --buffer 5`.
3. 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.



---

Canonical URL: https://logicpacks.io/packs/healthcare-admin-public/appointment-slot-scheduler

Developed by TechRealm (techrealm.online), the software team. Operated by Al Jash Trading (Establishment), Abu Dhabi, since 1994, the legal entity that hosts and is responsible for the service. Economic licence CN-1030597, Abu Dhabi Registration Authority. Address: Office 5, Bani Yas West 4, Bani Yas, Abu Dhabi, UAE. Website: https://aljashtrading.com. Contact: hello@logicpacks.io, security@logicpacks.io, WhatsApp +1 713 632 2262 (https://wa.me/17136322262).

Machine-readable index: [/llms.txt](/llms.txt). Plain facts: [/about.md](/about.md). Safety: [/safety.md](/safety.md).
