How avinashreddy630/mediflow-ai works
MediFlow AI is a hospital-management and clinical-intelligence application with role-based patient, doctor, and admin workflows. The visible authentication flow uses Firebase and synchronizes with the Django accounts API; the README describes the broader appointment, records, prescription, billing, dashboard, notification, and AI capabilities. Several feature implementations and their frontend-to-API wiring were not sampled, so those relationships are not inferred here.
Main entry points: settings.py Configured database · AuthContext.jsx Auth context · views.py E-prescriptions · App.jsx App routes
Components 20
Web application
- App routes
frontend/src/App.jsx
Identity and access
- Auth context
frontend/src/context/AuthContext.jsx - Auth API client
frontend/src/api/auth.js - Firebase Auth
frontend/src/config/firebase.js - Account endpoints
django-backend/apps/accounts/views.py - Account data
django-backend/apps/accounts/models.py
Clinical workflows
- Patient directory
django-backend/apps/patients/views.py - Doctor management
django-backend/apps/doctors/views.py - Appointment scheduling
django-backend/apps/appointments/views.py - Medical records
django-backend/apps/medical_records/views.py - E-prescriptions
django-backend/apps/prescriptions/views.py - Prescription PDF
django-backend/apps/prescriptions/views.py
Hospital operations
- Billing and payments
django-backend/apps/billing/views.py - Notifications
django-backend/apps/notifications/views.py - Analytics dashboards
django-backend/apps/dashboard/views.py - Configured database
django-backend/config/settings.py
Clinical intelligence
- AI chat
django-backend/apps/ai_chat/views.py - AI experiences
frontend/src/pages/ai/AIChatAssistantPage.jsx
Other components
- User
- Gemini AI
Connections 16
- User → App routes: opens
- App routes → Auth context: provides auth
- Auth context → Firebase Auth: authenticates
- Auth context → Auth API client: syncs account
- Auth API client → Account endpoints: HTTP requests
- Account endpoints → Account data: reads and writes
- Appointment scheduling → Configured database: persists records
- Patient directory → Configured database: persists records
- Doctor management → Configured database: persists records
- Medical records → Configured database: persists records
- E-prescriptions → Configured database: reads and writes
- E-prescriptions → Prescription PDF: streams PDF
- Billing and payments → Configured database: persists records
- Notifications → Configured database: persists records
- Analytics dashboards → Configured database: aggregates metrics
- AI chat → Gemini AI: AI assistance