How uditkrpathak/onemedicalfullstack works
OneMedical is a physiotherapy and clinical-recovery ecosystem spanning a mobile patient/therapist app, an administration portal, and backend services. Users access care through the gateway: identity and billing support account setup, therapist discovery and appointment payment; the clinical service supports scheduling, consultations, recovery programs, records, telehealth, reviews and notifications. The README documents the service boundaries and integrations; source evidence here is partial, so internal links are limited to shown imports, routes and calls.
Main entry points: clinical.routes.js Clinical routes · user.routes.js Identity routes · paymentController.js Payment processing · notificationManager.js Notification dispatch
Components 33
User applications
- Mobile app
Client/App.jsx - Care workflows
Client/src/app/navigation/AppNavigator.jsx - Admin portal
Admin/src/App.jsx
Identity and billing
- Identity routes
Server/identity-service/src/routes/user.routes.js - Authentication
Server/identity-service/src/controllers/authController.js - User profiles
Server/identity-service/src/controllers/userController.js - Identity records
Server/identity-service/src/models/User.js - Payment routes
Server/identity-service/src/payment/routes/payment.routes.js - Payment processing
Server/identity-service/src/payment/controllers/paymentController.js - Appointment confirmation
Server/identity-service/src/payment/services/appointmentConfirm.js - Razorpay integration
Server/identity-service/src/payment/services/razorpayService.js
Clinical recovery
- Clinical routes
Server/clinical-service/src/routes/clinical.routes.js - Appointments
Server/clinical-service/src/models/Appointment.js - Schedule availability
Server/clinical-service/src/utils/availabilityEngine.js - Recovery programs
Server/clinical-service/src/controllers/programController.js - Recovery tracking
Server/clinical-service/src/utils/recoveryEngine.js - Records and telehealth
Server/clinical-service/src/controllers/medicalRecordController.js - Clinical records
Server/clinical-service/src/models/MedicalRecord.js - Reviews and ratings
Server/clinical-service/src/controllers/reviewController.js - Rating calculation
Server/clinical-service/src/services/reviewRatingService.js
Backend platform
- API gateway
Server/gateway/server.js - Identity database
- Clinical database
- RabbitMQ
- Cloud storage
- Push, email, SMS
- Razorpay
Notifications
- Notification dispatch
Server/clinical-service/src/notifications/notificationManager.js - Notification worker
Server/clinical-service/src/notifications/notificationWorker.js - Notification records
Server/clinical-service/src/models/Notification.js - Delivery providers
Server/clinical-service/src/notifications/providers/pushProvider.js
Other components
- Patient / therapist
- Clinic staff
Connections 34
- Patient / therapist → Mobile app: uses
README.md - Mobile app → Care workflows: opens navigation
Client/App.jsx - Clinic staff → Admin portal: uses
README.md - Admin portal → API gateway: requests services
README.md - Mobile app → API gateway: requests services
README.md - API gateway → Identity routes: routes identity
README.md - API gateway → Clinical routes: routes clinical
README.md - Identity routes → User profiles: routes to
Server/identity-service/src/routes/user.routes.js - Identity routes → Authentication: routes auth
- Payment routes → Payment processing: routes to
Server/identity-service/src/payment/routes/payment.routes.js - Payment processing → Appointment confirmation: confirms appointment
Server/identity-service/src/payment/controllers/paymentController.js - Payment processing → Razorpay integration: uses gateway service
Server/identity-service/src/payment/controllers/paymentController.js - Identity routes → Payment routes: routes payments
- User profiles → Identity records: reads and writes
Server/identity-service/src/controllers/userController.js - Authentication → Identity records: authenticates accounts
Server/identity-service/src/controllers/authController.js - User profiles → RabbitMQ: publishes events
Server/identity-service/src/controllers/userController.js - Payment processing → RabbitMQ: publishes events
Server/identity-service/src/payment/controllers/paymentController.js - Clinical routes → Recovery programs: routes programs
Server/clinical-service/src/routes/clinical.routes.js - Clinical routes → Appointments: routes appointments
- Schedule availability → Appointments: checks bookings
Server/clinical-service/src/utils/availabilityEngine.js - Recovery programs → Recovery tracking: coordinates recovery
- Clinical routes → Records and telehealth: routes records
Server/clinical-service/src/routes/clinical.routes.js - Records and telehealth → Clinical records: stores records
- Reviews and ratings → Rating calculation: recalculates ratings
Server/clinical-service/src/controllers/reviewController.js - Notification worker → Notification dispatch: dispatches events
- Notification dispatch → Notification records: records delivery
Server/clinical-service/src/notifications/notificationManager.js - Notification dispatch → Delivery providers: sends push
Server/clinical-service/src/notifications/notificationManager.js - Notification dispatch → Push, email, SMS: delivers channels
README.md - Identity routes → Identity database: persists identity
README.md - Clinical routes → Clinical database: persists clinical data
README.md - Payment processing → Razorpay: charges payments
README.md - Clinical routes → Cloud storage: stores vault files
README.md - Identity routes → RabbitMQ: emits events
README.md - Clinical routes → RabbitMQ: emits events
README.md