How kacperkicior/healthcare-webapp works
This is a patient appointment and clinic administration web app. Patients register with personal and medical details, then request an appointment; administrators use an OTP-gated dashboard to review requests and schedule or cancel visits, triggering SMS notifications. The graph separates patient intake, appointment handling, and administration, with Appwrite and SMS services as external dependencies. Relationships reflect the supplied source excerpts, SOURCE INDEX references, or README; unsampled internals are not inferred.
Main entry points: appointment.actions.ts Appointment actions · page.tsx Admin dashboard · patient.actions.ts Patient actions · RegisterForm.tsx Patient registration
Components 22
Web entry points
- Home page
app/page.tsx - Registration page
app/patients/[userId]/register/page.tsx - Appointment page
app/patients/[userId]/new-appointment/page.tsx - Confirmation page
app/patients/[userId]/new-appointment/success/page.tsx - Admin dashboard
app/admin/page.tsx
Patient intake
- Patient registration
components/forms/RegisterForm.tsx - Patient details
components/forms/PatientForm.tsx - Patient actions
lib/actions/patient.actions.ts - ID document upload
components/FileUploader.tsx - Patient database
- Form validation
lib/validation.ts
Appointments
- Appointment form
components/forms/AppointmentForm.tsx - Appointment actions
lib/actions/appointment.actions.ts - Appointments database
Administration and UI
- OTP gate
components/PasskeyModal.tsx - Appointment table
components/table/DataTable.tsx - Appointment actions UI
components/table/columns.tsx - Schedule or cancel
components/AppointmentModal.tsx
Other components
- Patient
- Administrator
- Appwrite services
- SMS notifications
Connections 27
- Patient → Home page: opens
app/page.tsx - Home page → Patient details: renders
app/page.tsx - Home page → OTP gate: opens
app/page.tsx - Patient → Registration page: opens
app/patients/[userId]/register/page.tsx - Registration page → Patient registration: renders
app/patients/[userId]/register/page.tsx - Patient registration → Patient actions: registers patient
components/forms/RegisterForm.tsx - Patient registration → ID document upload: uses
components/forms/RegisterForm.tsx - Patient registration → Form validation: validates with
lib/validation.ts - Patient details → Patient actions: saves details
components/forms/PatientForm.tsx - Appointment page → Patient details: renders
app/patients/[userId]/new-appointment/page.tsx - Appointment page → Appointment form: renders
app/patients/[userId]/new-appointment/page.tsx - Appointment form → Form validation: validates with
components/forms/AppointmentForm.tsx - Appointment form → Appointment actions: creates or updates
components/forms/AppointmentForm.tsx - Confirmation page → Appointment actions: loads appointment
app/patients/[userId]/new-appointment/success/page.tsx - Administrator → Admin dashboard: opens
README.md - Admin dashboard → OTP gate: requires OTP
- Admin dashboard → Appointment actions: loads appointments
app/admin/page.tsx - Admin dashboard → Appointment table: renders
app/admin/page.tsx - Admin dashboard → Appointment actions UI: configures
app/admin/page.tsx - Appointment actions UI → Schedule or cancel: opens
components/table/columns.tsx - Schedule or cancel → Appointment form: renders
components/AppointmentModal.tsx - Appointment actions → Appointments database: reads and writes
lib/actions/appointment.actions.ts - Patient actions → Patient database: reads and writes
lib/actions/patient.actions.ts - Appointment actions → Appwrite services: uses
lib/actions/appointment.actions.ts - Patient actions → Appwrite services: uses
lib/actions/patient.actions.ts - Appointment actions → Patient actions: gets patient
lib/actions/appointment.actions.ts - Appointment actions → SMS notifications: sends notification
lib/actions/appointment.actions.ts