How adrianhajdin/healthcare works
This is a Next.js healthcare patient-management application. Patients submit a profile, then request appointments; administrators review appointments and can schedule or cancel them, with SMS confirmation documented as a capability. The graph separates patient workflows, administration, backend services, and shared form components. Sampled source confirms form-to-action calls and Appwrite operations; some admin actions and SMS wiring are represented from README documentation, not inspected implementation.
Main entry points: RegisterForm.tsx Patient registration · AppointmentForm.tsx Appointment request · appointment.actions.ts Appointment operations · page.tsx Admin dashboard
Components 21
Patient workflows
- Patient entry
app/page.tsx - Profile page
app/patients/[userId]/register/page.tsx - Patient registration
components/forms/RegisterForm.tsx - Booking page
app/patients/[userId]/new-appointment/page.tsx - Appointment request
components/forms/AppointmentForm.tsx - Booking confirmation
app/patients/[userId]/new-appointment/success/page.tsx
Appointment administration
- Admin dashboard
app/admin/page.tsx - Appointment table
components/table/DataTable.tsx - Appointment actions
components/table/columns.tsx - Schedule or cancel
components/AppointmentModal.tsx
Backend services
- Patient operations
lib/actions/patient.actions.ts - Appointment operations
lib/actions/appointment.actions.ts - Appwrite client setup
lib/appwrite.config.ts - Appwrite services
- SMS provider
- Sentry monitoring
sentry.client.config.ts
Shared components
- Form validation
lib/validation.ts - Form field renderer
components/CustomFormField.tsx - Identification upload
components/FileUploader.tsx
Other components
- Patient
- Administrator
Connections 25
- Patient → Patient entry: starts registration
README.md - Patient entry → Patient registration: renders
app/page.tsx - Profile page → Patient registration: renders
app/patients/[userId]/register/page.tsx - Patient registration → Patient operations: registers patient
components/forms/RegisterForm.tsx - Patient registration → Form validation: validates with
components/forms/RegisterForm.tsx - Patient registration → Form field renderer: renders fields
components/forms/RegisterForm.tsx - Patient registration → Identification upload: uploads document
components/forms/RegisterForm.tsx - Patient operations → Appwrite client setup: uses client
lib/actions/patient.actions.ts - Patient operations → Appwrite services: stores profiles and files
lib/actions/patient.actions.ts - Booking page → Appointment request: renders
app/patients/[userId]/new-appointment/page.tsx - Appointment request → Appointment operations: creates or updates
components/forms/AppointmentForm.tsx - Appointment request → Form validation: validates with
components/forms/AppointmentForm.tsx - Appointment request → Form field renderer: renders fields
components/forms/AppointmentForm.tsx - Appointment operations → Appwrite client setup: uses client
lib/actions/appointment.actions.ts - Appointment operations → Appwrite services: reads and writes appointments
lib/actions/appointment.actions.ts - Appointment request → Booking confirmation: routes after booking
components/forms/AppointmentForm.tsx - Administrator → Admin dashboard: manages appointments
README.md - Admin dashboard → Appointment table: renders
app/admin/page.tsx - Admin dashboard → Appointment operations: loads appointments
app/admin/page.tsx - Appointment table → Appointment actions: uses columns
components/table/columns.tsx - Appointment actions → Schedule or cancel: opens editor
components/table/columns.tsx - Schedule or cancel → Appointment request: renders editor
components/AppointmentModal.tsx - Schedule or cancel → Appointment operations: schedules or cancels
README.md - Appointment operations → SMS provider: sends confirmation
README.md - Patient → Sentry monitoring: app monitored
README.md