βΈ»
π©Ί 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
- Clone the repository
git clone https://github.com/yourusername/clarimed.git cd clarimed
βΈ»
- 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
βΈ»
- 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
βΈ»
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.
βΈ»