How somya-raman/medora works
Medora is a full-stack healthcare platform for patients, doctors, and administrators. The principal patient workflow is specialist discovery, appointment booking, consultation, and access to AI-simplified PDF reports; doctors manage appointments and author reports, while admins oversee users, appointments, and analytics. The graph groups route-level frontend workflows, API services, backend domain handlers, and supporting integrations. Some backend routes and domain handlers were not sampled, so uncertain connections are omitted or marked dashed.
Main entry points: report.controller.js Medical reports and templates · AppRoutes.jsx Role-based routing · patient Patient workflows · review.controller.js Ratings and reviews
Components 28
Web application
- Patient workflows
client/src/pages/patient - Doctor workflows
client/src/pages/doctor - Admin workflows
client/src/pages/admin - Public and account pages
client/src/pages/public - Role-based routing
client/src/routes/AppRoutes.jsx
Client API
- Patient API
client/src/api/patient.api.js - Appointment API
client/src/api/appointment.api.js - Report API
client/src/api/report.api.js - Review API
client/src/api/review.api.js - Authentication API
client/src/api/auth.api.js
Backend domains
- Authentication
server/src/controllers/auth.controller.js - Appointment management
server/src/controllers/appointment.controller.js - Doctor and specialty discovery
server/src/controllers/doctor.controller.js - Medical reports and templates
server/src/controllers/report.controller.js - Ratings and reviews
server/src/controllers/review.controller.js - Administration and analytics
server/src/controllers/admin.controller.js
Backend services
- AI report generation
server/src/services/ai.service.js - PDF and cloud storage
server/src/services/pdf.service.js - Email notifications
server/src/services/email.service.js
Domain data
- Appointment records
server/src/models/Appointment.model.js - Medical report records
server/src/models/MedicalReport.model.js - Review records
server/src/models/Review.model.js - Doctor records
server/src/models/Doctor.model.js - User records
server/src/models/User.model.js
Other components
- MongoDB
- Google Gemini
- Cloudinary
- SMTP email
Connections 32
- Role-based routing → Patient workflows: routes to
client/src/routes/AppRoutes.jsx - Role-based routing → Doctor workflows: routes to
client/src/routes/AppRoutes.jsx - Role-based routing → Admin workflows: routes to
client/src/routes/AppRoutes.jsx - Role-based routing → Public and account pages: routes to
client/src/routes/AppRoutes.jsx - Patient workflows → Patient API: uses
client/src/pages/patient/BookingPage.jsx - Patient workflows → Appointment API: uses
client/src/pages/patient/BookingPage.jsx - Doctor workflows → Report API: uses
client/src/pages/doctor/TemplateManagerPage.jsx - Doctor workflows → Patient API: loads specialties
client/src/pages/doctor/TemplateManagerPage.jsx - Patient workflows → Review API: uses
- Public and account pages → Authentication API: uses
- Patient API → Doctor and specialty discovery: requests data
- Appointment API → Appointment management: requests actions
- Report API → Medical reports and templates: requests actions
- Review API → Ratings and reviews: requests actions
- Authentication API → Authentication: requests actions
- Medical reports and templates → AI report generation: generates content
server/src/controllers/report.controller.js - Medical reports and templates → PDF and cloud storage: generates PDF
server/src/controllers/report.controller.js - Medical reports and templates → Email notifications: notifies patient
server/src/controllers/report.controller.js - Administration and analytics → Email notifications: sends credentials
server/src/controllers/admin.controller.js - Ratings and reviews → Appointment records: checks appointment
server/src/controllers/review.controller.js - Ratings and reviews → Review records: creates and updates
server/src/controllers/review.controller.js - Ratings and reviews → Doctor records: updates ratings
server/src/controllers/review.controller.js - Medical reports and templates → Medical report records: stores reports
server/src/controllers/report.controller.js - Medical reports and templates → Appointment records: reads appointment
server/src/controllers/report.controller.js - AI report generation → Google Gemini: uses model
- PDF and cloud storage → Cloudinary: stores documents
server/src/services/pdf.service.js - Email notifications → SMTP email: sends mail
- Appointment records → MongoDB: persists in
- Medical report records → MongoDB: persists in
- Review records → MongoDB: persists in
- Doctor records → MongoDB: persists in
- User records → MongoDB: persists in