MedExtract
Scan. Schedule. Stay Healthy.
The problem MedExtract solves
We created an intelligent prescription helper that converts sloppy, handwritten physician scribbles into something your phone — and your life — can work with. You input a photo of a prescription into a robust LLM that reads and interprets the handwriting, pulls out salient information such as medication names, dosages, start and end dates, and any special directions, and stores everything as structured JSON. That JSON then serves as the source of truth: it fills up a light database so you can see history, medications, and refill needs over time. When the user logs in with their Google account, the app sets up calendar events for every dosage schedule and syncs to Google Calendar so reminders show up reliably on all devices. To loop back, the system sends a friendly WhatsApp reminder fifteen minutes prior to every dose, an appropriate prompt without intrusiveness. The workflow is focused on simplicity and safety: one photo, an instantaneous structured record, and scheduling that automates to minimize skipped doses and confusion. Patients and caregivers have a peaceful, reliable aide that interprets scrawled prescriptions into unambiguous action. It's privacy-conscious, sensible, and designed to liberate individuals from fear of missing medicines without compromising the doctor's intention. Simple. Reliable. Useful.
Challenges we ran into
Firebase auth — Challenge: secure Google sign-in and token verification. Fix: Firebase Auth + Admin SDK; store minimal profiles.
Next.js UI — Challenge: SSR/CSR and API glue. Fix: React components in Next.js, API routes for backend, SWR for live state.
Google Calendar OAuth2 — Challenge: token/refresh flow. Fix: server-side OAuth2, encrypted refresh tokens in Firestore, backend creates events.
Handwriting recognition — Challenge: messy scribbles. Fix: ensemble DeepSeek + TrOCR/PaddleOCR, image denoise/contrast, confidence scoring and human review for low confidence.
WhatsApp reminders — Challenge: scheduling and delivery limits. Fix: Twilio/WhatsApp Business API + cloud scheduled functions, retries and exponential backoff.
Privacy & compliance — Challenge: PHI safety. Fix: encryption in transit/at rest, minimal retention, user consent and opt-out.
Hallucinations & parsing errors — Challenge: model invents info. Fix: tight prompts, regex validators, automated tests, and manual verification fallback.
Tracks Applied (4)
Best Use of Gemini API
Major League Hacking
Best Use of MongoDB Atlas
Major League Hacking
