How chamod-tharusha-alwis/medisync works
MediSync is a role-based healthcare platform spanning a React client, an Express/MongoDB backend, and a Flask ML service. Users enter through role-specific portals to manage clinical records and consultations; the platform also supports medication workflows, public health directories, and outbreak monitoring. Clinical and surveillance analysis form distinct domain stages, with authentication, consent, and audit controls as a supporting layer. Links between major services are partly based on README descriptions; unsampled implementation details are not asserted.
Main entry points: app.js Express API · axiosInstance.js API client · App.js Portal router · adminController.js Admin operations
Components 21
Role-based client
- Portal router
client/src/App.js - Doctor consultation
client/src/pages/doctor/NewConsultation.jsx - Pharmacy workflow
client/src/pages/pharmacy/Dashboard.jsx - Public health view
client/src/pages/public/PublicHealth.jsx - API client
client/src/api/axiosInstance.js
Clinical services
- Express API
server/src/app.js - Clinical records
server/src/models/Patient.js - Medication safety
server/src/utils/medicineSafetyEngine.js - Review routes
server/src/routes/reviewRoutes.js - Review controller
server/src/controllers/reviewController.js - Visit reviews
server/src/services/reviewService.js - Review records
server/src/models/Review.js
Public health
- Admin portal
client/src/pages/admin/Dashboard.jsx - Admin operations
server/src/controllers/adminController.js - Outbreak alerts
server/src/controllers/alertController.js - Surveillance analysis
server/src/services/surveillanceService.js - Symptom and outbreak ML
ml-engine/app.py
Platform controls
- Authentication
server/src/controllers/authController.js - Verified access
server/src/middleware/verifiedAuth.js - Redis services
server/src/config/redis.js
Other components
- Patients and staff
Connections 22
- Patients and staff → Portal router: use portals
README.md - Portal router → Doctor consultation: routes to
client/src/App.js - Portal router → API client: uses API
- Doctor consultation → API client: submits clinical data
- Pharmacy workflow → API client: uses API
- Public health view → API client: uses API
- API client → Express API: sends requests
- Express API → Authentication: routes authentication
- Verified access → Authentication: checks access
server/src/middleware/verifiedAuth.js - Express API → Clinical records: serves clinical platform
server/src/app.js - Express API → Medication safety: supports medication safety
- Review routes → Verified access: protects submissions
server/src/routes/reviewRoutes.js - Review routes → Review controller: dispatches
server/src/routes/reviewRoutes.js - Review controller → Visit reviews: submits reviews
server/src/controllers/reviewController.js - Visit reviews → Review records: persists reviews
server/src/services/reviewService.js - Patients and staff → Admin portal: administers surveillance
README.md - Admin portal → Admin operations: requests operations
- Admin operations → Surveillance analysis: runs analysis
server/src/controllers/adminController.js - Admin operations → Outbreak alerts: manages alerts
server/src/controllers/adminController.js - Surveillance analysis → Symptom and outbreak ML: uses analysis engine
- Symptom and outbreak ML → Patients and staff: returns predictions
- Express API → Redis services: uses Redis
server/src/app.js