drhrushi/PMJAY_Advanced_Procedure_Search
0
๐ฅ PMJAY Medical Package Search
An intelligent semantic search application for PMJAY (Ayushman Bharat) surgical packages that understands medical terminology and relationships.
๐ What is this?
This application helps healthcare providers, administrators, and patients quickly find relevant surgical packages from the PMJAY scheme using natural language queries. Instead of exact keyword matching, it understands medical concepts and relationships.
โจ Features
- ๐ Intelligent Medical Search: Understands medical terminology and synonyms
- "jaw fracture" โ finds mandibular and maxillary procedures
- "cardiac surgery" โ finds heart-related procedures
- "orthopedic trauma" โ finds bone fracture treatments
- ๐ฏ Relevance Scoring: Results are sorted by relevance score (highest first)
- ๐ฐ Package Amounts: Displays formatted package amounts in Indian Rupees
- ๐ Document Requirements: Shows pre-authorization and claim processing documents
- ๐ฑ Mobile Friendly: Responsive design works on all devices
๐ How to Use
- Enter medical terms in the search box
- Examples:
jaw fracture,cardiac surgery,cataract operation
- Click Search or press Enter
- Browse results sorted by relevance:
- ๐ฏ Excellent Match (Green): > 0.7 score
- ๐ Good Match (Blue): 0.5 - 0.7 score
- โ ๏ธ Fair Match (Yellow): 0.3 - 0.5 score
- โ Poor Match (Red): < 0.3 score
๐ก Search Tips
- Use medical terminology:
mandibularinstead of justjaw - Be specific:
cardiac bypassinstead ofheart surgery - Try synonyms:
orthopedic=bone=musculoskeletal - Combine terms:
pediatric fracture treatment
๐งช Example Searches
๐ What You'll See
For each surgical package, you'll see:
- ๐ฏ Relevance Score: How well it matches your query
- ๐ Procedure Code: Unique identifier
- ๐ฌ Medical Procedure: Detailed procedure name
- ๐ฅ Specialty: Medical specialty category
- ๐ฐ Package Amount: Formatted cost in โน
- ๐ Pre-Auth Documents: Required documents for pre-authorization
- ๐ Claim Documents: Required documents for claim processing
๐ ๏ธ Technical Details
AI Models Used
- Semantic Search:
sentence-transformers/all-MiniLM-L6-v2 - Vector Database: FAISS for efficient similarity search
- Medical Concept Mapping: Custom medical terminology expansion
Search Algorithm
- 60% Semantic Similarity: AI understanding of medical concepts
- 40% Medical Keyword Matching: Exact term matching with synonyms
- Intelligent Ranking: Combined scoring with proper sorting
Built With
- Gradio: Web interface framework
- Sentence Transformers: Semantic search embeddings
- FAISS: Vector similarity search
- Pandas: Data processing
๐ Data Source
This application uses the official PMJAY (Ayushman Bharat) surgical package database containing:
- Surgical procedure codes and names
- Package amounts and pricing
- Medical specialty classifications
- Required documentation for authorization and claims
๐ Deployment
This app is deployed on Hugging Face Spaces and uses:
- CPU Basic instance
- Git LFS for large file storage
- Automatic deployment from Git repository
๐ง Local Development
If you want to run this locally:
# Clone the repository
git clone https://huggingface.co/spaces/your-username/pmjay-medical-search
cd pmjay-medical-search
# Install dependencies
pip install -r requirements.txt
# Run the application
python app.py