Skip to content

feat(queue): change consultation queue from stack to FIFO queue

Vaishnavi requested to merge feat-fifo into develop

What does this MR do? This Merge Request introduces the Queue module to the project. The feature enables users to:

Register patients and assign token numbers Track patients in the consultation queue Maintain queue history Organize and manage the patient consultation workflow

This serves as the foundation for managing a queue-based consultation system in upcoming backend work.


🚀 Key Changes

1️⃣ Queue Management Module

Implemented queue interface Integrated patient token handling logic Added validation for queue entries


2️⃣ Queue Records Management

Added records directory for tracking patients in the queue Implemented dynamic routing for individual patient record views Structured queue tracking workflow


3️⃣ History Feature

Added history section to view previously registered patients Improved navigation between registration and queue tracking views


4️⃣ Project Structure Enhancements

Organized new folders under src/app

Added necessary components and utilities Ensured consistent routing and modular structure


🧱 Technical Improvements

Followed Next.js App Router structure Maintained clean separation of concerns Structured code for future queue management enhancements Prepared frontend to connect with upcoming backend APIs


🎯 Why is this needed?

This update enables:

A dedicated queue management workflow Frontend readiness for queue-based consultation handling Modular expansion for future system features

It lays the groundwork for:

Queue-based patient tracking Consultation flow management Patient history display Backend communication


🧪 Testing

Verified patient registration and queue flow Confirmed navigation between registration, history, and queue records Ensured no breaking changes to existing modules


🔮 Next Steps

Integrate with backend queue management API Add consultation status tracking Connect to patient records system Implement authentication protection if required

#219 (closed) /vaishnavi

Edited by Vaishnavi

Merge request reports

Loading