How trishathi/medclear works
MedClear is a single-file Streamlit patient portal: users upload prescription imagery, the app requests structured interpretation from Gemini, and the resulting care plan is shown in a comprehension dashboard. That dashboard presents plain-language guidance, safety warnings, and a medication timeline, with report download and simulated SMS reminders. Patients can also ask context-aware follow-up questions through MedBuddy. The README documents these capabilities; the sampled source confirms the dashboard, session context, report generation, simulated reminders, and chat behavior, but omitted sections limit certainty about some upload and extraction details.
Main entry points: prescription.py Care Dashboard
Components 15
Patient Portal
- Streamlit Portal
prescription.py - Image Upload
prescription.py
Care Interpretation
- Gemini Client
prescription.py - Structured Result
prescription.py - Prescription Context
prescription.py - Care Dashboard
prescription.py - Plain Summary
prescription.py - Safety Warnings
prescription.py - Intake Timeline
prescription.py - SMS Simulation
prescription.py - Care Plan Export
prescription.py
Patient Follow-up
- MedBuddy Chat
prescription.py - Chat History
prescription.py
Other components
- Patient
- Gemini API
Connections 18
- Patient → Streamlit Portal: uses
- Patient → Image Upload: uploads image
- Streamlit Portal → Image Upload: renders
- Streamlit Portal → Gemini Client: requests interpretation
- Gemini Client → Gemini API: sends request
- Gemini API → Gemini Client: returns JSON
- Gemini Client → Structured Result: provides result
- Streamlit Portal → Prescription Context: stores context
- Streamlit Portal → Care Dashboard: renders
- Care Dashboard → Plain Summary: shows summary
- Care Dashboard → Safety Warnings: shows warnings
- Care Dashboard → Intake Timeline: shows schedule
- Care Dashboard → SMS Simulation: simulates reminders
- Care Dashboard → Care Plan Export: generates report
- Patient → MedBuddy Chat: asks questions
- MedBuddy Chat → Prescription Context: reads context
- MedBuddy Chat → Gemini Client: requests answer
- MedBuddy Chat → Chat History: updates history