How mohammed2592002/clincsys-ar-en works
This is a dental-clinic management application, with a platform-owner administration area. The main user journey runs through the application shell and clinic login into patient, appointment, treatment, prescription, laboratory, and financial workspaces, with clinic data persisted through a database client. The graph preserves these major product areas and the offline, backup, and administration layers indicated by the source index. Some screens were not sampled, so their internal call paths are omitted; dashed edges mark only unverified integration points.
Main entry points: dbClient.ts Database client · App.tsx Application shell · ClinicSettings.tsx Clinic settings · ClinicFinancials.tsx Clinic financials
Components 23
Clinical workflows
- Patient records
src/components/PatientsManager.tsx - Medical files
src/components/PatientMedicalFile.tsx - Dental charting
src/components/DentalChart.tsx - Consultations
src/components/ConsultationView.tsx - Prescriptions
src/components/PrescriptionGenerator.tsx
Clinic operations
- Appointments
src/components/InteractiveCalendar.tsx - Reception desk
src/components/ReceptionDeskView.tsx - Clinic financials
src/components/ClinicFinancials.tsx - Patient financials
src/components/PatientFinancialsModal.tsx - Lab tracking
src/components/LabTrackingView.tsx - Pharmacy inventory
src/components/PharmacyView.tsx
Platform and administration
- Application shell
src/App.tsx - Clinic login
src/components/LoginScreen.tsx - Clinic settings
src/components/ClinicSettings.tsx - Platform administration
src/components/SuperAdminDashboard.tsx
Persistence and support
- Database client
src/dbClient.ts - Offline database
src/utils/offlineDb.ts - Safe local storage
src/utils/storage.ts - Dental data service
src/services/dentalService.ts - Backup service
src/utils/backupService.ts - Backup reminder
src/components/DailyBackupReminderBanner.tsx - File storage integration
src/utils/r2Upload.ts
Other components
- Clinic user
Connections 31
- Clinic user → Application shell: uses
src/App.tsx - Application shell → Clinic login: presents
src/App.tsx - Application shell → Patient records: routes to
src/App.tsx - Application shell → Medical files: routes to
src/App.tsx - Application shell → Appointments: routes to
src/App.tsx - Application shell → Prescriptions: routes to
src/App.tsx - Application shell → Clinic financials: routes to
src/App.tsx - Application shell → Lab tracking: routes to
src/App.tsx - Application shell → Clinic settings: routes to
src/App.tsx - Application shell → Platform administration: routes to
src/App.tsx - Patient records → Database client: reads and writes
src/components/PatientsManager.tsx - Appointments → Database client: uses
src/components/InteractiveCalendar.tsx - Clinic financials → Database client: uses
src/components/ClinicFinancials.tsx - Clinic financials → Patient financials: opens
src/components/ClinicFinancials.tsx - Lab tracking → Dental data service: uses
src/components/LabTrackingView.tsx - Dental data service → Database client: reads and writes
src/services/dentalService.ts - Clinic settings → Database client: uses
src/components/ClinicSettings.tsx - Clinic settings → Backup service: uses
src/components/ClinicSettings.tsx - Backup reminder → Backup service: invokes
src/components/DailyBackupReminderBanner.tsx - Backup service → Database client: reads clinic data
src/utils/backupService.ts - Database client → Offline database: uses
src/dbClient.ts - Database client → File storage integration: uploads files
src/dbClient.ts - Offline database → Safe local storage: uses
src/utils/offlineDb.ts - Clinic settings → Safe local storage: persists settings
src/components/ClinicSettings.tsx - Medical files → Database client: uses
- Dental charting → Database client: uses
- Consultations → Database client: uses
- Prescriptions → Database client: uses
- Reception desk → Database client: uses
- Pharmacy inventory → Database client: uses
- Platform administration → Database client: uses