Skip to content

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

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