AI Medical Prescription Digitizer & Risk Analyzer
Transform handwritten prescriptions into safe, digital, and patient-friendly medical reports.
🧠 Overview
MedScript AI is an AI-powered healthcare tool that converts handwritten medical prescriptions into a clean, digital, safe, and easy-to-understand format. It uses Gemini 3 Pro’s multimodal vision + reasoning to extract medicines, dosages, doctor notes, and perform risk analysis such as:
Drug–drug interactions
Age-based risks
Overdose detection
Cheaper generic alternatives
Language-friendly medical instructions
Audio instructions for accessibility
This tool removes the confusion caused by messy handwriting and provides accurate, safe, patient-ready medical guidance.
🚀 Key Features 🔍 1. Prescription Digitization
Upload a handwritten prescription image → Gemini extracts:
Medicines
Dosage
Frequency
Duration
Instructions & warnings
Doctor notes
🦺 2. AI Risk Analysis
MedScript AI automatically checks for:
Drug interactions
Allergy triggers
Pediatric / geriatric risks
Contraindications for chronic diseases
Liver/kidney harm risks
All warnings are highlighted in simple language for clarity.
💸 3. Generic & Cheaper Alternatives
Gemini recommends safe generic substitutes, helping patients save money.
🌍 4. Multilingual & Accessible
5+ languages
Audio playback of instructions
Large, clean, readable layout
⬇️ 5. Downloadable Digital Report
Generate a PDF-style structured prescription containing:
Medicine schedule
Safety warnings
Summary
Doctor notes
Alternative medicines
🛠️ How It Works
- Upload
User uploads a photo of their medical prescription.
- AI Processing
Gemini 3 Pro Vision extracts all medical details and formats them into structured JSON.
- Risk Analysis
Gemini runs multi-step reasoning to detect problems and produce a safety score.
- Digital Prescription Output
A clean, accessible, color-coded digital version is generated instantly.
This contains everything you need to run your app locally.
Frontend: React + TSX
Styling: Tailwind CSS + shadcn/ui
Auth (optional): Clerk
AI Engine: Google Gemini 3 Pro (multimodal)
Storage (optional): Supabase / Firebase
Deployment: AI Studio App Link / Vercel
Medical errors due to poor handwriting lead to thousands of complications every year. MedScript AI ensures:
Clear understanding for patients
Error-free medicine intake
Extra safety for children and elderly
Better communication between doctor → patient → pharmacist
This makes healthcare safer, smarter, and more accessible.
Patients
Elderly and caregivers
Pharmacies
Hospitals
Telemedicine apps
Health NGOs
Rural clinics
View your app in AI Studio: https://ai.studio/apps/drive/1lMzme5S2f6WFFkcXZd0tBMkUIWo5Yane
Prerequisites: Node.js
- Install dependencies:
npm install - Set the
GEMINI_API_KEYin .env.local to your Gemini API key - Run the app:
npm run dev
