CoolFace
Apppublic

drhrushi/PMJAY_Advanced_Procedure_Search

sourceHugging Faceapache-2.0updated 11mo agoView on Hugging Face
0likes
App README

๐Ÿฅ 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

  1. 1.Enter medical terms in the search box
  2. 2.Examples: jaw fracture, cardiac surgery, cataract operation
  1. 1.Click Search or press Enter
  1. 1.Browse results sorted by relevance:
  2. 2.๐ŸŽฏ Excellent Match (Green): > 0.7 score
  3. 3.๐Ÿ‘ Good Match (Blue): 0.5 - 0.7 score
  4. 4.โš ๏ธ Fair Match (Yellow): 0.3 - 0.5 score
  5. 5.โŒ Poor Match (Red): < 0.3 score

๐Ÿ’ก Search Tips

  • โ€”Use medical terminology: mandibular instead of just jaw
  • โ€”Be specific: cardiac bypass instead of heart surgery
  • โ€”Try synonyms: orthopedic = bone = musculoskeletal
  • โ€”Combine terms: pediatric fracture treatment

๐Ÿงช Example Searches

Search QueryFinds Related To
jaw traumaMandibular fractures, Maxillary procedures
cardiac surgeryBypass, Angioplasty, Heart procedures
eye cataractOphthalmology, Lens procedures
kidney stoneRenal, Nephrology procedures
orthopedic fractureBone repairs, Joint procedures

๐Ÿ“Š 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:

bash
# 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