Inspiration
We all hate waiting in a crowded walk-in clinic for hours. It is very boring, and it is dangerous because you might get sick from other patients. We wanted to make a smart system where patients can wait safely at home or a cafe, and clinic staff can manage the line easily.
What it does
QDoc is a smart waiting line app for clinics. Patients can check how many people are waiting at different clinics and join the shortest line from their phone. When there are only 2 people ahead, the app sends a message to come to the clinic. For the clinic staff, they can easily manage the line with "Start", "Delay", and "Cancel" buttons. The "Delay" feature is very special. It puts late patients into a separate waiting group instead of just deleting them.
How we built it
We built the user interface with React and Next.js to make it fast and easy to use. For the backend, we created a Node.js API and used PostgreSQL to save all patient data safely. We also set up a background worker. This worker makes sure the notification messages are sent to patients reliably and exactly at the right time.
Challenges we ran into
Setting up the background worker for reliable notifications was a big challenge. We had to make sure the system did not miss any messages when it was busy. Also, designing the "Delay" logic was tricky because we had to move late patients out of the main line without losing their database records.
Accomplishments that we're proud of
We are very proud that we built a working MVP (Minimum Viable Product) in a short time. The "Delay" feature works perfectly. We are happy because this feature solves a real problem for clinic staff who deal with late patients every day.
What we learned
We learned that time management and focusing on core features are the most important things in a hackathon. We had many big ideas at first, but we decided to focus only on the basic flow. This helped us finish the project successfully.
What's next for QDoc
We have several exciting plans to make QDoc even better. First, we will add a feature to calculate the real distance and travel time from the patient to the clinic. We also plan to send real SMS and push notifications, allowing patients to choose exactly when they want to get the alert. For a smoother experience, we will upgrade our system to use SSE (Server-Sent Events) for faster real-time updates. Next, we want to build a data dashboard for clinic staff so they can easily check average wait times and daily activities. Finally, our biggest goal is to connect QDoc with real hospital systems like EMR and EHR.
Built With
- next.js
- node.jsapi
- notification
- postgresql
- react
Log in or sign up for Devpost to join the conversation.