83 lines
2.2 KiB
Markdown
83 lines
2.2 KiB
Markdown
# ICU Patient Display Management System
|
|
|
|
A comprehensive hospital ICU patient display and monitoring management system. This platform manages patient assignments to ICU beds and rooms, and communicates updates in real-time to ESP32-powered e-paper / LCD bedside displays.
|
|
|
|
---
|
|
|
|
## 🏗 System Architecture
|
|
|
|
The project consists of four main components:
|
|
|
|
- **Backend (`/backend`)**:
|
|
- FastAPI / Python asynchronous RESTful API & WebSocket service.
|
|
- MySQL database with SQLAlchemy / aiomysql ORM.
|
|
- JWT authentication and role-based access control.
|
|
- Device hash verification and real-time state synchronization for ESP32 displays.
|
|
|
|
- **Frontend (`/frontend`)**:
|
|
- Next.js (React / TypeScript) web application.
|
|
- Interactive dashboard for ICU nurses, doctors, and hospital administrators.
|
|
- Bed & room assignment, patient status updates, and display management.
|
|
|
|
- **ESP32 Firmware (`/esp32`)**:
|
|
- Embedded C++ firmware for ESP32 controllers driving bedside displays.
|
|
- Real-time display updates via HTTP polling or WebSocket triggers.
|
|
|
|
- **Infrastructure (`docker-compose.yml`)**:
|
|
- Containerized deployment for MySQL 8.0, Backend, Frontend, and Adminer.
|
|
|
|
---
|
|
|
|
## 🚀 Quick Start with Docker
|
|
|
|
1. **Clone the repository**:
|
|
```bash
|
|
git clone https://gitea.aiindia.ai/Atharv_1705/ICU_Display_Management.git
|
|
cd ICU_Display_Management
|
|
```
|
|
|
|
2. **Configure environment variables**:
|
|
```bash
|
|
cp .env.example .env
|
|
# Edit .env with your specific credentials and network IPs
|
|
```
|
|
|
|
3. **Start all services**:
|
|
```bash
|
|
docker-compose up -d --build
|
|
```
|
|
|
|
4. **Access the services**:
|
|
- **Frontend UI**: [http://localhost:3000](http://localhost:3000)
|
|
- **Backend API Docs**: [http://localhost:8000/docs](http://localhost:8000/docs)
|
|
- **Adminer (Database GUI)**: [http://localhost:8080](http://localhost:8080)
|
|
|
|
---
|
|
|
|
## 🛠 Local Development Setup
|
|
|
|
### Backend
|
|
```bash
|
|
cd backend
|
|
python -m venv venv
|
|
# On Windows:
|
|
.\venv\Scripts\activate
|
|
# On Linux/macOS:
|
|
source venv/bin/activate
|
|
|
|
pip install -r requirements.txt
|
|
uvicorn app.main:app --reload --port 8000
|
|
```
|
|
|
|
### Frontend
|
|
```bash
|
|
cd frontend
|
|
pnpm install # or npm install
|
|
pnpm dev # or npm run dev
|
|
```
|
|
|
|
---
|
|
|
|
## 📄 License
|
|
Internal project for ICU Patient Display Management.
|