Скрипт анализирует базу данных пациентов и используется заведующим отделением пластической хирургии и главным врачом для контроля пациентов с инфекционными заболеваниями при планировании операций и контрольных осмотров
Python application for identifying surgical patients with infectious diseases based on medical records.
This project analyzes surgical schedules together with patient medical notes to identify patients with infectious diseases before planned operations.
The application automatically classifies diseases using keyword recognition, prepares detailed reports and generates summary statistics for medical management.
Important:
The project requires access to the hospital scheduling database.
Without the original database structure the application cannot be executed.
The application helps medical staff:
- identify patients with infectious diseases before surgery
- improve operating room safety
- prepare infection control reports
- monitor disease statistics over time
The tool is used by the Head of Plastic Surgery Department and the Chief Medical Officer.
- SQL database integration
- Medical schedule analysis
- Patient record processing
- Disease classification using text recognition
- Hepatitis detection
- HIV detection
- Syphilis detection
- Treatment status detection
- Monthly disease statistics
- Excel report generation
- Conditional formatting
- Telegram notifications
- Python
- pandas
- NumPy
- SQLAlchemy
- Firebird SQL
- xlsxwriter
- python-dotenv
- pyTelegramBotAPI
- Loads surgical schedule
- Loads patient medical notes
- Filters surgical procedures
- Searches medical comments for infectious diseases
- Determines treatment status
- Generates patient list
- Creates monthly summary statistics
- Exports formatted Excel reports
Hospital database:
- Surgery schedule
- Patient records
- Medical comments
Excel workbook containing:
- All surgeries
- Patients with detected diseases
- Monthly disease statistics
This project can be used for:
- healthcare analytics
- medical reporting
- patient safety
- clinical data analysis
- hospital automation