|
1 | | -# EdCare · Hospital Management System |
| 1 | +# EdCare - Advanced Healthcare Management System |
2 | 2 |
|
3 | | -**EdCare** is a production-grade, full-stack hospital management platform designed to bridge the gap between patients, doctors, and healthcare services. It integrates intelligent appointment scheduling, AI-powered disease diagnostics, a digital pharmacy, and comprehensive medical record management into a single, cohesive ecosystem. |
| 3 | + |
| 4 | + |
| 5 | + |
| 6 | + |
| 7 | + |
| 8 | + |
4 | 9 |
|
5 | | -Built with performance, scalability, and user experience at its core, EdCare leverages modern web technologies to deliver a seamless healthcare experience. |
| 10 | +## Overview |
| 11 | + |
| 12 | +**EdCare** is a state-of-the-art healthcare management platform designed to bridge the gap between patients and medical professionals. Built with performance, security, and user experience in mind, EdCare provides a seamless interface for appointment booking, prescription management, and real-time health monitoring. |
6 | 13 |
|
7 | 14 | --- |
8 | 15 |
|
9 | 16 | ## 🚀 Key Features |
10 | 17 |
|
11 | | -### 🏥 **Role-Based Portals** |
12 | | -- **Patient Portal**: Dashboard for Appointment booking, Medical History, Prescriptions, and Lab Reports. |
13 | | -- **Doctor Portal**: Dashboard for Patient Management, Prescription Writing (Rx), Schedule Management, and Digital Consultations. |
14 | | - |
15 | | -### 🧠 **AI & Machine Learning** |
16 | | -- **Breast Cancer Risk Assessment**: Integrated Machine Learning model (Gradient Boosting Classifier) trained on the WDBC dataset. |
17 | | -- **Real-time Inference**: Python/Flask backend provides instant risk analysis based on 30 clinical features from FNA biopsies. |
18 | | - |
19 | | -### 💊 **Digital Pharmacy** |
20 | | -- **E-Commerce Experience**: Full-featured product catalog with categories (Medicines, Supplements, Devices). |
21 | | -- **Cart Management**: Persistent shopping cart with real-time total calculation. |
22 | | -- **Checkout Flow**: Multi-step checkout process (Shipping -> Payment -> Confirmation). |
| 18 | +### For Patients |
| 19 | +- **Smart Dashboard**: Comprehensive overview of health metrics and upcoming appointments. |
| 20 | +- **Instant Booking**: Real-time appointment scheduling with specialists. |
| 21 | +- **E-Prescriptions**: Access and manage prescriptions digitally. |
| 22 | +- **Secure Records**: Encrypted storage for all medical history and diagnostics. |
23 | 23 |
|
24 | | -### 📅 **Smart Scheduling** |
25 | | -- **Interactive Calendar**: Visual appointment management for doctors. |
26 | | -- **Booking Engine**: Easy slot selection and booking for patients. |
27 | | - |
28 | | -### 🔐 **Security & Infrastructure** |
29 | | -- **Authentication**: Secure role-based auth powered by **Supabase Auth**. |
30 | | -- **Database**: Robust PostgreSQL Relational Database via **Supabase**. |
31 | | -- **Edge Performance**: Optimized for speed with Vite and React Query. |
| 24 | +### For Doctors |
| 25 | +- **Practice Management**: Efficiently handle patient queues and schedules. |
| 26 | +- **Digital Prescribing**: Issue prescriptions instantly with built-in drug interaction checks. |
| 27 | +- **Patient Analytics**: Visual insights into patient health trends. |
| 28 | +- **Consultation Tools**: Integrated tools for better diagnosis and care delivery. |
32 | 29 |
|
33 | 30 | --- |
34 | 31 |
|
35 | 32 | ## 🛠️ Technology Stack |
36 | 33 |
|
37 | | -### **Frontend** |
38 | | -- **Framework**: [React 18](https://react.dev/) |
| 34 | +This project is built using a modern, robust tech stack: |
| 35 | + |
| 36 | +- **Frontend Framework**: [React 19](https://react.dev/) |
39 | 37 | - **Build Tool**: [Vite](https://vitejs.dev/) |
| 38 | +- **Styling**: [TailwindCSS v4](https://tailwindcss.com/) |
40 | 39 | - **Language**: [TypeScript](https://www.typescriptlang.org/) |
41 | | -- **Styling**: [Tailwind CSS v4](https://tailwindcss.com/) |
42 | | -- **State Management**: React Context + [TanStack Query](https://tanstack.com/query/latest) |
43 | | -- **Forms**: [React Hook Form](https://react-hook-form.com/) + [Zod](https://zod.dev/) |
44 | | -- **Icons**: [Lucide React](https://lucide.dev/) |
45 | | -- **Charts**: [Recharts](https://recharts.org/) |
46 | | - |
47 | | -### **Backend (AI Services)** |
48 | | -- **Framework**: [Flask](https://flask.palletsprojects.com/) (Python) |
49 | | -- **ML Library**: [Scikit-learn](https://scikit-learn.org/) |
50 | | -- **CORS**: Flask-CORS for secure cross-origin requests. |
51 | | - |
52 | | -### **Infrastructure** |
53 | | -- **Database**: PostgreSQL (Supabase) |
54 | | -- **Authentication**: Supabase Auth |
55 | | -- **Storage**: Supabase Storage |
| 40 | +- **Backend / Database**: [Supabase](https://supabase.com/) |
| 41 | +- **State Management**: React Context & Hooks |
| 42 | +- **Icons**: Lucide React |
| 43 | +- **Validation**: Zod + React Hook Form |
56 | 44 |
|
57 | 45 | --- |
58 | 46 |
|
59 | 47 | ## 📂 Project Structure |
60 | 48 |
|
61 | | -``` |
62 | | -_EDCARE_/ |
| 49 | +```bash |
| 50 | +_EDCARE_ |
63 | 51 | ├── src/ |
64 | | -│ ├── components/ # Reusable UI components (Buttons, Cards, Sheets) |
65 | | -│ ├── contexts/ # Global state (Auth, Cart) |
66 | | -│ ├── lib/ # Utilities and Supabase client |
67 | | -│ ├── pages/ # Route components |
68 | | -│ │ ├── public/ # Landing, Login, Signup |
69 | | -│ │ ├── patient/ # Patient dashboard pages |
70 | | -│ │ ├── doctor/ # Doctor dashboard pages |
71 | | -│ │ └── pharmacy/ # E-commerce pages |
72 | | -│ ├── types/ # TypeScript definitions |
73 | | -│ ├── App.tsx # Main Router configuration |
74 | | -│ └── main.tsx # Entry point |
75 | | -├── backend/ # Python Flask ML Service |
76 | | -│ └── app.py # AI Inference API |
77 | | -├── sql/ # Database Schema |
78 | | -│ └── schema.sql # Supabase SQL definitions |
79 | | -└── README.md # Documentation |
| 52 | +│ ├── components/ # Reusable UI components (Buttons, Modals, etc.) |
| 53 | +│ ├── contexts/ # Global state management contexts |
| 54 | +│ ├── lib/ # Utility functions and Supabase client |
| 55 | +│ ├── pages/ # Application routes (Doctor, Patient, Public) |
| 56 | +│ ├── types/ # TypeScript definitions |
| 57 | +│ ├── App.tsx # Main application component |
| 58 | +│ └── main.tsx # Entry point |
| 59 | +├── backend/ # Backend logic (Edge Functions) |
| 60 | +├── sql/ # Database schemas and migration scripts |
| 61 | +├── public/ # Static assets |
| 62 | +└── dist/ # Production build output |
80 | 63 | ``` |
81 | 64 |
|
82 | 65 | --- |
83 | 66 |
|
84 | | -## ⚡ Getting Started |
| 67 | +## 🏁 Getting Started |
85 | 68 |
|
86 | 69 | ### Prerequisites |
87 | | -- Node.js (v18+) |
88 | | -- Python (v3.9+) |
| 70 | +- Node.js (v18 or higher) |
89 | 71 | - npm or yarn |
90 | 72 |
|
91 | | -### 1. Setup Frontend |
92 | | -```bash |
93 | | -# Install dependencies |
94 | | -npm install |
95 | | - |
96 | | -# Start Development Server |
97 | | -npm run dev |
98 | | -``` |
99 | | -The application will be available at `http://localhost:5173`. |
| 73 | +### Installation |
100 | 74 |
|
101 | | -### 2. Setup AI Backend |
102 | | -```bash |
103 | | -cd backend |
| 75 | +1. **Clone the repository** |
| 76 | + ```bash |
| 77 | + git clone https://github.com/CypherXXXX/_edcare_.git |
| 78 | + cd _edcare_ |
| 79 | + ``` |
104 | 80 |
|
105 | | -# Create virtual environment (optional but recommended) |
106 | | -python -m venv venv |
107 | | -# Windows |
108 | | -venv\Scripts\activate |
109 | | -# Mac/Linux |
110 | | -source venv/bin/activate |
| 81 | +2. **Install dependencies** |
| 82 | + ```bash |
| 83 | + npm install |
| 84 | + ``` |
111 | 85 |
|
112 | | -# Install dependencies |
113 | | -pip install flask flask-cors scikit-learn numpy |
| 86 | +3. **Environment Setup** |
| 87 | + Create a `.env` file in the root directory and add your Supabase credentials: |
| 88 | + ```env |
| 89 | + VITE_SUPABASE_URL=your_supabase_url |
| 90 | + VITE_SUPABASE_ANON_KEY=your_supabase_anon_key |
| 91 | + ``` |
114 | 92 |
|
115 | | -# Run Flask Server |
116 | | -python app.py |
117 | | -``` |
118 | | -The AI API will run on `http://127.0.0.1:5000`. |
| 93 | +4. **Database Setup** |
| 94 | + Run the SQL scripts located in the `sql/` folder or `supabase_setup.sql` in your Supabase SQL Editor to initialize the database schema. |
119 | 95 |
|
120 | | -### 3. Database Setup (Supabase) |
121 | | -1. Go to your [Supabase Dashboard](https://supabase.com). |
122 | | -2. Open the **SQL Editor**. |
123 | | -3. Copy the contents of `sql/schema.sql`. |
124 | | -4. Run the query to create tables, policies, and triggers. |
| 96 | +5. **Run the application** |
| 97 | + ```bash |
| 98 | + npm run dev |
| 99 | + ``` |
125 | 100 |
|
126 | 101 | --- |
127 | 102 |
|
128 | | -## 🛡️ License |
| 103 | +## 📄 License |
129 | 104 |
|
130 | 105 | This project is licensed under the MIT License. |
131 | 106 |
|
132 | 107 | --- |
133 | 108 |
|
134 | | -© 2026 EdCare. Built for the future of healthcare. |
| 109 | +<p align="center"> |
| 110 | + Built with ❤️ by the EdCare Team |
| 111 | +</p> |
0 commit comments