HealthFirst-AI
Making medical data speak human
The problem HealthFirst-AI solves
🚀 The Problem We Solved
Patients often struggle to understand complex medical jargon in their lab reports, while doctors spend crucial hours manually scanning normal reports just to find anomalies. HealthFirst AI solves both issues by providing simplified AI-driven insights for patients and a smart, triaged inbox for doctors.
✨ Key Features
For Patients: Instant AI Analysis of PDFs, Audio Prescriptions, Actionable Next Steps (Diet/Tests), and an Interactive AI Chatbot.
#For Doctors: Smart Triage Inbox (High/Moderate/Low risk), Time-Saving Dashboard with full-screen graphs, and Role-Based Access Control.
** 💻 Tech Stack**
#Frontend: HTML5, Tailwind CSS, Vanilla JS, Chart.js
#Backend: Python, FastAPI, Uvicorn
#AI Engine: Google Gemini Pro (JSON Structuring)
#Database: Lightweight JSON-based Local DB (Optimized for MVP speed)
Challenges we ran into
Building HealthFirst AI within a tight hackathon timeframe presented a few major technical hurdles:
Strict JSON Formatting from Unstructured PDFs: Extracting raw medical data from varied lab reports and forcing the Gemini AI to consistently output a strict, parsable JSON structure (for our Chart.js graphs) required extensive prompt engineering.
Dynamic Role-Based UI Routing: Implementing seamless Role-Based Access Control (RBAC) between Patient and Doctor portals on a single-page Vanilla JS setup was tricky. We ran into complex DOM manipulation and CSS z-index overlap issues while switching dashboards, which we successfully resolved using precise state management.
Lightweight Data Persistence: To prioritize speed and avoid the overhead of setting up a heavy SQL/NoSQL database during the hackathon, we built a custom JSON-based local database. Managing concurrent read/writes and maintaining session states across our FastAPI routes required careful logic.
Technologies used
