How a-dot614/clinic works
Clinic is a multi-branch clinic-management system with staff and patient-facing workflows. Users enter through the React application; its API client communicates with Laravel endpoints, which expose clinical, administrative and operational capabilities backed by application models and a database. Major branches include patient care, scheduling and telehealth, pharmacy and billing, CRM, reporting, and patient self-service. The tree and excerpts support the application boundaries and capabilities, but do not establish most controller-to-service wiring, so those internal links are intentionally generalized.
Main entry points: Api API Controllers · api.ts API Client · App.tsx Clinic Web App · views Workflows and Views
Components 24
Access and Portals
- Clinic Web App
frontend_react/src/App.tsx - Workflows and Views
frontend_react/src/views - API Client
frontend_react/src/services/api.ts - Public Booking
frontend_react/src/views/public - Patient Portal
frontend_react/src/views/PatientPortalView.tsx
Clinical Care
- Patient Records
backend_laravel/app/Http/Controllers/Api/PatientController.php - Appointments and Queue
backend_laravel/app/Http/Controllers/Api/AppointmentController.php - Encounters and CDSS
backend_laravel/app/Http/Controllers/Api/EncounterController.php - Lab and Documents
backend_laravel/app/Http/Controllers/Api/LabOrderController.php - Prescribing and Dispensing
backend_laravel/app/Http/Controllers/Api/PrescriptionController.php - Telehealth
backend_laravel/app/Http/Controllers/Api/TelehealthController.php
Clinic Operations
- Invoices and Claims
backend_laravel/app/Http/Controllers/Api/InvoiceController.php - Purchasing and Inventory
backend_laravel/app/Http/Controllers/Api/InventoryController.php - Leads and Follow-ups
backend_laravel/app/Http/Controllers/Api/LeadController.php - Reports and Analytics
backend_laravel/app/Http/Controllers/Api/ReportController.php
Application Platform
- API Routes
backend_laravel/routes/api.php - API Controllers
backend_laravel/app/Http/Controllers/Api - Domain Models
backend_laravel/app/Models - Application Database
backend_laravel/config/database.php - Identity and Roles
backend_laravel/app/Http/Controllers/Api/AuthController.php - Notifications
backend_laravel/app/Services/NotificationService.php
Other components
- Staff and Patients
- Payment Provider
- Messaging Provider
Connections 23
- Staff and Patients → Clinic Web App: use
- Clinic Web App → Workflows and Views: routes to
- Workflows and Views → API Client: requests
- Public Booking → API Client: requests
- Patient Portal → API Client: requests
- API Client → API Routes: sends API calls
- API Routes → API Controllers: dispatches
- API Controllers → Identity and Roles: handles access
- API Controllers → Patient Records: handles records
- API Controllers → Appointments and Queue: handles scheduling
- API Controllers → Encounters and CDSS: handles care
- API Controllers → Lab and Documents: handles lab orders
- API Controllers → Prescribing and Dispensing: handles medication
- API Controllers → Telehealth: handles sessions
- API Controllers → Invoices and Claims: handles billing
- API Controllers → Purchasing and Inventory: handles stock
- API Controllers → Leads and Follow-ups: handles leads
- API Controllers → Reports and Analytics: serves reports
- API Controllers → Domain Models: reads and writes
- Domain Models → Application Database: persists
- API Controllers → Notifications: notification features
- Invoices and Claims → Payment Provider: payment integration
- Notifications → Messaging Provider: delivery integration