This document explains the end-to-end flow of the BioFarm platform, showing how different user roles (Farmer, Vet, Pharmacy, Admin) interact with the system.
- Login/Register → farmer signs in to the portal.
- Create Farm Profile → add farm details (type, size, location).
- Upload Sick Animal Image → system triggers ML model to predict possible disease.
- Report Generated → stored with AI prediction + recommended actions.
- Consult Vet → farmer sends report for vet review.
- Request Medicines → farmer requests pharmacy after vet’s prescription.
- Receive Medicines → pharmacy provides response + medicine list.
- ✅ Report Closed → workflow ends.
- Vet logs in → sees reports with status
vet_review. - Reviews the report → adds diagnosis, notes, and prescription.
- Report status updates to
pharmacy_requested.
- Pharmacy logs in → sees reports with status
pharmacy_requested. - Responds with medicine availability/order details.
- Report status changes to
closed.
- Can view all farms and reports with pagination.
- Creates and publishes alerts for farmers.
- Monitors overall platform usage.
- Admins or vets create alerts for nearby outbreaks.
- Farmers automatically see alerts relevant to their region.
flowchart TD
A[New: Farmer uploads image] --> B[Vet Review Requested]
B --> C[Pharmacy Requested]
C --> D[Pharmacy Responded]
D --> E[Closed]