How mnmryk/portalsalud-academia works
This is a React/TanStack Start demo template for an integrative-health portal. The main workflow is clinic staff signing in, managing patient records and consultations, then providing patients with educational courses and clinical resources. The README confirms patient management, an online academy, and a resource library; the route tree also documents portal, forms, billing, calendar, AI-assistant, and academy areas. Many feature files were not sampled, so those branches are represented at their exact paths without asserting unverified calls or persistence.
Main entry points: __root.tsx Application providers · routeTree.gen.ts Route system · Pacientes.tsx Patient records · Academia.tsx Academy
Components 21
Entry and identity
- Route system
src/routeTree.gen.ts - Sign-in
src/components/auth/LoginView.tsx - Authentication
src/context/AuthContext.tsx
Clinical management
- Patient records
src/components/dashboard/Pacientes.tsx - Record state
src/context/PatientRecordsContext.tsx - Consultations
src/context/ConsultationsContext.tsx - Calendar
src/components/dashboard/Calendario.tsx - Patient tasks
src/context/TasksContext.tsx - Patient forms
src/routes/formularios.index.tsx - Billing
src/components/dashboard/Facturacion.tsx
Learning and resources
- Academy
src/components/dashboard/Academia.tsx - Course state
src/context/AcademyContext.tsx - Academy community
src/components/dashboard/AcademiaComunidad.tsx - Clinical resources
src/components/dashboard/Recursos.tsx - Patient portal
src/components/dashboard/Portal.tsx
Shared platform
- AI assistant
src/components/dashboard/AsistenteIA.tsx - Chat endpoint
src/routes/api/chat.ts - Application providers
src/routes/__root.tsx - Supabase integration
src/integrations/supabase/client.ts
Other components
- Clinic staff
- Patient
Connections 24
- Clinic staff → Sign-in: signs in
- Patient → Sign-in: signs in
- Route system → Sign-in: routes to
- Route system → Patient records: routes to
- Clinic staff → Patient records: manages records
- Patient records → Record state: uses
src/components/dashboard/Pacientes.tsx - Clinic staff → Consultations: manages care
- Clinic staff → Calendar: schedules care
- Clinic staff → Patient tasks: tracks tasks
- Clinic staff → Patient forms: manages forms
- Clinic staff → Billing: manages billing
- Clinic staff → Academy: manages courses
- Patient → Academy: learns online
- Academy → Course state: uses course state
- Patient → Academy community: joins community
- Patient → Clinical resources: accesses resources
- Patient → Patient portal: uses portal
- Clinic staff → AI assistant: uses assistant
- AI assistant → Chat endpoint: calls
- Application providers → Authentication: provides context
src/routes/__root.tsx - Application providers → Record state: provides context
src/routes/__root.tsx - Application providers → Consultations: provides context
src/routes/__root.tsx - Application providers → Patient tasks: provides context
src/routes/__root.tsx - Route system → Application providers: includes root
src/routeTree.gen.ts