# karenads/gerenciador-fisio architecture

> Architecture diagram of the GitHub repository karenads/gerenciador-fisio, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-01). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/karenads/gerenciador-fisio
- Repository: https://github.com/karenads/gerenciador-fisio

## Overview

FisioCare is a physiotherapy-management application with a Next.js frontend and Spring Boot backend. Users sign in, enter the shared system interface, and manage patients, treatments, sessions, and users; session and user forms visibly submit changes to backend endpoints. The tree also shows password recovery and corresponding backend modules. Backend internals and most frontend data flows were not excerpted, so their relationships are omitted rather than inferred.

Main entry points: [`front/app/components/Sidebar.tsx`](https://github.com/karenads/gerenciador-fisio/blob/main/front/app/components/Sidebar.tsx) (Navigation), [`front/app/(sistema)/layout.tsx`](https://github.com/karenads/gerenciador-fisio/blob/main/front/app/(sistema)/layout.tsx) (System layout), [`front/app/login/page.tsx`](https://github.com/karenads/gerenciador-fisio/blob/main/front/app/login/page.tsx) (Sign in), [`front/app/recuperar-senha/page.tsx`](https://github.com/karenads/gerenciador-fisio/blob/main/front/app/recuperar-senha/page.tsx) (Password recovery)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_access["Access and shell"]
  node_login["Sign in<br/>[page.tsx]"]
  node_auth_types["Auth types<br/>[auth.ts]"]
  node_system_layout["System layout<br/>[layout.tsx]"]
  node_sidebar["Navigation<br/>[Sidebar.tsx]"]
  node_header["Header / logout<br/>[Header.tsx]"]
  node_footer["Footer<br/>[Footer.tsx]"]
  node_password_recovery["Password recovery<br/>[page.tsx]"]
  node_password_reset["Password reset<br/>[page.tsx]"]
end

subgraph group_clinical["Clinical management"]
  node_home["Dashboard<br/>[page.tsx]"]
  node_patients["Patient management<br/>[page.tsx]"]
  node_treatments["Treatment management<br/>[page.tsx]"]
  node_sessions["Session management<br/>[page.tsx]"]
  node_session_form["Session form<br/>[SessaoForm.tsx]"]
  node_session_types["Session types<br/>[sessao.ts]"]
end

subgraph group_people["User management"]
  node_users["User management<br/>[page.tsx]"]
  node_user_form["User form<br/>[UsuarioForm.tsx]"]
  node_user_types["User types<br/>[usuario.ts]"]
end

subgraph group_backend["Backend modules"]
  node_auth_controller["Authentication API"]
  node_patient_controller["Patient API"]
  node_treatment_controller["Treatment API"]
  node_session_controller["Session API"]
  node_user_controller["User API"]
  node_reset_service["Password reset service"]
end

node_user(("User"))

node_user -->|"signs in"| node_login
node_login -->|"posts credentials"| node_auth_controller
node_login -->|"uses response type"| node_auth_types
node_user -.->|"uses system"| node_system_layout
node_system_layout -->|"renders"| node_sidebar
node_system_layout -->|"renders"| node_header
node_system_layout -->|"renders"| node_footer
node_sidebar -->|"links to"| node_home
node_sidebar -->|"links to"| node_patients
node_sidebar -->|"links to"| node_treatments
node_sidebar -->|"links to"| node_sessions
node_sidebar -->|"links to"| node_users
node_sessions -.->|"offers creation"| node_session_form
node_session_form -->|"uses data type"| node_session_types
node_session_form -->|"posts or updates"| node_session_controller
node_users -.->|"offers creation"| node_user_form
node_user_form -->|"uses data type"| node_user_types
node_user_form -->|"posts or updates"| node_user_controller
node_user -.->|"requests recovery"| node_password_recovery
node_password_recovery -.->|"continues reset"| node_password_reset
node_password_recovery -.->|"requests reset"| node_reset_service
node_patients -.->|"uses API"| node_patient_controller
node_treatments -.->|"uses API"| node_treatment_controller

click node_login "https://github.com/karenads/gerenciador-fisio/blob/main/front/app/login/page.tsx"
click node_auth_types "https://github.com/karenads/gerenciador-fisio/blob/main/front/app/types/auth.ts"
click node_system_layout "https://github.com/karenads/gerenciador-fisio/blob/main/front/app/(sistema)/layout.tsx"
click node_sidebar "https://github.com/karenads/gerenciador-fisio/blob/main/front/app/components/Sidebar.tsx"
click node_header "https://github.com/karenads/gerenciador-fisio/blob/main/front/app/components/Header.tsx"
click node_footer "https://github.com/karenads/gerenciador-fisio/blob/main/front/app/components/Footer.tsx"
click node_home "https://github.com/karenads/gerenciador-fisio/blob/main/front/app/(sistema)/home/page.tsx"
click node_patients "https://github.com/karenads/gerenciador-fisio/blob/main/front/app/(sistema)/pacientes/page.tsx"
click node_treatments "https://github.com/karenads/gerenciador-fisio/blob/main/front/app/(sistema)/tratamentos/page.tsx"
click node_sessions "https://github.com/karenads/gerenciador-fisio/blob/main/front/app/(sistema)/sessoes/page.tsx"
click node_session_form "https://github.com/karenads/gerenciador-fisio/blob/main/front/app/(sistema)/sessoes/components/SessaoForm.tsx"
click node_session_types "https://github.com/karenads/gerenciador-fisio/blob/main/front/app/types/sessao.ts"
click node_password_recovery "https://github.com/karenads/gerenciador-fisio/blob/main/front/app/recuperar-senha/page.tsx"
click node_password_reset "https://github.com/karenads/gerenciador-fisio/blob/main/front/app/redefinir-senha/page.tsx"
click node_users "https://github.com/karenads/gerenciador-fisio/blob/main/front/app/(sistema)/usuarios/page.tsx"
click node_user_form "https://github.com/karenads/gerenciador-fisio/blob/main/front/app/(sistema)/usuarios/components/UsuarioForm.tsx"
click node_user_types "https://github.com/karenads/gerenciador-fisio/blob/main/front/app/types/usuario.ts"
click node_auth_controller "https://github.com/karenads/gerenciador-fisio/blob/main/src/main/java/com/example/gerenciadorfisio/controllers/AuthController.java"
click node_patient_controller "https://github.com/karenads/gerenciador-fisio/blob/main/src/main/java/com/example/gerenciadorfisio/controllers/PacienteController.java"
click node_treatment_controller "https://github.com/karenads/gerenciador-fisio/blob/main/src/main/java/com/example/gerenciadorfisio/controllers/TratamentoController.java"
click node_session_controller "https://github.com/karenads/gerenciador-fisio/blob/main/src/main/java/com/example/gerenciadorfisio/controllers/SessaoController.java"
click node_user_controller "https://github.com/karenads/gerenciador-fisio/blob/main/src/main/java/com/example/gerenciadorfisio/controllers/UsuarioController.java"
click node_reset_service "https://github.com/karenads/gerenciador-fisio/blob/main/src/main/java/com/example/gerenciadorfisio/services/PasswordResetService.java"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_login,node_auth_types,node_system_layout,node_sidebar,node_header,node_footer,node_password_recovery,node_password_reset,node_user toneBlue
class node_home,node_patients,node_treatments,node_sessions,node_session_form,node_session_types toneAmber
class node_users,node_user_form,node_user_types toneMint
class node_auth_controller,node_patient_controller,node_treatment_controller,node_session_controller,node_user_controller,node_reset_service toneRose
```

## Components

### Access and shell

- [Sign in](https://github.com/karenads/gerenciador-fisio/blob/main/front/app/login/page.tsx): `front/app/login/page.tsx`
- [Auth types](https://github.com/karenads/gerenciador-fisio/blob/main/front/app/types/auth.ts): `front/app/types/auth.ts`
- [System layout](https://github.com/karenads/gerenciador-fisio/blob/main/front/app/(sistema)/layout.tsx): `front/app/(sistema)/layout.tsx`
- [Navigation](https://github.com/karenads/gerenciador-fisio/blob/main/front/app/components/Sidebar.tsx): `front/app/components/Sidebar.tsx`
- [Header / logout](https://github.com/karenads/gerenciador-fisio/blob/main/front/app/components/Header.tsx): `front/app/components/Header.tsx`
- [Footer](https://github.com/karenads/gerenciador-fisio/blob/main/front/app/components/Footer.tsx): `front/app/components/Footer.tsx`
- [Password recovery](https://github.com/karenads/gerenciador-fisio/blob/main/front/app/recuperar-senha/page.tsx): `front/app/recuperar-senha/page.tsx`
- [Password reset](https://github.com/karenads/gerenciador-fisio/blob/main/front/app/redefinir-senha/page.tsx): `front/app/redefinir-senha/page.tsx`

### Clinical management

- [Dashboard](https://github.com/karenads/gerenciador-fisio/blob/main/front/app/(sistema)/home/page.tsx): `front/app/(sistema)/home/page.tsx`
- [Patient management](https://github.com/karenads/gerenciador-fisio/blob/main/front/app/(sistema)/pacientes/page.tsx): `front/app/(sistema)/pacientes/page.tsx`
- [Treatment management](https://github.com/karenads/gerenciador-fisio/blob/main/front/app/(sistema)/tratamentos/page.tsx): `front/app/(sistema)/tratamentos/page.tsx`
- [Session management](https://github.com/karenads/gerenciador-fisio/blob/main/front/app/(sistema)/sessoes/page.tsx): `front/app/(sistema)/sessoes/page.tsx`
- [Session form](https://github.com/karenads/gerenciador-fisio/blob/main/front/app/(sistema)/sessoes/components/SessaoForm.tsx): `front/app/(sistema)/sessoes/components/SessaoForm.tsx`
- [Session types](https://github.com/karenads/gerenciador-fisio/blob/main/front/app/types/sessao.ts): `front/app/types/sessao.ts`

### User management

- [User management](https://github.com/karenads/gerenciador-fisio/blob/main/front/app/(sistema)/usuarios/page.tsx): `front/app/(sistema)/usuarios/page.tsx`
- [User form](https://github.com/karenads/gerenciador-fisio/blob/main/front/app/(sistema)/usuarios/components/UsuarioForm.tsx): `front/app/(sistema)/usuarios/components/UsuarioForm.tsx`
- [User types](https://github.com/karenads/gerenciador-fisio/blob/main/front/app/types/usuario.ts): `front/app/types/usuario.ts`

### Backend modules

- [Authentication API](https://github.com/karenads/gerenciador-fisio/blob/main/src/main/java/com/example/gerenciadorfisio/controllers/AuthController.java): `src/main/java/com/example/gerenciadorfisio/controllers/AuthController.java`
- [Patient API](https://github.com/karenads/gerenciador-fisio/blob/main/src/main/java/com/example/gerenciadorfisio/controllers/PacienteController.java): `src/main/java/com/example/gerenciadorfisio/controllers/PacienteController.java`
- [Treatment API](https://github.com/karenads/gerenciador-fisio/blob/main/src/main/java/com/example/gerenciadorfisio/controllers/TratamentoController.java): `src/main/java/com/example/gerenciadorfisio/controllers/TratamentoController.java`
- [Session API](https://github.com/karenads/gerenciador-fisio/blob/main/src/main/java/com/example/gerenciadorfisio/controllers/SessaoController.java): `src/main/java/com/example/gerenciadorfisio/controllers/SessaoController.java`
- [User API](https://github.com/karenads/gerenciador-fisio/blob/main/src/main/java/com/example/gerenciadorfisio/controllers/UsuarioController.java): `src/main/java/com/example/gerenciadorfisio/controllers/UsuarioController.java`
- [Password reset service](https://github.com/karenads/gerenciador-fisio/blob/main/src/main/java/com/example/gerenciadorfisio/services/PasswordResetService.java): `src/main/java/com/example/gerenciadorfisio/services/PasswordResetService.java`

### Other components

- **User**

## Connections

- User → Sign in: signs in (evidence: `front/app/login/page.tsx`)
- Sign in → Authentication API: posts credentials (evidence: `front/app/login/page.tsx`)
- Sign in → Auth types: uses response type (evidence: `front/app/login/page.tsx`)
- User → System layout: uses system
- System layout → Navigation: renders (evidence: `front/app/(sistema)/layout.tsx`)
- System layout → Header / logout: renders (evidence: `front/app/(sistema)/layout.tsx`)
- System layout → Footer: renders (evidence: `front/app/(sistema)/layout.tsx`)
- Navigation → Dashboard: links to (evidence: `front/app/components/Sidebar.tsx`)
- Navigation → Patient management: links to (evidence: `front/app/components/Sidebar.tsx`)
- Navigation → Treatment management: links to (evidence: `front/app/components/Sidebar.tsx`)
- Navigation → Session management: links to (evidence: `front/app/components/Sidebar.tsx`)
- Navigation → User management: links to (evidence: `front/app/components/Sidebar.tsx`)
- Session management → Session form: offers creation
- Session form → Session types: uses data type (evidence: `front/app/(sistema)/sessoes/components/SessaoForm.tsx`)
- Session form → Session API: posts or updates (evidence: `front/app/(sistema)/sessoes/components/SessaoForm.tsx`)
- User management → User form: offers creation
- User form → User types: uses data type (evidence: `front/app/(sistema)/usuarios/components/UsuarioForm.tsx`)
- User form → User API: posts or updates (evidence: `front/app/(sistema)/usuarios/components/UsuarioForm.tsx`)
- User → Password recovery: requests recovery
- Password recovery → Password reset: continues reset
- Password recovery → Password reset service: requests reset
- Patient management → Patient API: uses API
- Treatment management → Treatment API: uses API
