How ahsansabeeh910/cloud-based-medical-appointment-system works
MediConnect is a patient/doctor appointment and prescription system. Patients find doctors, check availability, book appointments, and manage records; doctors manage appointments and issue prescriptions; administrators oversee users and system activity. The React client calls an Express API, whose controllers enforce domain operations against MongoDB and use S3 for prescription files. The graph preserves these major documented capabilities; unsampled components and deployment details are represented only where the README or source index supports them.
Main entry points: api.js API client · server.js Express API · Appointment.js Appointment records · adminController.js Administration
Components 31
Web client
- App routing
client/src/App.jsx - Auth state
client/src/context/AuthContext.jsx - API client
client/src/services/api.js - Doctor search
client/src/pages/DoctorSearch.jsx - Appointment booking
client/src/pages/BookAppointment.jsx - Patient records
client/src/pages/PatientDashboard.jsx - Doctor portal
client/src/pages/DoctorDashboard.jsx - Appointment history
client/src/pages/AppointmentHistory.jsx - Profile management
client/src/pages/Profile.jsx - Doctor reports
client/src/pages/Reports.jsx - Admin dashboard
client/src/pages/AdminDashboard.jsx
API and access
- Express API
server/server.js - Authentication routes
server/routes/authRoutes.js - Doctor routes
server/routes/doctorRoutes.js - Appointment routes
server/routes/appointmentRoutes.js - Prescription routes
server/routes/prescriptionRoutes.js - Admin routes
server/routes/adminRoutes.js - Authentication
server/controllers/authController.js - Administration
server/controllers/adminController.js - JWT and roles
server/middleware/authMiddleware.js
Care workflows
- Doctor discovery and slots
server/controllers/doctorController.js - Appointment lifecycle
server/controllers/appointmentController.js - Prescription services
server/controllers/prescriptionController.js
Persistence and files
- User records
server/models/User.js - Doctor records
server/models/Doctor.js - Appointment records
server/models/Appointment.js - Prescription records
server/models/Prescription.js - Amazon S3
server/utils/s3.js - MongoDB
Other components
- Patient
- Doctor
Connections 41
- Patient → App routing: uses
README.md - Doctor → App routing: uses
README.md - App routing → Auth state: provides
client/src/App.jsx - Auth state → API client: authenticates through
client/src/context/AuthContext.jsx - Doctor search → API client: requests doctors
client/src/services/api.js - Appointment booking → API client: books and checks slots
client/src/services/api.js - Patient records → API client: loads records
client/src/services/api.js - Doctor portal → API client: manages appointments
client/src/services/api.js - Appointment history → API client: loads history and prescriptions
client/src/services/api.js - Profile management → API client: updates profile
client/src/services/api.js - Doctor reports → API client: requests reports
client/src/services/api.js - Admin dashboard → API client: requests administration
client/src/services/api.js - API client → Express API: calls API
client/src/services/api.js - Express API → Authentication routes: mounts
server/server.js - Express API → Doctor routes: mounts
server/server.js - Express API → Appointment routes: mounts
server/server.js - Express API → Prescription routes: mounts
server/server.js - Express API → Admin routes: mounts
server/server.js - Authentication routes → Authentication: dispatches
server/routes/authRoutes.js - Doctor routes → Doctor discovery and slots: dispatches
server/routes/doctorRoutes.js - Appointment routes → Appointment lifecycle: dispatches
server/routes/appointmentRoutes.js - Prescription routes → Prescription services: dispatches
server/routes/prescriptionRoutes.js - Admin routes → Administration: dispatches
server/routes/adminRoutes.js - Appointment routes → JWT and roles: protects
server/routes/appointmentRoutes.js - Prescription routes → JWT and roles: protects
server/routes/prescriptionRoutes.js - JWT and roles → User records: loads user
server/middleware/authMiddleware.js - Authentication → User records: authenticates users
server/controllers/authController.js - Doctor discovery and slots → Doctor records: queries doctors
server/controllers/doctorController.js - Doctor discovery and slots → Appointment records: checks booked slots
server/controllers/doctorController.js - Appointment lifecycle → Appointment records: manages appointments
server/controllers/appointmentController.js - Appointment lifecycle → Doctor records: checks doctor
server/controllers/appointmentController.js - Prescription services → Appointment records: reads appointment
server/controllers/prescriptionController.js - Prescription services → Prescription records: creates and reads
server/controllers/prescriptionController.js - Prescription services → Amazon S3: uploads and signs URLs
server/controllers/prescriptionController.js - Administration → User records: manages users
server/controllers/adminController.js - Administration → Doctor records: queries doctors
server/controllers/adminController.js - Administration → Appointment records: queries appointments
server/controllers/adminController.js - User records → MongoDB: persists
- Doctor records → MongoDB: persists
- Appointment records → MongoDB: persists
- Prescription records → MongoDB: persists