Skip to content

Nish2005karsh/MedScripts-AI

Repository files navigation

GHBanner

MEDSCRIPT AI

AI Medical Prescription Digitizer & Risk Analyzer

Transform handwritten prescriptions into safe, digital, and patient-friendly medical reports.


🌟 Features

🧠 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.

🌟 Features

🚀 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

  1. Upload

User uploads a photo of their medical prescription.

  1. AI Processing

Gemini 3 Pro Vision extracts all medical details and formats them into structured JSON.

  1. Risk Analysis

Gemini runs multi-step reasoning to detect problems and produce a safety score.

  1. Digital Prescription Output

A clean, accessible, color-coded digital version is generated instantly.

Run and deploy your AI Studio app

This contains everything you need to run your app locally.

🧩 Tech Stack

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

🌟 Why This Matters

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.

🧪 Use Cases

Patients

Elderly and caregivers

Pharmacies

Hospitals

Telemedicine apps

Health NGOs

Rural clinics

View your app in AI Studio: https://ai.studio/apps/drive/1lMzme5S2f6WFFkcXZd0tBMkUIWo5Yane

Run Locally

Prerequisites: Node.js

  1. Install dependencies: npm install
  2. Set the GEMINI_API_KEY in .env.local to your Gemini API key
  3. Run the app: npm run dev

About

For google gemini deepmind kaggle project . The deployment link is provided below

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors