How sosukeaizen11/mediconnect works
MediConnect is a role-based healthcare platform for patients, doctors, and clinic administrators. Patients find clinics, book appointments or join token queues, and access records and consultation history; doctors manage availability and queues and record consultations; administrators approve clinics and manage users. The sampled source shows the Express route mounting and parts of scheduling, queue, and clinical flows. Other major capabilities are represented from the route and page tree; their internal wiring is not inferred where source was not sampled.
Main entry points: app.js Express application · token.controller.js Token handling · appointment.controller.js Appointment handling · token.routes.js Queue routes
Components 25
Web application
- Role-based pages
client/src/routes/AppRoutes.jsx - API modules
client/src/api/apiClient.js
Scheduling and care
- Scheduling routes
server/src/modules/scheduling/routes/appointment.routes.js - Appointment handling
server/src/modules/scheduling/controllers/appointment.controller.js - Scheduling services
server/src/modules/scheduling/services/appointment.service.js - Appointment repository
server/src/modules/scheduling/repositories/appointment.repository.js - Appointment records
server/src/modules/scheduling/models/appointment.model.js - Availability and slots
server/src/modules/scheduling/services/doctorAvailability.service.js - Queue routes
server/src/modules/queue/routes/token.routes.js - Token handling
server/src/modules/queue/controllers/token.controller.js - Queue services
server/src/modules/queue/services/token.service.js - Token repository
server/src/modules/queue/repositories/token.repository.js - Token records
server/src/modules/queue/models/token.model.js - Consultation services
server/src/modules/clinical/services/consultation.service.js - Consultation records
server/src/modules/clinical/models/consultation.model.js
Platform services
- Express application
server/src/app.js - Clinic and doctor services
server/src/services/clinic.service.js - Authentication
server/src/controllers/auth.controller.js - Clinic and user admin
server/src/controllers/admin.controller.js
Content and insights
- Medical reports
server/src/controllers/report.controller.js - AI health features
server/src/controllers/aiInsights.controller.js - AI receptionist
server/src/controllers/aiReceptionist.controller.js - Doctor posts
server/src/controllers/post.controller.js
Other components
- Patients and staff
- MongoDB
Connections 26
- Patients and staff → Role-based pages: use
- Role-based pages → API modules: request via
- API modules → Express application: HTTP API
- Express application → Scheduling routes: mounts
- Express application → Queue routes: mounts
- Scheduling routes → Appointment handling: dispatches
- Appointment handling → Scheduling services: calls
- Scheduling services → Appointment repository: uses
- Appointment repository → Appointment records: reads and writes
- Appointment handling → Availability and slots: uses
- Express application → Queue routes: mounts
- Queue routes → Token handling: dispatches
- Token handling → Queue services: calls
- Queue services → Token repository: uses
- Token repository → Token records: reads and writes
- Token handling → Consultation services: requests care data
- Consultation services → Consultation records: reads and writes
- Express application → Authentication: mounts auth routes
- Express application → Clinic and doctor services: mounts clinic routes
- Express application → Clinic and user admin: mounts admin routes
- Express application → Medical reports: mounts report routes
- Express application → AI health features: mounts insights routes
- Express application → AI receptionist: mounts receptionist routes
- Express application → Doctor posts: mounts post routes
- Clinic and user admin → MongoDB: queries
- Token handling → MongoDB: validates clinic