This project is a backend system designed to streamline the management of patient queues in hospitals. It helps reduce waiting times, improve patient flow, and enhance overall service efficiency.
- Introduction
- Features
- Technologies Used
- Installation
- Configuration
- Usage
- Project Structure
- Contributing
- License
- Acknowledgments
Modern hospitals need efficient systems to manage patient queues and appointments. This backend project provides a robust API for:
- Registering patients into queues.
- Updating queue statuses in real time.
- Integrating with hospital systems for notifications and updates.
By automating the queue management process, the system helps reduce delays and improve the overall patient experience.
- Patient Registration: Quickly add patients to the queue.
- Real-time Updates: Monitor and update queue status dynamically.
- Queue Prioritization: Manage patient priority based on different criteria.
- Authentication & Security: Uses JWT for secure authentication.
- File Uploads: Supports file handling with
express-fileuploadand Cloudinary integration. - Scalability: Built with modular design principles for easy expansion.
- Node.js & Express.js: Primary framework for building RESTful API endpoints.
- MongoDB & Mongoose: Database management for storing patient and queue data.
- JWT (jsonwebtoken): Authentication and authorization.
- Cloudinary: Cloud-based file storage integration.
- bcrypt: Secure password hashing.
- CORS & Cookie-parser: Enables cross-origin requests and cookie handling.
- dotenv: Manages environment variables.
Ensure you have the following installed:
- Node.js (v16+ recommended)
- MongoDB (local or cloud instance)
- Clone the Repository:
git clone https://github.com/boss6825/Queue-management-in-Hospistals.git cd Queue-management-in-Hospistals
npm install
MONGO_URI=your_mongodb_connection_string
JWT_SECRET=your_jwt_secret_key
CLOUDINARY_CLOUD_NAME=your_cloudinary_cloud_name
CLOUDINARY_API_KEY=your_cloudinary_api_key
CLOUDINARY_API_SECRET=your_cloudinary_api_secret
npm start
npm run dev
Queue-management-in-Hospistals/
├── config/ # Configuration files for database and environment variables
├── controllers/ # Request handlers for API endpoints
├── middlewares/ # Custom middleware functions (e.g., authentication, logging)
├── models/ # Data models representing the entities (e.g., Patient, Queue)
├── routes/ # Route definitions for API endpoints
├── utils/ # Utility functions and helpers
├── server.js # Main application file
├── package.json # Project metadata and dependencies
└── .env.example # Example environment file
Contributing
Contributions are welcome! If you have suggestions or improvements:
Open an issue to discuss your ideas.
Fork the repository and submit a pull request.