How briantz79/appointmed works
AppointMed is a role-based clinic appointment-management frontend for receptionists, doctors, patients, and administrators. Users enter through public login or registration, then use role-protected screens for scheduling and managing appointments, patient records, doctor availability and follow-ups, and clinic administration and reports. Screens access backend operations through shared API services and a central HTTP client; the README also notes that simulated data can be used without a backend. Several feature modules are represented by their exact directories because their source was not sampled.
Main entry points: router.jsx Role-based routes · services API services · App.jsx App bootstrap · AgendaPage.jsx Reception agenda
Components 23
Application Shell
- App bootstrap
src/App.jsx - Role-based routes
src/router.jsx - API services
src/api/services - HTTP client
src/api/client.js
Scheduling and Care
- Reception agenda
src/pages/reception/AgendaPage.jsx - Create appointment
src/pages/reception/NewAppointmentPage.jsx - Appointment booking dialog
src/components/appointments/AppointmentDialog.jsx - Available-slot picker
src/components/agenda/SlotPicker.jsx - Pending appointments
src/components/reception/PendingAppointmentsSection.jsx - Doctor agenda
src/pages/doctor/DoctorAgendaPage.jsx - Doctor schedule
src/pages/doctor/SchedulePage.jsx - Follow-up requests
src/pages/doctor/FollowUpPage.jsx - Patient appointments
src/pages/patient/MyAppointmentsPage.jsx
People and Access
- Session and roles
src/auth/AuthProvider.jsx - Role guard
src/auth/RequireRole.jsx - Patient profile and history
src/pages/patient - Patient records
src/pages/reception/PatientsPage.jsx - Login and registration
src/pages/public
Clinic Administration
- Staff management
src/pages/admin/StaffPage.jsx - Specialties
src/pages/admin/SpecialtiesPage.jsx - Reports
src/pages/admin/ReportsPage.jsx
Other components
- Clinic user
- Backend API
Connections 24
- Clinic user → App bootstrap: opens
src/App.jsx - App bootstrap → Session and roles: provides session
src/App.jsx - App bootstrap → Role-based routes: mounts routes
src/App.jsx - Role-based routes → Role guard: protects panels
src/router.jsx - Role-based routes → Reception agenda: routes to
src/router.jsx - Role-based routes → Create appointment: routes to
src/router.jsx - Role-based routes → Doctor agenda: routes to
src/router.jsx - Role-based routes → Doctor schedule: routes to
src/router.jsx - Role-based routes → Follow-up requests: routes to
src/router.jsx - Role-based routes → Patient appointments: routes to
src/router.jsx - Role-based routes → Patient profile and history: routes to
src/router.jsx - Role-based routes → Patient records: routes to
src/router.jsx - Role-based routes → Login and registration: routes to
src/router.jsx - Role-based routes → Staff management: routes to
src/router.jsx - Role-based routes → Specialties: routes to
src/router.jsx - Role-based routes → Reports: routes to
src/router.jsx - Reception agenda → API services: loads agenda data
src/pages/reception/AgendaPage.jsx - Reception agenda → Appointment booking dialog: opens details
src/pages/reception/AgendaPage.jsx - Create appointment → Available-slot picker: offers slots
src/pages/reception/NewAppointmentPage.jsx - Create appointment → API services: submits appointment
src/pages/reception/NewAppointmentPage.jsx - Doctor agenda → API services: loads schedule
src/pages/doctor/DoctorAgendaPage.jsx - Patient appointments → API services: loads appointments
src/pages/patient/MyAppointmentsPage.jsx - API services → HTTP client: uses HTTP client
src/api/services/index.js - HTTP client → Backend API: sends requests
src/api/client.js