A comprehensive medical dictionary application designed for hospital use, featuring AI-powered term categorization, user management, and extensive medical term database.
-
Medical Term Management:
- Add, edit, delete medical terms
- Detailed term view with multiple information sections
- Search and filter functionality
-
AI Integration:
- Automatic term categorization using machine learning
- Body system prediction
- Model training interface
-
Data Management:
- Import terms from CSV, Excel, PDF, and text files
- json database backend
- Manage categories, body systems, and tags
-
Online Integration:
- Fetch definitions from Merriam-Webster medical dictionary
- Web browser integration for viewing sources
- Python 3.6+
- Required packages:
pip install tkinter requests beautifulsoup4 pandas PyPDF2 scikit-learn joblib pillow
- Clone the repository or download the source files
- Install dependencies:
pip install -r requirements.txt - Run the application:
python medical_dictionary.py
- Search for medical terms using the search bar
- Add new terms through the Dictionary menu
- Import terms from external files
- Use AI suggestions for term categorization
- Manage users, categories, body systems, and tags
- Train the AI model with existing terms
- View all terms in the dictionary
The application uses json with the following tables:
categories- Term categoriestags- Term tagsdictionary- Medical terms and definitionsterm_tags- Many-to-many relationship between terms and tags
The application uses a MultinomialNB classifier with TfidfVectorizer for term categorization. The model is trained on:
- Default medical knowledge (initial training)
- User-added terms (when manually trained)
Model files:
medical_category_model.joblib- Trained classifiermedical_tfidf_vectorizer.joblib- Vectorizer
This project is licensed under the MIT License - see the LICENSE file for details.
Contributions are welcome! Please follow these steps:
- Fork the repository
- Create your feature branch (
git checkout -b feature/AmazingFeature) - Commit your changes (
git commit -m 'Add some AmazingFeature') - Push to the branch (
git push origin feature/AmazingFeature) - Open a Pull Request
For issues or questions, please open an issue on the GitHub repository or Email : akrashnoor2580@gmail.com
### Additional Files You Should Create:
1. **requirements.txt**:
requests>=2.26.0 beautifulsoup4>=4.10.0 pandas>=1.3.0 PyPDF2>=1.27.0 scikit-learn>=0.24.0 joblib>=1.0.0 pillow>=8.3.0
2. **LICENSE** (MIT License example):
```text
MIT License
Copyright (c) [2025] [Akrash Noor Awan]
Permission is hereby granted...
/hospital-medical-dictionary
│ README.md
│ medical_dictionary.py
│ requirements.txt
│ LICENSE
│ screenshot.png
