feat(queue): change consultation queue from stack to FIFO queue
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.
Implemented queue interface Integrated patient token handling logic Added validation for queue entries
Added records directory for tracking patients in the queue Implemented dynamic routing for individual patient record views Structured queue tracking workflow
Added history section to view previously registered patients Improved navigation between registration and queue tracking views
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
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
Integrate with backend queue management API Add consultation status tracking Connect to patient records system Implement authentication protection if required
#219 (closed) /vaishnavi