How spaurhu/axioma-centro-psicologico works
Axioma is a psychological-care clinic platform with public/patient and clinical-staff portals. Patients register, view packages and appointments; staff manage patients, therapists, package assignments, scheduling, attendance, and confidential SOAP-style evolutions. When a cita is created, the scheduling service checks availability and package balance, requests a no-show prediction, and persists the appointment. The map combines documented portal capabilities with sampled backend calls; frontend-to-API wiring and some unsampled module details are not shown, so those links are marked unverified.
Main entry points: api.ts API client · prisma.service.ts Prisma data access · citas.service.ts Scheduling and clinical records · auth.controller.ts Authentication routes
Components 23
Web portals
- Public landing
frontend/src/app/page.tsx - Sign-in
frontend/src/app/login/page.tsx - Patient registration
frontend/src/app/registro/page.tsx - Patient portal
frontend/src/app/paciente/page.tsx - Staff panel
frontend/src/app/panel/page.tsx - API client
frontend/src/lib/api.ts
Clinical operations
- Therapist management
backend/src/modulos/psicologos/psicologos.controller.ts - Patient directory
backend/src/modulos/pacientes/pacientes.controller.ts - Session packages
backend/src/modulos/paquetes/paquetes.controller.ts - Appointment and SOAP API
backend/src/modulos/citas/citas.controller.ts - Scheduling and clinical records
backend/src/modulos/citas/citas.service.ts - Therapist records
backend/src/modulos/psicologos/psicologos.service.ts - Patient records
backend/src/modulos/pacientes/pacientes.service.ts - Package assignment
backend/src/modulos/paquetes/paquetes.service.ts
Platform services
- Authentication routes
backend/src/modulos/auth/auth.controller.ts - Auth and registration
backend/src/modulos/auth/auth.service.ts - JWT and roles
backend/src/comun/jwt-auth.guard.ts - No-show inference
backend/src/modulos/ml/ml.service.ts - Model training
ml/entrenar_modelo.py
Data and prediction
- Prisma data access
backend/src/prisma/prisma.service.ts - PostgreSQL
Other components
- Visitor / patient
- Clinic staff
Connections 26
- Visitor / patient → Public landing: browses
README.md - Visitor / patient → Patient registration: registers
README.md - Visitor / patient → Sign-in: signs in
- Visitor / patient → Patient portal: manages care
README.md - Clinic staff → Staff panel: manages clinic
README.md - Public landing → API client: requests data
- Sign-in → API client: submits credentials
- Patient registration → API client: submits registration
- Patient portal → API client: uses API
- Staff panel → API client: uses API
- API client → Authentication routes: calls API
- API client → Appointment and SOAP API: calls API
- Authentication routes → Auth and registration: delegates to
backend/src/modulos/auth/auth.controller.ts - Auth and registration → Prisma data access: reads and writes
backend/src/modulos/auth/auth.service.ts - Authentication routes → JWT and roles: guards profile
backend/src/modulos/auth/auth.controller.ts - Therapist management → Therapist records: delegates to
backend/src/modulos/psicologos/psicologos.controller.ts - Therapist records → Prisma data access: reads and writes
backend/src/modulos/psicologos/psicologos.service.ts - Patient directory → Patient records: delegates to
backend/src/modulos/pacientes/pacientes.controller.ts - Patient records → Prisma data access: reads and writes
backend/src/modulos/pacientes/pacientes.service.ts - Session packages → Package assignment: delegates to
backend/src/modulos/paquetes/paquetes.controller.ts - Package assignment → Prisma data access: reads and writes
backend/src/modulos/paquetes/paquetes.service.ts - Appointment and SOAP API → Scheduling and clinical records: delegates to
backend/src/modulos/citas/citas.controller.ts - Scheduling and clinical records → Prisma data access: checks and persists
backend/src/modulos/citas/citas.service.ts - Scheduling and clinical records → No-show inference: requests prediction
backend/src/modulos/citas/citas.service.ts - Model training → No-show inference: provides model parameters
README.md - Prisma data access → PostgreSQL: persists data
README.md