A web-based system for hospitals to manage patient queues, drug inventory, and broadcast emergency alerts in real-time.
- Centralized Patient Token Queue: Generate, view, and manage patient tokens per department. Real-time queue status for patients and hospital staff.
- Drug Inventory Management: Track stock, update quantities, and receive low-stock alerts for hospital pharmacy drugs via MongoDB backend.
- Emergency Alerts: Broadcast Code Red and other alerts to display screens and connected clients instantly.
- Smart Display Dashboard: Web frontend (HTML/JS) for real-time display of patient queues, inventory, and emergency alerts. Includes sound notification for critical alerts.
- Data Import Utilities: Scripts to import CSV data for tokens, inventory, departments, and emergency alerts into MongoDB.
- RESTful API Endpoints: For tokens, inventory, alerts, and broadcasting, built on Flask.
- Background Scheduler: Automatic low-stock checks and alert broadcasting.
- WebSocket (Socket.IO): For live updates and event-driven alerts.
- Backend: Python (Flask, Flask-SocketIO, APScheduler, pymongo, pandas)
- Frontend: HTML, JavaScript, Chart.js
- Database: MongoDB
- Environment Management: python-dotenv
- CSV Integration: pandas, csv
git clone https://github.com/msranjana/CP-RMS.git
cd CP-RMS
pip install -r requirements.txt
Create a .env
file with your MongoDB details:
MONGO_URI=mongodb://localhost:27017
python app.py
Open http://localhost:5000/display in your browser.
app.py
: Main Flask application, API endpoints, scheduling, and SocketIO setup.templates/display.html
: Real-time hospital dashboard UI.requirements.txt
: Python dependencies.
This project is licensed under the MIT License. See LICENSE.
Developed by Ranjana, 2025.