How fatimaariv/consultorio-medico works
MediTrak is a role-based clinic-management mobile app. Users register or sign in, then the navigator presents patient, doctor, or administrator workflows; patients schedule and review appointments, doctors manage their agenda and consultations, and administrators manage clinic resources and reporting. Screens access Supabase directly or through service modules, while shared auth state supplies session and role information. The README is empty, so unsampled capabilities and their interactions are represented only where the source index identifies them; edges are limited to excerpted relationships or indexed references.
Main entry points: AppNavigator.tsx Role navigation · supabase.ts Supabase client · App.tsx App root · GestionarDoctores.tsx Doctor management
Components 30
App entry
- App root
App.tsx - Role navigation
src/navigation/AppNavigator.tsx - Supabase client
src/supabase/supabase.ts
Identity and access
- Auth state
src/context/AuthContext.tsx - Sign in
src/Pantallas/LoginScreen.tsx - Patient registration
src/Pantallas/RegisterScreen.tsx - Code verification
src/Pantallas/VerifyCodeScreen.tsx - Password recovery
src/Pantallas/ForgotPasswordScreen.tsx - Login service
src/services/authService.ts
Patient workflows
- Patient home
src/Pantallas/Pantallas Paciente/HomeScreen.tsx - Appointment scheduling
src/Pantallas/Pantallas Paciente/ScheduleScreen.tsx - Patient history
src/Pantallas/Pantallas Paciente/HistoryScreen.tsx - Patient profile
src/Pantallas/Pantallas Paciente/PatientProfile.tsx
Clinical workflows
- Doctor dashboard
src/Pantallas/Pantallas Doctor/DoctorHome.tsx - Doctor agenda
src/Pantallas/Pantallas Doctor/Agenda.tsx - Consultation record
src/Pantallas/Pantallas Doctor/Consulta.tsx - Appointment history
src/Pantallas/Pantallas Doctor/HistorialDeCitas.tsx - Doctor profile
src/Pantallas/Pantallas Doctor/PerfilDoc.tsx
Administration
- Admin dashboard
src/Pantallas/Pantallas Admi/AdmiHome.tsx - Appointment management
src/Pantallas/Pantallas Admi/GestionarCitas/GestionarCitas.tsx - Clinic rooms
src/Pantallas/Pantallas Admi/GestionarConsultorios/index.tsx - Room editor
src/Pantallas/Pantallas Admi/GestionarConsultorios/ConsultorioModal.tsx - Room service
src/services/consultoriosService.ts - User management
src/Pantallas/Pantallas Admi/GestionarUsuarios/GestionarUsuarios.tsx - Doctor management
src/Pantallas/Pantallas Admi/GestiónDoctores/GestionarDoctores.tsx - Doctor editor
src/Pantallas/Pantallas Admi/GestiónDoctores/Formulariodoctor.tsx - Doctor admin service
src/services/Doctoresadminservice.ts - Reports
src/Pantallas/Pantallas Admi/Reportes/Reportes.tsx
Other components
- App user
- Supabase data and auth
Connections 48
- App user → App root: opens
App.tsx - App root → Auth state: provides auth
App.tsx - App root → Role navigation: renders
App.tsx - Role navigation → Auth state: reads role
src/navigation/AppNavigator.tsx - Role navigation → Sign in: routes to
src/navigation/AppNavigator.tsx - Role navigation → Patient registration: routes to
src/navigation/AppNavigator.tsx - Role navigation → Code verification: routes to
src/navigation/AppNavigator.tsx - Role navigation → Password recovery: routes to
src/navigation/AppNavigator.tsx - Role navigation → Patient home: routes by role
src/navigation/AppNavigator.tsx - Role navigation → Appointment scheduling: routes by role
src/navigation/AppNavigator.tsx - Role navigation → Patient history: routes by role
src/navigation/AppNavigator.tsx - Role navigation → Patient profile: routes by role
src/navigation/AppNavigator.tsx - Role navigation → Doctor dashboard: routes by role
src/navigation/AppNavigator.tsx - Role navigation → Doctor agenda: routes by role
src/navigation/AppNavigator.tsx - Role navigation → Consultation record: routes by role
src/navigation/AppNavigator.tsx - Role navigation → Appointment history: routes by role
src/navigation/AppNavigator.tsx - Role navigation → Doctor profile: routes by role
src/navigation/AppNavigator.tsx - Role navigation → Admin dashboard: routes by role
src/navigation/AppNavigator.tsx - Role navigation → Appointment management: routes by role
src/navigation/AppNavigator.tsx - Role navigation → Clinic rooms: routes by role
src/navigation/AppNavigator.tsx - Role navigation → User management: routes by role
src/navigation/AppNavigator.tsx - Role navigation → Doctor management: routes by role
src/navigation/AppNavigator.tsx - Role navigation → Reports: routes by role
src/navigation/AppNavigator.tsx - Sign in → Login service: calls login
src/Pantallas/LoginScreen.tsx - Login service → Supabase client: authenticates and reads
src/services/authService.ts - Auth state → Supabase client: tracks auth
src/context/AuthContext.tsx - Patient registration → Supabase client: creates account
src/Pantallas/RegisterScreen.tsx - Clinic rooms → Room service: uses service
src/Pantallas/Pantallas Admi/GestionarConsultorios/index.tsx - Room editor → Room service: uses service
src/Pantallas/Pantallas Admi/GestionarConsultorios/ConsultorioModal.tsx - Doctor management → Doctor admin service: uses service
src/Pantallas/Pantallas Admi/GestiónDoctores/GestionarDoctores.tsx - Doctor management → Doctor editor: opens editor
src/Pantallas/Pantallas Admi/GestiónDoctores/GestionarDoctores.tsx - Room service → Supabase client: reads and writes
src/services/consultoriosService.ts - Doctor admin service → Supabase client: reads and writes
src/services/Doctoresadminservice.ts - Patient home → Supabase client: queries data
src/Pantallas/Pantallas Paciente/HomeScreen.tsx - Appointment scheduling → Supabase client: queries availability
src/Pantallas/Pantallas Paciente/ScheduleScreen.tsx - Patient history → Supabase client: queries history
src/Pantallas/Pantallas Paciente/HistoryScreen.tsx - Patient profile → Supabase client: queries profile
src/Pantallas/Pantallas Paciente/PatientProfile.tsx - Doctor dashboard → Supabase client: queries agenda
src/Pantallas/Pantallas Doctor/DoctorHome.tsx - Doctor agenda → Supabase client: queries appointments
src/Pantallas/Pantallas Doctor/Agenda.tsx - Consultation record → Supabase client: queries records
src/Pantallas/Pantallas Doctor/Consulta.tsx - Appointment history → Supabase client: queries history
src/Pantallas/Pantallas Doctor/HistorialDeCitas.tsx - Doctor profile → Supabase client: queries profile
src/Pantallas/Pantallas Doctor/PerfilDoc.tsx - Admin dashboard → Supabase client: queries data
src/Pantallas/Pantallas Admi/AdmiHome.tsx - Appointment management → Supabase client: queries appointments
src/Pantallas/Pantallas Admi/GestionarCitas/GestionarCitas.tsx - User management → Supabase client: queries users
src/Pantallas/Pantallas Admi/GestionarUsuarios/GestionarUsuarios.tsx - Doctor editor → Supabase client: queries data
src/Pantallas/Pantallas Admi/GestiónDoctores/Formulariodoctor.tsx - Reports → Supabase client: queries data
src/Pantallas/Pantallas Admi/Reportes/Reportes.tsx - Supabase client → Supabase data and auth: connects to