A comprehensive healthcare management system that leverages AI to streamline hospital operations, enhance patient care, and improve medical safety monitoring.
- Secure authentication system
- Role-based access control (doctors, patients)
- User profile management
Secure login interface for user authentication
- Patient registration and profile management
- Medical history tracking
- Patient appointment history
Patient management interface showing registered patients and their details
- Schedule management for doctors
- Patient appointment booking
- Today's appointment view
- Appointment modification and cancellation
Appointment scheduling interface with upcoming appointments and booking options
- Comprehensive medication database
- Prescription management
- Medication tracking
Medication management interface showing available medicines and prescriptions
- Real-time ADR reporting system
- Historical ADR data tracking
- Recent ADR reports monitoring
Doctor dashboard showing ADR monitoring and analytics
- Secure doctor-patient communication
- Message history tracking
- Patient-specific chat threads
- Node.js with Express
- TypeScript
- MongoDB with Mongoose
- Express Session with MongoDB Store
- React
- Vite
- TailwindCSS
- TypeScript
- ESLint
- Vitest for testing
- PostCSS
- Node.js (Latest LTS version)
- MongoDB
- npm or yarn
- Clone the repository
git clone [repository-url]
cd smart_meds- Install dependencies
npm install- Set up environment variables
Create a
.envfile in the root directory with the following variables:
MONGODB_URI=your_mongodb_connection_string
SESSION_SECRET=your_session_secret- Start the development server
npm run dev├── client/ # Frontend React application
│ ├── src/ # Source files
│ └── index.html # Entry HTML file
├── server/ # Backend Express application
│ ├── models/ # MongoDB models
│ ├── routes/ # API routes
│ └── storage.ts # Data storage layer
└── shared/ # Shared TypeScript interfaces
└── schema.ts # Data schemas
The API provides endpoints for:
- User authentication and management
- Patient data management
- Appointment scheduling
- Medication and prescription management
- ADR reporting
- Chat functionality
Detailed API documentation is available in the server routes.
- Session-based authentication
- Secure password handling
- MongoDB session store
- Environment variable protection