How aakxsh706/freelance-dental works
Belin’s Dental Clinic combines a public dental website and online appointment requests with a staff-only clinic management app, backed by one Django REST API and shared database. The main workflow is patient booking → appointment request and cautious patient matching → staff review and scheduling → clinical visit and records. The graph also includes availability management, notifications, audit, clinic settings, and the documented patient contact-sheet sync. Some backend routes and frontend pages were not sampled; those links are shown only where the README or source index supports them.
Main entry points: models Central database · clinic Clinic app · scheduling.py Scheduling views · appointment_actions.py Appointment actions
Components 20
Public website
- App routes
frontend/src/App.tsx - Public website
frontend/src/pages/HomePage.tsx - Booking flow
frontend/src/pages/AppointmentSchedulePage.tsx
Clinic management
- Clinic app
frontend/src/pages/clinic - Availability manager
frontend/src/components/dashboard/AvailabilityManager.tsx - API client
frontend/src/api/client.ts
Django API
- API routing
backend/clinic/urls.py - Scheduling views
backend/clinic/views/scheduling.py - Appointment actions
backend/clinic/views/appointment_actions.py - Patient management
backend/clinic/views/patients.py - Clinical records API
backend/clinic/views/clinical.py
Clinic records
- Slot availability
backend/clinic/availability.py - Patient matching
backend/clinic/matching.py - Email notifications
backend/clinic/notifications.py - Audit trail
backend/clinic/audit.py - Central database
backend/clinic/models
External services
- Patient sheet sync
backend/clinic/sheet_sync.py
Other components
- Patient
- Clinic staff
- Google Sheet
Connections 23
- Patient → Public website: views
- Public website → Booking flow: starts booking
frontend/src/App.tsx - Patient → Booking flow: requests visit
- Booking flow → API client: submits request
- Clinic app → API client: uses API
frontend/src/pages/clinic/VisitDetailPage.tsx - Availability manager → API client: loads and changes
frontend/src/components/dashboard/AvailabilityManager.tsx - API client → API routing: sends requests
- API routing → Scheduling views: routes requests
- Scheduling views → Slot availability: checks slots
- Scheduling views → Patient matching: resolves patient
- Scheduling views → Central database: creates request
- Patient matching → Central database: finds patient
backend/clinic/matching.py - Clinic staff → Clinic app: manages clinic
- Clinic app → Appointment actions: manages appointments
- Appointment actions → Central database: updates appointments
backend/clinic/views/appointment_actions.py - Appointment actions → Email notifications: sends email
backend/clinic/views/appointment_actions.py - Appointment actions → Audit trail: records events
backend/clinic/views/appointment_actions.py - Clinic app → Patient management: manages patients
- Clinic app → Clinical records API: manages clinical records
- Patient management → Central database: reads and writes
- Clinical records API → Central database: reads and writes
- Patient sheet sync → Central database: reads contacts
- Patient sheet sync → Google Sheet: pushes contacts