Inspiration

Small clinics often manage a busy waiting room with verbal updates and repeated queue checking. Patients want to know where they are without downloading another app, while doctors need a calm way to operate the day's queue.

What it does

yQueue is a virtual queue assistant for solo doctors and small clinics. A patient scans the clinic QR code, Telegram opens with the correct clinic recognised automatically, and the patient joins after a short privacy notice and explicit confirmation.

The doctor dashboard opens, pauses, or closes daily registrations; shows the current patient and waiting queue; calls the next patient; starts consultation; and completes consultation. The same queue engine powers the dashboard and Telegram, so queue numbers, people ahead, status, and estimated waits remain consistent.

Telegram patients can check their status, cancel an eligible ticket, and receive relevant asynchronous queue messages: position updates, near-turn reminders, next-in-line reminders, Called, serving, completion, pause, resume, and closure updates. Delivery is best effort and waiting times are estimates.

How we built it

The application is built with Python, FastAPI, SQLAlchemy 2.x, SQLite, Alembic, Pydantic, Jinja2, lightweight JavaScript, and python-telegram-bot. A database-backed notification outbox keeps queue actions responsive and prevents a message-delivery problem from losing a committed queue transition. The QR page generates a permanent clinic QR link and a printable poster while keeping patient entry inside the Telegram journey.

The repository includes migrations, fictional demo data, local setup instructions, and an isolated automated test suite covering the queue engine, dashboard, Telegram flow, notification outbox, and QR entry journey.

Codex and GPT-5.6

I used Codex with GPT-5.6 throughout the project: turning the original idea into phased plans, designing the FastAPI architecture and queue service rules, generating and reviewing automated tests, debugging the Telegram and QR workflows, and refining the doctor and patient experience. Codex helped keep the work focused on a reliable Build Week MVP rather than adding unnecessary infrastructure.

Challenges and lessons

The important engineering challenge was making the queue state, Telegram registration, and doctor dashboard agree under real actions. yQueue addresses that by keeping queue rules in one service layer, protecting ticket creation from duplicates, validating status transitions, and queuing notifications only after a successful database transaction.

What is next

The MVP deliberately defers authentication, public deployment, appointment scheduling, medical records, payments, and multi-room routing. Before real production use, doctor authentication, a formal privacy policy, data-retention controls, and local regulatory review are required.

Built With

Share this project:

Updates