How vaibhav-1786/clinicconnect works
ClinicConnect is a role-based clinic and hospital management platform. Its main patient-to-care workflow is clinic discovery and appointment booking, receptionist review and queue handling, doctor consultation and prescription, then billing and patient follow-up. Separate branches support administration, patient records and safety features, and platform services such as authentication, localization and offline awareness. Backend routes are registered by the Flask app; sampled route references show database and service dependencies. Many feature modules were not sampled, so their internal links are shown only where documented.
Main entry points: api.js API client · App.jsx Role-based app · patient Patient portal · receptionist Receptionist portal
Components 28
Portals and experience
- Role-based app
frontend/src/App.jsx - Patient portal
frontend/src/pages/patient - Receptionist portal
frontend/src/pages/receptionist - Doctor portal
frontend/src/pages/doctor - Admin portal
frontend/src/pages/admin - Shared dashboard
frontend/src/layouts/DashboardLayout.jsx
Care workflow
- Clinic discovery
backend/app/routes/clinics.py - Appointments and slots
backend/app/routes/appointments.py - Patient care records
backend/app/routes - Consultation and prescriptions
backend/app/routes/clinical.py
Clinic operations
- Billing and insurance
backend/app/routes/billing.py - Queue and waitlist
backend/app/routes/waitlist.py
Administration
- Admin and analytics
backend/app/routes/admin.py - Admin analytics and alerts
backend/app/routes/admin_analytics.py - Matching and forecasting
backend/app/services/matching.py
Platform services
- API client
frontend/src/services/api.js - Session context
frontend/src/context/AuthContext.jsx - Language context
frontend/src/context/LanguageContext.jsx - Translations
frontend/src/i18n/translations.js - Flask app
backend/app/__init__.py - Authentication
backend/app/routes/auth.py - JWT and role checks
backend/app/utils/auth.py - Feature API routes
backend/app/routes - Database access
backend/app/utils/db.py - MySQL database
- Email delivery
backend/app/services/mailer.py - Google Sign-In
backend/app/services/google_auth.py
Other components
- Portal user
Connections 35
- Portal user → Role-based app: uses
frontend/src/App.jsx - Role-based app → Patient portal: routes to
frontend/src/App.jsx - Role-based app → Receptionist portal: routes to
frontend/src/App.jsx - Role-based app → Doctor portal: routes to
frontend/src/App.jsx - Role-based app → Admin portal: routes to
frontend/src/App.jsx - Patient portal → API client: requests through
frontend/src/pages/patient/FindClinics.jsx - Receptionist portal → API client: requests through
frontend/src/pages/receptionist/Billing.jsx - Doctor portal → API client: requests through
frontend/src/pages/doctor/Appointments.jsx - Admin portal → API client: requests through
frontend/src/pages/admin/Applications.jsx - Role-based app → Session context: provides session
frontend/src/App.jsx - Shared dashboard → API client: requests through
frontend/src/layouts/DashboardLayout.jsx - Shared dashboard → Language context: uses
frontend/src/layouts/DashboardLayout.jsx - Language context → Translations: looks up
frontend/src/context/LanguageContext.jsx - Session context → API client: calls
frontend/src/context/AuthContext.jsx - API client → Flask app: sends API requests
- Flask app → Authentication: registers
backend/app/__init__.py - Flask app → Feature API routes: registers
backend/app/__init__.py - Authentication → JWT and role checks: requires authentication
backend/app/routes/auth.py - JWT and role checks → Database access: checks token validity
backend/app/utils/auth.py - Database access → MySQL database: queries
backend/app/utils/db.py - Appointments and slots → Queue and waitlist: uses waitlist
backend/app/routes/appointments.py - Appointments and slots → Patient care records: uses checklist
backend/app/routes/appointments.py - Admin and analytics → Matching and forecasting: uses matching services
backend/app/routes/admin.py - Admin and analytics → Admin analytics and alerts: supports analytics and alerts
- Patient portal → Clinic discovery: finds clinics
- Patient portal → Appointments and slots: books appointments
- Receptionist portal → Appointments and slots: reviews requests
- Receptionist portal → Queue and waitlist: manages queue
- Doctor portal → Consultation and prescriptions: records consultation
- Receptionist portal → Billing and insurance: creates invoices
- Patient portal → Billing and insurance: pays and views receipts
- Patient portal → Patient care records: uses care features
- Admin portal → Admin and analytics: manages clinic system
- Authentication → Google Sign-In: supports sign-in
backend/app/routes/auth.py - Authentication → Email delivery: uses email service
backend/app/routes/auth.py