EquiHealth is a comprehensive healthcare platform that combines modern web technologies with machine learning to predict and manage diseases. The system serves different user roles including patients, doctors, and administrators, providing tailored experiences for each.
| Category | Feature | Description |
|---|---|---|
| Frontend | React + TypeScript | Modern, type-safe UI development |
| Vite | Fast development and build tooling | |
| Tailwind CSS | Utility-first CSS framework | |
| React Router | Client-side routing | |
| Context API | State management | |
| Backend | Hono.js | Fast, lightweight web framework |
| Prisma ORM | Type-safe database operations | |
| JWT Auth | Secure authentication | |
| REST API | Standard API architecture | |
| ML Module | Python | Core ML implementation |
| Jupyter | Model development environment | |
| Disease Prediction | ML-based symptom analysis |
-
User Authentication and Role Management
- Secure login and registration
- Role-based access control
- JWT-based session management
-
Disease Prediction
- ML-based symptom analysis
- Real-time predictions
- Historical prediction tracking
-
Patient Dashboard
- Health information tracking
- Appointment management
- Doctor communication
- Prediction history
-
Doctor Dashboard
- Patient management
- Case review system
- Appointment scheduling
- Medical advice provision
-
Admin Dashboard
- User management
- System monitoring
- Content management
- Analytics dashboard
EquiHealth/
├── frontend/ # React + TypeScript frontend
│ ├── src/
│ │ ├── components/ # Reusable UI components
│ │ ├── pages/ # Page components
│ │ ├── context/ # React context providers
│ │ ├── hooks/ # Custom React hooks
│ │ ├── utils/ # Utility functions
│ │ └── types/ # TypeScript type definitions
│ ├── public/ # Static assets
│ └── tests/ # Frontend tests
│
├── backend/ # Hono.js backend
│ ├── src/
│ │ ├── routes/ # API route handlers
│ │ ├── middleware/ # Custom middleware
│ │ ├── utils/ # Utility functions
│ │ └── types/ # TypeScript type definitions
│ ├── prisma/ # Database schema and migrations
│ └── tests/ # Backend tests
│
└── Prediction/ # ML module
├── models/ # Trained ML models
├── notebooks/ # Jupyter notebooks
└── scripts/ # Python scripts
Frontend Files
-
src/components/- Reusable UI componentsLayout.tsx- Main application layoutHeader.tsx- Navigation headerFooter.tsx- Page footerdashboard/- Dashboard-specific componentsauth/- Authentication components
-
src/pages/- Page componentsLanding.tsx- HomepageDashboard.tsx- User dashboardDoctorDashboard.tsx- Doctor interfaceAdminDashboard.tsx- Admin interface
-
src/context/- React context providersAuthContext.tsx- Authentication stateThemeContext.tsx- UI theme management
Backend Files
-
src/routes/- API endpointsuser.ts- User-related endpointsdoctor.ts- Doctor-related endpointsadmin.ts- Admin-related endpoints
-
prisma/- Databaseschema.prisma- Database schemamigrations/- Database migrations
ML Module Files
DiseasePrediction/- ML implementationapp.py- Flask API for predictionsmodel.py- ML model implementationutils.py- Helper functions
- Node.js (v16+)
- npm or yarn
- Python 3.8+
- PostgreSQL
cd frontend
npm install
npm run devcd backend
npm install
npm run devcd Prediction
pip install -r requirements.txt
python app.pyPOST /api/v1/auth/register- User registrationPOST /api/v1/auth/login- User loginPOST /api/v1/auth/logout- User logout
GET /api/v1/user/profile- Get user profilePUT /api/v1/user/profile- Update user profileGET /api/v1/user/appointments- Get user appointments
GET /api/v1/doctor/patients- Get doctor's patientsPOST /api/v1/doctor/appointments- Create appointmentPUT /api/v1/doctor/appointments/:id- Update appointment
GET /api/v1/admin/users- Get all usersPUT /api/v1/admin/users/:id- Update userDELETE /api/v1/admin/users/:id- Delete user
This project is licensed under the MIT License - see the LICENSE file for details.
- Email: equihealthh@gmail.com





