A Flask-based web application that processes medical conversation transcripts and generates structured medical reports using Natural Language Processing (NLP).
The Medical Transcript Analyzer extracts key medical information from doctor-patient conversation transcripts and organizes it into a structured format. The application uses spaCy for NLP processing and pattern matching to identify important medical entities and context.
- Upload and process medical conversation transcripts
- Extract patient information, symptoms, diagnosis, treatment details, and prognosis
- Generate structured medical reports with key clinical information
- Identify important medical phrases and keywords from conversations
- Export results in JSON or text format
- The application processes raw medical transcripts using spaCy NLP
- Pattern matching and keyword extraction identify medical entities and context
- Information is organized into a structured medical report format
- Results are displayed in an easy-to-read interface
The application generates a comprehensive medical report with the following sections:
Treatment, Status, and Medical Phrases:

- Backend: Python Flask application with spaCy NLP
- NLP Processing: Entity recognition, pattern matching, and contextual analysis
- Data Structure: JSON-formatted medical reports
- Deployment: Includes pickle support for model portability
The core functionality is implemented in three main functions:
process_medical_transcript(): Extracts structured information from textextract_keywords(): Identifies important medical phrases and keywordsgenerate_medical_summary(): Combines structured data and keywords into a complete report
- Clone the repository
- Install dependencies:
pip install flask spacy - Download spaCy model:
python -m spacy download en_core_web_sm - Run the application:
python app.py - Access the web interface at
http://localhost:5000
For deployment, the application includes functionality to save and load the spaCy model as a pickle file, making it easier to deploy in environments where installing models might be restricted.

