Skip to content

hriday1136/ClariMed

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

2 Commits
Β 
Β 
Β 
Β 

Repository files navigation

ClariMed

βΈ»

🩺 ClariMed β€” Making Medical Documents Clear, Simple, and Actionable

ClariMed is an AI-powered web platform that transforms confusing medical documents β€” like hospital discharge summaries, lab reports, or clinical notes β€” into clear, understandable, multilingual explanations that patients and caregivers can trust.

ClariMed breaks down complex jargon into plain-language summaries, highlights critical red-flag warnings, provides next-step action plans, defines medical terms, and can even read the results aloud β€” empowering people to make informed healthcare decisions with confidence.

βΈ»

πŸš€ Key Features β€’ πŸ“€ Upload PDFs or Scans – Drag and drop any medical document for instant analysis. β€’ πŸ” AI-Powered OCR & Understanding – Extract and interpret text using Google Cloud Vision and Gemini. β€’ 🧠 Plain-Language Summaries – Convert clinical language into easy-to-read explanations (6th–8th grade level). β€’ πŸ“‹ Actionable Insights – Automatically generate a β€œWhat to do next” checklist and highlight red-flag symptoms. β€’ πŸ“š Medical Glossary – Define technical terms clearly and contextually. β€’ 🌎 Multilingual Support – Translate entire reports into other languages (like Spanish) in one click. β€’ πŸ”Š Voice Narration (Optional) – Hear summaries read aloud with natural-sounding AI voices. β€’ ☁️ Secure & Scalable – Built with Google Cloud, Snowflake, and ElevenLabs for safety and performance.

βΈ»

🧰 Tech Stack

πŸ–₯️ Frontend β€’ βš›οΈ React.js – Component-based UI and user experience β€’ 🎨 Tailwind CSS / Material UI – Modern, responsive design β€’ πŸ“‘ Axios – REST API communication with Flask backend

πŸ”§ Backend β€’ 🐍 Flask (Python) – REST API backend and orchestration β€’ ☁️ Google Cloud Storage – Secure file storage and access β€’ πŸ” Google Cloud Vision – Optical Character Recognition (OCR) for text extraction β€’ 🧠 Gemini API (Google) – Text summarization, simplification, and translation β€’ πŸ—„οΈ Snowflake – Glossary, term definitions, and contextual medical knowledge retrieval β€’ πŸ”Š ElevenLabs (Optional) – Natural-sounding text-to-speech narration

βΈ»

πŸ§ͺ How It Works 1. πŸ“„ Upload a medical document – Users upload a PDF, scanned image, or report. 2. πŸ” OCR Extraction – Google Cloud Vision extracts raw text from the file. 3. πŸ“š Knowledge Retrieval – Snowflake retrieves relevant definitions, lab ranges, and glossary terms. 4. πŸ€– AI Processing – Gemini processes the text and outputs structured results: β€’ Plain summary β€’ Key terms and definitions β€’ Actionable steps β€’ Red-flag warnings β€’ Disclaimers 5. 🌐 Translation & Voice (Optional) – Gemini translates results into another language, and ElevenLabs reads them aloud. 6. πŸ–₯️ User Display – The frontend displays the results in a clean, accessible, and user-friendly interface.

βΈ»

πŸ“ Project Structure

clarimed/ β”‚ β”œβ”€β”€ backend/ # Flask backend β”‚ β”œβ”€β”€ app.py # Main Flask application (API routes) β”‚ β”œβ”€β”€ services/ # Core integrations and AI logic β”‚ β”‚ β”œβ”€β”€ gcs.py # Google Cloud Storage operations β”‚ β”‚ β”œβ”€β”€ ocr.py # Text extraction via Cloud Vision β”‚ β”‚ β”œβ”€β”€ gemini.py # Text generation and translation β”‚ β”‚ β”œβ”€β”€ snowflake_client.py# Medical glossary and data retrieval β”‚ β”‚ β”œβ”€β”€ elevenlabs.py # Optional voice synthesis β”‚ β”‚ └── validate.py # Output validation and formatting β”‚ β”œβ”€β”€ prompts.py # Prompt templates for Gemini API β”‚ β”œβ”€β”€ models.py # Request/response data schemas β”‚ β”œβ”€β”€ requirements.txt # Python dependencies β”‚ └── .env.example # Environment variable template β”‚ β”œβ”€β”€ frontend/ # React.js frontend β”‚ β”œβ”€β”€ public/ # Static assets β”‚ β”œβ”€β”€ src/ β”‚ β”‚ β”œβ”€β”€ App.js # Main React component β”‚ β”‚ β”œβ”€β”€ index.js # Entry point β”‚ β”‚ β”œβ”€β”€ components/ # UI components β”‚ β”‚ β”‚ β”œβ”€β”€ UploadCard.js # File upload UI β”‚ β”‚ β”‚ β”œβ”€β”€ ResultPane.js # Summary, glossary, actions β”‚ β”‚ β”‚ └── LanguageToggle.js # Language switcher β”‚ β”‚ β”œβ”€β”€ api/ # Axios API service β”‚ β”‚ └── styles/ # Styling and CSS files β”‚ β”œβ”€β”€ package.json β”‚ └── .env.local.example β”‚ └── README.md # Project documentation

βΈ»

πŸ§‘β€πŸ’» Local Development Setup

  1. Clone the repository

git clone https://github.com/yourusername/clarimed.git cd clarimed

βΈ»

  1. Setup Backend (Flask)

cd backend python -m venv .venv source .venv/bin/activate # Windows: .venv\Scripts\activate pip install -r requirements.txt cp .env.example .env # Fill in your keys and credentials python app.py

The backend will run on: http://localhost:5000

βΈ»

  1. Setup Frontend (React.js)

cd frontend npm install cp .env.local.example .env.local npm start

The frontend will run on: http://localhost:3000

βΈ»

πŸ”‘ Environment Variables

Backend (.env):

GOOGLE_APPLICATION_CREDENTIALS=/path/to/gcp-key.json GCP_BUCKET_NAME=clarimed-uploads GEMINI_API_KEY=... SNOWFLAKE_USER=... SNOWFLAKE_PASSWORD=... SNOWFLAKE_ACCOUNT=... SNOWFLAKE_DATABASE=CLARIMED_DB SNOWFLAKE_SCHEMA=PUBLIC SNOWFLAKE_WAREHOUSE=COMPUTE_WH ELEVENLABS_API_KEY=...

Frontend (.env.local):

REACT_APP_API_BASE=http://localhost:5000

βΈ»

πŸ“Š API Endpoints

Endpoint Method Description /upload-url GET Generate a signed URL for GCS file upload /process POST Process an uploaded document and return JSON /translate POST Translate the output into a new language /tts POST Generate audio narration (optional)

βΈ»

🧠 Example Output

Input: A hospital discharge summary filled with complex medical language.

Output: β€’ Plain Summary: β€œYour kidneys were under stress due to low hydration.” β€’ Action Items: β€œDrink more fluids and follow up with your doctor in 7 days.” β€’ Red Flags: β€œSeek emergency help if you stop urinating or feel faint.” β€’ Glossary: β€’ Creatinine: A chemical waste that indicates kidney function. β€’ Hypovolemia: A low amount of fluid in the bloodstream.

βΈ»

πŸ† Why ClariMed Stands Out β€’ 🌍 Social Good – Increases health literacy and access to care. β€’ πŸ“š Education – Helps patients and families understand medical terms. β€’ πŸ’‘ Entrepreneurial – Real-world product potential for hospitals, clinics, and insurers. β€’ πŸ€– Best Use of Gemini & Snowflake – Combines state-of-the-art AI with data retrieval. β€’ 🎨 Best UI/UX – Clean, accessible, and trustworthy design.

βΈ»

🧭 Future Roadmap β€’ πŸ“± Mobile app for patients and caregivers β€’ 🩺 EHR integration with FHIR/HL7 standards β€’ πŸ”¬ Live Q&A chatbot for report clarification β€’ πŸ“Š Analytics dashboard for healthcare providers

βΈ»

⚠️ Disclaimer

ClariMed is an educational tool and not a substitute for professional medical advice, diagnosis, or treatment. Always consult a qualified healthcare provider with any questions regarding a medical condition.

βΈ»

πŸ‘©β€βš•οΈ About

Built with ❀️ to bridge the gap between complex medical information and human understanding β€” because everyone deserves to know what their health data means.

βΈ»

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors