🚀 PharmaGuard is an intelligent healthcare platform that analyzes medical reports, detects health risks, and ensures safe medication usage using AI.
It transforms complex medical data into simple, actionable insights, enabling smarter and safer healthcare decisions.
-
Upload reports (PDF, Image, TXT)
-
Extracts key health parameters like:
- Glucose
- Hemoglobin
- Cholesterol
- WBC, Platelets, etc.
-
Detects:
- High / Low / Normal values
-
Provides:
- Clear explanations
- Health risk indicators
-
Validates medicines using FDA APIs
-
Detects harmful combinations
-
Displays:
- Severity (Low / Moderate / High)
- Warnings & advice
-
AI-generated suggestions based on report data:
- Foods to eat 🍎
- Foods to avoid 🚫
- Lifestyle tips
⚠️
-
Visual representation of health:
- Health score
- Charts (Glucose, Hb, Cholesterol)
- Alerts system
-
Tracks trends across reports
- Ask health-related questions
- Uses report context
- Provides short, accurate responses
-
Combines:
- Rule-based analysis
- LLM (Groq / LLaMA)
-
Ready for ML integration
| Layer | Technology |
|---|---|
| 💻 Frontend | HTML, CSS, JavaScript |
| ⚙️ Backend | Node.js, Express |
| 🧠 AI/ML | Python (NLP, rule-based) |
| 📄 Processing | pdfplumber, PyMuPDF, Tesseract OCR |
| 🗄️ Database | Firebase (Firestore) |
| 🌐 APIs | OpenFDA, Groq API |
pharmaguard/
├── frontend/ # UI (HTML, CSS, JS)
├── backend/ # Node.js server
├── ai-model/ # Python processing
├── dashboard.html # Dashboard UI
├── index.html # Main app
├── script.js # Frontend logic
└── README.md
git clone https://github.com/your-username/pharmaguard.git
cd pharmaguard
cd backend
npm install
npm install express multer cors axios dotenv
Make sure Python 3.8+ is installed
Install dependencies:
pip install pdfplumber pymupdf pytesseract pillow
node server.js
Server runs on:
http://localhost:5000
Open:
frontend/index.html
OR use Live Server (recommended)
- Go to Firebase Console
- Create project
- Enable Firestore Database
- Copy config into your code:
const firebaseConfig = {
apiKey: "YOUR_API_KEY",
authDomain: "YOUR_PROJECT.firebaseapp.com",
projectId: "YOUR_PROJECT_ID"
};1️⃣ Upload medical report 2️⃣ Python extracts health values 3️⃣ Node.js processes data 4️⃣ AI analyzes conditions 5️⃣ Medicines are validated 6️⃣ Interactions are detected 7️⃣ Diet & precautions generated 8️⃣ Results shown on dashboard
Hemoglobin: 9.5 g/dL
Medicines: Iron + Antacid
❌ Low Hemoglobin (Possible anemia)
⚠️ Drug interaction detected
🥗 Avoid tea/coffee near medication
💡 Suggested precautions provided
- 👤 Patients understanding reports
- 💊 Safe medication usage
⚠️ Early risk detection- 🏥 Healthcare assistance tools
- 📱 Mobile app
- 🤖 AI disease prediction
- 🧑⚕️ Doctor integration
- 🏥 Hospital system integration
- 📊 Advanced analytics dashboard
- Devanupriy Jain
- Sarthak Narang
- Apoorva Sahu
- Arush maheshwari
This project was developed during a hackathon to demonstrate how AI can make healthcare:
✔ More accessible ✔ Safer ✔ Intelligent
If you like this project:
👉 Give it a ⭐ on GitHub
For educational and hackathon purposes.