Skip to content

PHR Analyzer analyze and summarize your medical reports and suggests follow-ups or tests , highlight critical abnormalities or conditions.

Notifications You must be signed in to change notification settings

rahulprajapati08/PHR-Analyzer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

6 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

🧾 Patient Health Report Analyzer (v2.0)

Prototype rebuilt with Mistral LLM, LangChain, and a modern UI.

This is an enhanced and efficient version of the Patient Health Report Analyzer project I initially created as a prototype. The earlier version focused on basic PDF parsing and keyword matching. In this release, I've rebuilt it using cutting-edge technologies like:

  • 🧠 Mistral LLM (via Ollama) – for local, privacy-preserving AI inference
  • πŸ”— LangChain – for prompt management and chaining logic
  • πŸ“„ PDF Parsing – clean extraction of health report text using pdfplumber
  • πŸ’» Streamlit UI – for an intuitive and interactive frontend

🧠 Features

  • Upload and analyze health/lab PDF reports
  • Extracts and summarizes:
    • πŸ” Key medical observations
    • ⚠️ Critical abnormalities or conditions
    • πŸ“‹ Suggested follow-ups or tests
    • ❓ Missing or ambiguous information
  • All AI processing done locally via Mistral (no cloud model dependency)

πŸš€ Getting Started

  1. Clone the repository:
    git clone https://github.com/rahulprajapati08/PHR-Analyzer.git
    cd PHR-Analyzer
  2. Install dependencies:
    pip install -r requirements.txt
  3. Install Ollama if not already installed, then run:
    ollama run mistral
  4. Launch the App:
    streamlit run app.py
    

πŸ–ΌοΈ Screenshots

Screenshot 2025-06-28 214745 Screenshot 2025-06-28 215425


πŸ“Œ Notes

  • This project is fully local and private β€” no external LLM APIs are used.
  • You can deploy the Streamlit app online and expose your backend using ngrok or localtunnel.

πŸ› οΈ Future Improvements

  • Add PDF export of summary
  • Build patient history dashboard
  • Integrate OCR for scanned reports

About

PHR Analyzer analyze and summarize your medical reports and suggests follow-ups or tests , highlight critical abnormalities or conditions.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published