Example: clinic-pro
clinic-pro is a reference vertical for clinics: doctors, visit types, and
WhatsApp appointment prebooking. Same ADR-003 surface as
restaurant-pro — the /qefro process
is the application.
widget / WhatsApp / staff UI
→ runtime → clinic-pro /qefro
→ clinic.* → ctx.storage + Customer Hub (patients)
Customer Hub owns patients. Clinic Pro owns doctors and appointments. Slots are derived (working hours − existing appointments).
Collections
| Logical | Purpose |
|---|---|
doctors | Roster + working hours |
appointments | Bookings with frozen status + visit type |
patient_profiles | Optional local notes (not identity source of truth) |
Develop
Canonical package lives in the platform repo:
cd docs/examples/clinic-pro # qefro-plugin-platform
npm install
export QEFRO_SIGNING_SECRET=dev-secret
npm start
Booking bridge: booking/ → https://clinic-pro.portal.qefro.com/booking after deploy.