# youssef-fullstack/cabinet-_web architecture

> Architecture diagram of the GitHub repository youssef-fullstack/cabinet-_web, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-27). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/youssef-fullstack/cabinet-_web
- Repository: https://github.com/youssef-fullstack/cabinet-_web

## Overview

DentalClinic is a dental-practice management application with a React web/mobile client and an ASP.NET API. Clinic staff sign in, navigate operational views, and use API-backed patient, appointment, clinical-record, payment, team, audit, settings, and subscription workflows. The frontend API client also handles web-cookie versus native-token authentication. Backend endpoint-to-database and optional payment-provider wiring is not established by the excerpts; those relationships are therefore left unconnected. The web_v5_backup tree is a separate historical copy and is not mapped here.

Main entry points: [`VERSION DE LAPPLICATION/web/frontend/src/App.tsx`](https://github.com/youssef-fullstack/cabinet-_web/blob/main/VERSION%20DE%20LAPPLICATION/web/frontend/src/App.tsx) (App shell), [`VERSION DE LAPPLICATION/web/backend/DentalClinic.Api/Data/AppDbContext.cs`](https://github.com/youssef-fullstack/cabinet-_web/blob/main/VERSION%20DE%20LAPPLICATION/web/backend/DentalClinic.Api/Data/AppDbContext.cs) (Clinic data context), [`VERSION DE LAPPLICATION/web/frontend/src/api.ts`](https://github.com/youssef-fullstack/cabinet-_web/blob/main/VERSION%20DE%20LAPPLICATION/web/frontend/src/api.ts) (API client), [`VERSION DE LAPPLICATION/web/frontend/src/pages/Abonnement.tsx`](https://github.com/youssef-fullstack/cabinet-_web/blob/main/VERSION%20DE%20LAPPLICATION/web/frontend/src/pages/Abonnement.tsx) (Subscriptions)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_client["Client application"]
  node_app["App shell<br/>[App.tsx]"]
  node_api["API client<br/>[api.ts]"]
  node_billingdata["Billing models<br/>[billing.ts]"]
  node_avatar["Avatar UI<br/>[Avatar.tsx]"]
  node_icons["Icon library<br/>[Icons.tsx]"]
  node_modal["Modal UI<br/>[Modal.tsx]"]
  node_dates["Date utilities<br/>[dates.ts]"]
end

subgraph group_clinic["Clinic workflows"]
  node_patients["Patient directory<br/>[Patients.tsx]"]
  node_patientfile["Patient records<br/>[PatientFile.tsx]"]
  node_odontogram["Dental chart<br/>[Odontogram.tsx]"]
  node_agenda["Appointments<br/>[Agenda.tsx]"]
  node_dashboard["Dashboard<br/>[Dashboard.tsx]"]
  node_cash["Payments<br/>[Caisse.tsx]"]
  node_team["Team management<br/>[Team.tsx]"]
  node_audit["Audit log<br/>[Audit.tsx]"]
  node_settings["Clinic settings<br/>[Settings.tsx]"]
  node_subscription["Subscriptions<br/>[Abonnement.tsx]"]
end

subgraph group_backend["API platform"]
  node_authendpoint["Authentication endpoints<br/>[AuthEndpoints.cs]"]
  node_endpoints["API endpoints<br/>[Endpoints]"]
  node_auth["Authentication<br/>[Auth.cs]"]
  node_dbcontext[("Clinic data context<br/>[AppDbContext.cs]")]
  node_entities["Clinic entities<br/>[Entities.cs]"]
  node_medical["Medical domain<br/>[Medical.cs]"]
  node_auditservice["Audit service<br/>[AuditService.cs]"]
  node_program["API host<br/>[Program.cs]"]
  node_file["File storage<br/>[FileStore.cs]"]
  node_plans["Plan service<br/>[Plans.cs]"]
  node_csv["CSV export<br/>[Csv.cs]"]
  node_dashboardendpoint["Dashboard endpoint"]
  node_patientendpoint["Patient endpoints"]
  node_patientfileendpoint["Patient-file endpoints"]
  node_medicalendpoint["Medical endpoints"]
end

subgraph group_runtime["Runtime services"]
  node_native["Native bridge<br/>[native.ts]"]
end

node_staff(("Clinic staff"))

node_staff -->|"uses"| node_app
node_app -->|"requests identity"| node_api
node_app -->|"renders"| node_avatar
node_app -->|"uploads avatar"| node_native
node_api -->|"reads tokens"| node_native
node_app -->|"routes to"| node_patients
node_app -->|"routes to"| node_agenda
node_app -->|"routes to"| node_dashboard
node_app -->|"routes to"| node_cash
node_app -->|"routes to"| node_team
node_app -->|"routes to"| node_audit
node_app -->|"routes to"| node_settings
node_app -->|"routes to"| node_subscription
node_agenda -->|"loads records"| node_api
node_patientfile -->|"loads patient file"| node_api
node_patientfile -->|"renders chart"| node_odontogram
node_subscription -->|"loads plans"| node_api
node_subscription -->|"uses models"| node_billingdata
node_subscription -->|"renders checkout"| node_modal
node_api -->|"calls auth route"| node_authendpoint
node_api -.->|"calls API routes"| node_endpoints
node_program -.->|"registers routes"| node_endpoints
node_program -.->|"configures data"| node_dbcontext
node_patientendpoint -.->|"reads and writes"| node_dbcontext
node_patientfileendpoint -.->|"reads and writes"| node_dbcontext
node_medicalendpoint -.->|"reads and writes"| node_dbcontext
node_dashboardendpoint -.->|"reads metrics"| node_dbcontext
node_authendpoint -.->|"authenticates"| node_auth
node_dbcontext -.->|"stores"| node_entities
node_dbcontext -.->|"stores"| node_medical
node_auditservice -.->|"records events"| node_dbcontext
node_patientfileendpoint -.->|"handles files"| node_file
node_endpoints -.->|"uses subscription plans"| node_plans
node_endpoints -.->|"exports data"| node_csv

click node_app "https://github.com/youssef-fullstack/cabinet-_web/blob/main/VERSION%20DE%20LAPPLICATION/web/frontend/src/App.tsx"
click node_api "https://github.com/youssef-fullstack/cabinet-_web/blob/main/VERSION%20DE%20LAPPLICATION/web/frontend/src/api.ts"
click node_native "https://github.com/youssef-fullstack/cabinet-_web/blob/main/VERSION%20DE%20LAPPLICATION/web/frontend/src/native.ts"
click node_billingdata "https://github.com/youssef-fullstack/cabinet-_web/blob/main/VERSION%20DE%20LAPPLICATION/web/frontend/src/billing.ts"
click node_avatar "https://github.com/youssef-fullstack/cabinet-_web/blob/main/VERSION%20DE%20LAPPLICATION/web/frontend/src/components/Avatar.tsx"
click node_icons "https://github.com/youssef-fullstack/cabinet-_web/blob/main/VERSION%20DE%20LAPPLICATION/web/frontend/src/components/Icons.tsx"
click node_modal "https://github.com/youssef-fullstack/cabinet-_web/blob/main/VERSION%20DE%20LAPPLICATION/web/frontend/src/components/Modal.tsx"
click node_dates "https://github.com/youssef-fullstack/cabinet-_web/blob/main/VERSION%20DE%20LAPPLICATION/web/frontend/src/dates.ts"
click node_patients "https://github.com/youssef-fullstack/cabinet-_web/blob/main/VERSION%20DE%20LAPPLICATION/web/frontend/src/pages/Patients.tsx"
click node_patientfile "https://github.com/youssef-fullstack/cabinet-_web/blob/main/VERSION%20DE%20LAPPLICATION/web/frontend/src/pages/PatientFile.tsx"
click node_odontogram "https://github.com/youssef-fullstack/cabinet-_web/blob/main/VERSION%20DE%20LAPPLICATION/web/frontend/src/Odontogram.tsx"
click node_agenda "https://github.com/youssef-fullstack/cabinet-_web/blob/main/VERSION%20DE%20LAPPLICATION/web/frontend/src/pages/Agenda.tsx"
click node_dashboard "https://github.com/youssef-fullstack/cabinet-_web/blob/main/VERSION%20DE%20LAPPLICATION/web/frontend/src/pages/Dashboard.tsx"
click node_cash "https://github.com/youssef-fullstack/cabinet-_web/blob/main/VERSION%20DE%20LAPPLICATION/web/frontend/src/pages/Caisse.tsx"
click node_team "https://github.com/youssef-fullstack/cabinet-_web/blob/main/VERSION%20DE%20LAPPLICATION/web/frontend/src/pages/Team.tsx"
click node_audit "https://github.com/youssef-fullstack/cabinet-_web/blob/main/VERSION%20DE%20LAPPLICATION/web/frontend/src/pages/Audit.tsx"
click node_settings "https://github.com/youssef-fullstack/cabinet-_web/blob/main/VERSION%20DE%20LAPPLICATION/web/frontend/src/pages/Settings.tsx"
click node_subscription "https://github.com/youssef-fullstack/cabinet-_web/blob/main/VERSION%20DE%20LAPPLICATION/web/frontend/src/pages/Abonnement.tsx"
click node_authendpoint "https://github.com/youssef-fullstack/cabinet-_web/blob/main/VERSION%20DE%20LAPPLICATION/web/backend/DentalClinic.Api/Endpoints/AuthEndpoints.cs"
click node_endpoints "https://github.com/youssef-fullstack/cabinet-_web/tree/main/VERSION%20DE%20LAPPLICATION/web/backend/DentalClinic.Api/Endpoints"
click node_auth "https://github.com/youssef-fullstack/cabinet-_web/blob/main/VERSION%20DE%20LAPPLICATION/web/backend/DentalClinic.Api/Auth/Auth.cs"
click node_dbcontext "https://github.com/youssef-fullstack/cabinet-_web/blob/main/VERSION%20DE%20LAPPLICATION/web/backend/DentalClinic.Api/Data/AppDbContext.cs"
click node_entities "https://github.com/youssef-fullstack/cabinet-_web/blob/main/VERSION%20DE%20LAPPLICATION/web/backend/DentalClinic.Api/Domain/Entities.cs"
click node_medical "https://github.com/youssef-fullstack/cabinet-_web/blob/main/VERSION%20DE%20LAPPLICATION/web/backend/DentalClinic.Api/Domain/Medical.cs"
click node_auditservice "https://github.com/youssef-fullstack/cabinet-_web/blob/main/VERSION%20DE%20LAPPLICATION/web/backend/DentalClinic.Api/Data/AuditService.cs"
click node_program "https://github.com/youssef-fullstack/cabinet-_web/blob/main/VERSION%20DE%20LAPPLICATION/web/backend/DentalClinic.Api/Program.cs"
click node_file "https://github.com/youssef-fullstack/cabinet-_web/blob/main/VERSION%20DE%20LAPPLICATION/web/backend/DentalClinic.Api/Services/FileStore.cs"
click node_plans "https://github.com/youssef-fullstack/cabinet-_web/blob/main/VERSION%20DE%20LAPPLICATION/web/backend/DentalClinic.Api/Services/Plans.cs"
click node_csv "https://github.com/youssef-fullstack/cabinet-_web/blob/main/VERSION%20DE%20LAPPLICATION/web/backend/DentalClinic.Api/Services/Csv.cs"
click node_dashboardendpoint "https://github.com/youssef-fullstack/cabinet-_web/blob/main/VERSION%20DE%20LAPPLICATION/web/backend/DentalClinic.Api/Endpoints/DashboardEndpoints.cs"
click node_patientendpoint "https://github.com/youssef-fullstack/cabinet-_web/blob/main/VERSION%20DE%20LAPPLICATION/web/backend/DentalClinic.Api/Endpoints/PatientEndpoints.cs"
click node_patientfileendpoint "https://github.com/youssef-fullstack/cabinet-_web/blob/main/VERSION%20DE%20LAPPLICATION/web/backend/DentalClinic.Api/Endpoints/PatientFileEndpoints.cs"
click node_medicalendpoint "https://github.com/youssef-fullstack/cabinet-_web/blob/main/VERSION%20DE%20LAPPLICATION/web/backend/DentalClinic.Api/Endpoints/MedicalEndpoints.cs"

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_app,node_api,node_billingdata,node_avatar,node_icons,node_modal,node_dates toneBlue
class node_patients,node_patientfile,node_odontogram,node_agenda,node_dashboard,node_cash,node_team,node_audit,node_settings,node_subscription toneAmber
class node_authendpoint,node_endpoints,node_auth,node_dbcontext,node_entities,node_medical,node_auditservice,node_program,node_file,node_plans,node_csv,node_dashboardendpoint,node_patientendpoint,node_patientfileendpoint,node_medicalendpoint toneMint
class node_native toneRose
class node_staff toneIndigo
```

## Components

### Client application

- [App shell](https://github.com/youssef-fullstack/cabinet-_web/blob/main/VERSION%20DE%20LAPPLICATION/web/frontend/src/App.tsx): `VERSION DE LAPPLICATION/web/frontend/src/App.tsx`
- [API client](https://github.com/youssef-fullstack/cabinet-_web/blob/main/VERSION%20DE%20LAPPLICATION/web/frontend/src/api.ts): `VERSION DE LAPPLICATION/web/frontend/src/api.ts`
- [Billing models](https://github.com/youssef-fullstack/cabinet-_web/blob/main/VERSION%20DE%20LAPPLICATION/web/frontend/src/billing.ts): `VERSION DE LAPPLICATION/web/frontend/src/billing.ts`
- [Avatar UI](https://github.com/youssef-fullstack/cabinet-_web/blob/main/VERSION%20DE%20LAPPLICATION/web/frontend/src/components/Avatar.tsx): `VERSION DE LAPPLICATION/web/frontend/src/components/Avatar.tsx`
- [Icon library](https://github.com/youssef-fullstack/cabinet-_web/blob/main/VERSION%20DE%20LAPPLICATION/web/frontend/src/components/Icons.tsx): `VERSION DE LAPPLICATION/web/frontend/src/components/Icons.tsx`
- [Modal UI](https://github.com/youssef-fullstack/cabinet-_web/blob/main/VERSION%20DE%20LAPPLICATION/web/frontend/src/components/Modal.tsx): `VERSION DE LAPPLICATION/web/frontend/src/components/Modal.tsx`
- [Date utilities](https://github.com/youssef-fullstack/cabinet-_web/blob/main/VERSION%20DE%20LAPPLICATION/web/frontend/src/dates.ts): `VERSION DE LAPPLICATION/web/frontend/src/dates.ts`

### Clinic workflows

- [Patient directory](https://github.com/youssef-fullstack/cabinet-_web/blob/main/VERSION%20DE%20LAPPLICATION/web/frontend/src/pages/Patients.tsx): `VERSION DE LAPPLICATION/web/frontend/src/pages/Patients.tsx`
- [Patient records](https://github.com/youssef-fullstack/cabinet-_web/blob/main/VERSION%20DE%20LAPPLICATION/web/frontend/src/pages/PatientFile.tsx): `VERSION DE LAPPLICATION/web/frontend/src/pages/PatientFile.tsx`
- [Dental chart](https://github.com/youssef-fullstack/cabinet-_web/blob/main/VERSION%20DE%20LAPPLICATION/web/frontend/src/Odontogram.tsx): `VERSION DE LAPPLICATION/web/frontend/src/Odontogram.tsx`
- [Appointments](https://github.com/youssef-fullstack/cabinet-_web/blob/main/VERSION%20DE%20LAPPLICATION/web/frontend/src/pages/Agenda.tsx): `VERSION DE LAPPLICATION/web/frontend/src/pages/Agenda.tsx`
- [Dashboard](https://github.com/youssef-fullstack/cabinet-_web/blob/main/VERSION%20DE%20LAPPLICATION/web/frontend/src/pages/Dashboard.tsx): `VERSION DE LAPPLICATION/web/frontend/src/pages/Dashboard.tsx`
- [Payments](https://github.com/youssef-fullstack/cabinet-_web/blob/main/VERSION%20DE%20LAPPLICATION/web/frontend/src/pages/Caisse.tsx): `VERSION DE LAPPLICATION/web/frontend/src/pages/Caisse.tsx`
- [Team management](https://github.com/youssef-fullstack/cabinet-_web/blob/main/VERSION%20DE%20LAPPLICATION/web/frontend/src/pages/Team.tsx): `VERSION DE LAPPLICATION/web/frontend/src/pages/Team.tsx`
- [Audit log](https://github.com/youssef-fullstack/cabinet-_web/blob/main/VERSION%20DE%20LAPPLICATION/web/frontend/src/pages/Audit.tsx): `VERSION DE LAPPLICATION/web/frontend/src/pages/Audit.tsx`
- [Clinic settings](https://github.com/youssef-fullstack/cabinet-_web/blob/main/VERSION%20DE%20LAPPLICATION/web/frontend/src/pages/Settings.tsx): `VERSION DE LAPPLICATION/web/frontend/src/pages/Settings.tsx`
- [Subscriptions](https://github.com/youssef-fullstack/cabinet-_web/blob/main/VERSION%20DE%20LAPPLICATION/web/frontend/src/pages/Abonnement.tsx): `VERSION DE LAPPLICATION/web/frontend/src/pages/Abonnement.tsx`

### API platform

- [Authentication endpoints](https://github.com/youssef-fullstack/cabinet-_web/blob/main/VERSION%20DE%20LAPPLICATION/web/backend/DentalClinic.Api/Endpoints/AuthEndpoints.cs): `VERSION DE LAPPLICATION/web/backend/DentalClinic.Api/Endpoints/AuthEndpoints.cs`
- [API endpoints](https://github.com/youssef-fullstack/cabinet-_web/tree/main/VERSION%20DE%20LAPPLICATION/web/backend/DentalClinic.Api/Endpoints): `VERSION DE LAPPLICATION/web/backend/DentalClinic.Api/Endpoints`
- [Authentication](https://github.com/youssef-fullstack/cabinet-_web/blob/main/VERSION%20DE%20LAPPLICATION/web/backend/DentalClinic.Api/Auth/Auth.cs): `VERSION DE LAPPLICATION/web/backend/DentalClinic.Api/Auth/Auth.cs`
- [Clinic data context](https://github.com/youssef-fullstack/cabinet-_web/blob/main/VERSION%20DE%20LAPPLICATION/web/backend/DentalClinic.Api/Data/AppDbContext.cs): `VERSION DE LAPPLICATION/web/backend/DentalClinic.Api/Data/AppDbContext.cs`
- [Clinic entities](https://github.com/youssef-fullstack/cabinet-_web/blob/main/VERSION%20DE%20LAPPLICATION/web/backend/DentalClinic.Api/Domain/Entities.cs): `VERSION DE LAPPLICATION/web/backend/DentalClinic.Api/Domain/Entities.cs`
- [Medical domain](https://github.com/youssef-fullstack/cabinet-_web/blob/main/VERSION%20DE%20LAPPLICATION/web/backend/DentalClinic.Api/Domain/Medical.cs): `VERSION DE LAPPLICATION/web/backend/DentalClinic.Api/Domain/Medical.cs`
- [Audit service](https://github.com/youssef-fullstack/cabinet-_web/blob/main/VERSION%20DE%20LAPPLICATION/web/backend/DentalClinic.Api/Data/AuditService.cs): `VERSION DE LAPPLICATION/web/backend/DentalClinic.Api/Data/AuditService.cs`
- [API host](https://github.com/youssef-fullstack/cabinet-_web/blob/main/VERSION%20DE%20LAPPLICATION/web/backend/DentalClinic.Api/Program.cs): `VERSION DE LAPPLICATION/web/backend/DentalClinic.Api/Program.cs`
- [File storage](https://github.com/youssef-fullstack/cabinet-_web/blob/main/VERSION%20DE%20LAPPLICATION/web/backend/DentalClinic.Api/Services/FileStore.cs): `VERSION DE LAPPLICATION/web/backend/DentalClinic.Api/Services/FileStore.cs`
- [Plan service](https://github.com/youssef-fullstack/cabinet-_web/blob/main/VERSION%20DE%20LAPPLICATION/web/backend/DentalClinic.Api/Services/Plans.cs): `VERSION DE LAPPLICATION/web/backend/DentalClinic.Api/Services/Plans.cs`
- [CSV export](https://github.com/youssef-fullstack/cabinet-_web/blob/main/VERSION%20DE%20LAPPLICATION/web/backend/DentalClinic.Api/Services/Csv.cs): `VERSION DE LAPPLICATION/web/backend/DentalClinic.Api/Services/Csv.cs`
- [Dashboard endpoint](https://github.com/youssef-fullstack/cabinet-_web/blob/main/VERSION%20DE%20LAPPLICATION/web/backend/DentalClinic.Api/Endpoints/DashboardEndpoints.cs): `VERSION DE LAPPLICATION/web/backend/DentalClinic.Api/Endpoints/DashboardEndpoints.cs`
- [Patient endpoints](https://github.com/youssef-fullstack/cabinet-_web/blob/main/VERSION%20DE%20LAPPLICATION/web/backend/DentalClinic.Api/Endpoints/PatientEndpoints.cs): `VERSION DE LAPPLICATION/web/backend/DentalClinic.Api/Endpoints/PatientEndpoints.cs`
- [Patient-file endpoints](https://github.com/youssef-fullstack/cabinet-_web/blob/main/VERSION%20DE%20LAPPLICATION/web/backend/DentalClinic.Api/Endpoints/PatientFileEndpoints.cs): `VERSION DE LAPPLICATION/web/backend/DentalClinic.Api/Endpoints/PatientFileEndpoints.cs`
- [Medical endpoints](https://github.com/youssef-fullstack/cabinet-_web/blob/main/VERSION%20DE%20LAPPLICATION/web/backend/DentalClinic.Api/Endpoints/MedicalEndpoints.cs): `VERSION DE LAPPLICATION/web/backend/DentalClinic.Api/Endpoints/MedicalEndpoints.cs`

### Runtime services

- [Native bridge](https://github.com/youssef-fullstack/cabinet-_web/blob/main/VERSION%20DE%20LAPPLICATION/web/frontend/src/native.ts): `VERSION DE LAPPLICATION/web/frontend/src/native.ts`

### Other components

- **Clinic staff**

## Connections

- Clinic staff → App shell: uses (evidence: `VERSION DE LAPPLICATION/web/frontend/src/App.tsx`)
- App shell → API client: requests identity (evidence: `VERSION DE LAPPLICATION/web/frontend/src/App.tsx`)
- App shell → Avatar UI: renders (evidence: `VERSION DE LAPPLICATION/web/frontend/src/App.tsx`)
- App shell → Native bridge: uploads avatar (evidence: `VERSION DE LAPPLICATION/web/frontend/src/App.tsx`)
- API client → Native bridge: reads tokens (evidence: `VERSION DE LAPPLICATION/web/frontend/src/api.ts`)
- App shell → Patient directory: routes to (evidence: `VERSION DE LAPPLICATION/web/frontend/src/App.tsx`)
- App shell → Appointments: routes to (evidence: `VERSION DE LAPPLICATION/web/frontend/src/App.tsx`)
- App shell → Dashboard: routes to (evidence: `VERSION DE LAPPLICATION/web/frontend/src/App.tsx`)
- App shell → Payments: routes to (evidence: `VERSION DE LAPPLICATION/web/frontend/src/App.tsx`)
- App shell → Team management: routes to (evidence: `VERSION DE LAPPLICATION/web/frontend/src/App.tsx`)
- App shell → Audit log: routes to (evidence: `VERSION DE LAPPLICATION/web/frontend/src/App.tsx`)
- App shell → Clinic settings: routes to (evidence: `VERSION DE LAPPLICATION/web/frontend/src/App.tsx`)
- App shell → Subscriptions: routes to (evidence: `VERSION DE LAPPLICATION/web/frontend/src/App.tsx`)
- Appointments → API client: loads records (evidence: `VERSION DE LAPPLICATION/web/frontend/src/pages/Agenda.tsx`)
- Patient records → API client: loads patient file
- Patient records → Dental chart: renders chart
- Subscriptions → API client: loads plans (evidence: `VERSION DE LAPPLICATION/web/frontend/src/pages/Abonnement.tsx`)
- Subscriptions → Billing models: uses models (evidence: `VERSION DE LAPPLICATION/web/frontend/src/pages/Abonnement.tsx`)
- Subscriptions → Modal UI: renders checkout (evidence: `VERSION DE LAPPLICATION/web/frontend/src/pages/Abonnement.tsx`)
- API client → Authentication endpoints: calls auth route (evidence: `VERSION DE LAPPLICATION/web/frontend/src/api.ts`)
- API client → API endpoints: calls API routes
- API host → API endpoints: registers routes
- API host → Clinic data context: configures data
- Patient endpoints → Clinic data context: reads and writes
- Patient-file endpoints → Clinic data context: reads and writes
- Medical endpoints → Clinic data context: reads and writes
- Dashboard endpoint → Clinic data context: reads metrics
- Authentication endpoints → Authentication: authenticates
- Clinic data context → Clinic entities: stores
- Clinic data context → Medical domain: stores
- Audit service → Clinic data context: records events
- Patient-file endpoints → File storage: handles files
- API endpoints → Plan service: uses subscription plans
- API endpoints → CSV export: exports data
