🏥 A Pharmacist’s assistant, that automatically matches orders against handwritten prescriptions and creates orders for patient also Diagnose based on Symptoms
-
Prescription Processing (
main.py)- Takes an image of a prescription as input.
- Validates the image and extracts medicine names.
- Checks the availability of medicines.
- Suggests alternative medicines if the required ones are unavailable.
- Generates a final order with the total cost.
-
Symptom-Based Diagnosis (
symptom.py)- Asks the user for symptoms through an interactive interface.
- Diagnoses the possible medical condition.
This system leverages Google Generative AI for intelligent recommendations and uses Tkinter for an easy-to-use graphical interface.
1️⃣ Install Required Dependencies
-
When you open in Pycharm or any such IDE click on Install Requirements
-
Or run this in terminal: pip install -r requirements.txt
2️⃣ Set Up Google Generative AI API
-
This project requires an API key from Google Generative AI for medicine suggestions.
-
Sign up at Google AI.
-
Generate an API key.
-
Open main.py and replace 'your api key here' with your actual API key.
🖼️ Running main.py (Prescription Processing & Medicine Recommendation)
-
Run this in terminal:
-
--python main.py
-
Upload an image of your prescription.
-
You can also use the image1.jpg given in the repo
- The system validates and extracts medicine details.
- It checks availability and suggests alternatives if needed.
- A final order with total cost is generated.
🩺 Running symptom.py (Symptom-Based Diagnosis)
- -- python symptom.py
- Enter your symptoms when prompted.
- The system diagnoses possible medical conditions.
🛠 Technologies Used
- Python (Core programming language)
- Tkinter (GUI for user interaction)
- Pandas (Data handling for medicines)
- PIL (Pillow) (Image processing)
- Google Generative AI (Medicine recommendations)
🤝 Contributing Feel free to fork this repository, create a new branch, and submit pull requests for improvements!
🌟 Star this repo if you find it useful! ⭐




