# hadilarfaoui/hopitallo architecture

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

- Interactive diagram: https://gitdiagram.com/hadilarfaoui/hopitallo
- Repository: https://github.com/hadilarfaoui/hopitallo

## Overview

Hopitallo is a Symfony hospital-services web application. Visitors can browse hospital information and events, while patients, doctors, and administrators have distinct appointment, emergency-care, and management areas. The main request path enters through the public front controller and is routed to application controllers; controllers then use domain entities and repositories to handle data. Event and participant administration is visible in the sampled controllers. Other workflows are indicated by the file tree, but their implementation and controller-to-template or persistence calls were not sampled, so those links are marked unverified.

Main entry points: [`OneDrive/Bureau/Hopitallo/public/index.php`](https://github.com/hadilarfaoui/hopitallo/blob/main/OneDrive/Bureau/Hopitallo/public/index.php) (Symfony entry), [`OneDrive/Bureau/Hopitallo/src/Entity/DemandeUrgence.php`](https://github.com/hadilarfaoui/hopitallo/blob/main/OneDrive/Bureau/Hopitallo/src/Entity/DemandeUrgence.php) (Emergency requests), [`OneDrive/Bureau/Hopitallo/src/Controller/HomeController.php`](https://github.com/hadilarfaoui/hopitallo/blob/main/OneDrive/Bureau/Hopitallo/src/Controller/HomeController.php) (Public pages), [`OneDrive/Bureau/Hopitallo/src/Controller/AdminEventController.php`](https://github.com/hadilarfaoui/hopitallo/blob/main/OneDrive/Bureau/Hopitallo/src/Controller/AdminEventController.php) (Event management)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_web["Web entry"]
  node_front["Symfony entry<br/>[index.php]"]
  node_home["Public pages<br/>[HomeController.php]"]
  node_events["Event listing"]
end

subgraph group_care["Care workflows"]
  node_doctor["Doctor dashboard"]
  node_appointments["Appointments<br/>[Rdv.php]"]
  node_emergency["Emergency requests<br/>[DemandeUrgence.php]"]
  node_urgentconsult["Emergency consultations"]
  node_consultation["Consultations<br/>[Consultation.php]"]
end

subgraph group_admin["Administration"]
  node_adminhome["Admin dashboard"]
  node_adminevent["Event management"]
  node_adminparticipant["Participant management"]
end

subgraph group_domain["Domain and data"]
  node_event["Events<br/>[Event.php]"]
  node_participant["Participants<br/>[Participant.php]"]
  node_hospital["Hospitals<br/>[Hopital.php]"]
  node_service["Hospital services<br/>[Service.php]"]
  node_user["Users and doctors<br/>[User.php]"]
  node_repositories[("Doctrine repositories")]
  node_otherrepos[("Care repositories")]
end

node_visitor(("Visitor / patient"))

node_visitor -.->|"requests pages"| node_front
node_front -.->|"routes requests"| node_home
node_front -.->|"routes requests"| node_events
node_front -.->|"routes requests"| node_doctor
node_front -.->|"routes requests"| node_adminhome
node_front -.->|"routes requests"| node_adminevent
node_front -.->|"routes requests"| node_adminparticipant
node_front -->|"boots Kernel"| node_front
node_adminevent -->|"creates and edits"| node_event
node_adminevent -->|"reads and saves"| node_repositories
node_adminparticipant -->|"creates and edits"| node_participant
node_adminparticipant -->|"reads and saves"| node_repositories
node_event -->|"has participants"| node_participant
node_participant -->|"references user"| node_user
node_hospital -->|"has services"| node_service
node_emergency -->|"targets hospital"| node_hospital
node_emergency -->|"references patient"| node_user
node_emergency -->|"has consultations"| node_urgentconsult
node_appointments -->|"references patient"| node_user
node_appointments -->|"associated consultation"| node_consultation
node_home -.->|"serves hospital pages"| node_hospital
node_home -.->|"supports urgent requests"| node_emergency
node_home -.->|"supports booking"| node_appointments
node_doctor -.->|"manages appointments"| node_appointments
node_doctor -.->|"manages urgent care"| node_emergency
node_events -->|"queries events"| node_repositories
node_events -.->|"displays events"| node_event
node_adminevent -->|"uses event form"| node_event
node_adminparticipant -->|"uses participant form"| node_participant

click node_front "https://github.com/hadilarfaoui/hopitallo/blob/main/OneDrive/Bureau/Hopitallo/public/index.php"
click node_home "https://github.com/hadilarfaoui/hopitallo/blob/main/OneDrive/Bureau/Hopitallo/src/Controller/HomeController.php"
click node_events "https://github.com/hadilarfaoui/hopitallo/blob/main/OneDrive/Bureau/Hopitallo/src/Controller/EventController.php"
click node_doctor "https://github.com/hadilarfaoui/hopitallo/blob/main/OneDrive/Bureau/Hopitallo/src/Controller/MedecinDashboardController.php"
click node_appointments "https://github.com/hadilarfaoui/hopitallo/blob/main/OneDrive/Bureau/Hopitallo/src/Entity/Rdv.php"
click node_emergency "https://github.com/hadilarfaoui/hopitallo/blob/main/OneDrive/Bureau/Hopitallo/src/Entity/DemandeUrgence.php"
click node_urgentconsult "https://github.com/hadilarfaoui/hopitallo/blob/main/OneDrive/Bureau/Hopitallo/src/Entity/ConsultationUrgence.php"
click node_consultation "https://github.com/hadilarfaoui/hopitallo/blob/main/OneDrive/Bureau/Hopitallo/src/Entity/Consultation.php"
click node_adminhome "https://github.com/hadilarfaoui/hopitallo/blob/main/OneDrive/Bureau/Hopitallo/src/Controller/AdminDashboardController.php"
click node_adminevent "https://github.com/hadilarfaoui/hopitallo/blob/main/OneDrive/Bureau/Hopitallo/src/Controller/AdminEventController.php"
click node_adminparticipant "https://github.com/hadilarfaoui/hopitallo/blob/main/OneDrive/Bureau/Hopitallo/src/Controller/AdminParticipantController.php"
click node_event "https://github.com/hadilarfaoui/hopitallo/blob/main/OneDrive/Bureau/Hopitallo/src/Entity/Event.php"
click node_participant "https://github.com/hadilarfaoui/hopitallo/blob/main/OneDrive/Bureau/Hopitallo/src/Entity/Participant.php"
click node_hospital "https://github.com/hadilarfaoui/hopitallo/blob/main/OneDrive/Bureau/Hopitallo/src/Entity/Hopital.php"
click node_service "https://github.com/hadilarfaoui/hopitallo/blob/main/OneDrive/Bureau/Hopitallo/src/Entity/Service.php"
click node_user "https://github.com/hadilarfaoui/hopitallo/blob/main/OneDrive/Bureau/Hopitallo/src/Entity/User.php"
click node_repositories "https://github.com/hadilarfaoui/hopitallo/tree/main/OneDrive/Bureau/Hopitallo/src/Repository"
click node_otherrepos "https://github.com/hadilarfaoui/hopitallo/tree/main/OneDrive/Bureau/Hopitallo/src/Repository"

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_front,node_home,node_events toneBlue
class node_doctor,node_appointments,node_emergency,node_urgentconsult,node_consultation toneAmber
class node_adminhome,node_adminevent,node_adminparticipant toneMint
class node_event,node_participant,node_hospital,node_service,node_user,node_repositories,node_otherrepos toneRose
class node_visitor toneIndigo
```

## Components

### Web entry

- [Symfony entry](https://github.com/hadilarfaoui/hopitallo/blob/main/OneDrive/Bureau/Hopitallo/public/index.php): `OneDrive/Bureau/Hopitallo/public/index.php`
- [Public pages](https://github.com/hadilarfaoui/hopitallo/blob/main/OneDrive/Bureau/Hopitallo/src/Controller/HomeController.php): `OneDrive/Bureau/Hopitallo/src/Controller/HomeController.php`
- [Event listing](https://github.com/hadilarfaoui/hopitallo/blob/main/OneDrive/Bureau/Hopitallo/src/Controller/EventController.php): `OneDrive/Bureau/Hopitallo/src/Controller/EventController.php`

### Care workflows

- [Doctor dashboard](https://github.com/hadilarfaoui/hopitallo/blob/main/OneDrive/Bureau/Hopitallo/src/Controller/MedecinDashboardController.php): `OneDrive/Bureau/Hopitallo/src/Controller/MedecinDashboardController.php`
- [Appointments](https://github.com/hadilarfaoui/hopitallo/blob/main/OneDrive/Bureau/Hopitallo/src/Entity/Rdv.php): `OneDrive/Bureau/Hopitallo/src/Entity/Rdv.php`
- [Emergency requests](https://github.com/hadilarfaoui/hopitallo/blob/main/OneDrive/Bureau/Hopitallo/src/Entity/DemandeUrgence.php): `OneDrive/Bureau/Hopitallo/src/Entity/DemandeUrgence.php`
- [Emergency consultations](https://github.com/hadilarfaoui/hopitallo/blob/main/OneDrive/Bureau/Hopitallo/src/Entity/ConsultationUrgence.php): `OneDrive/Bureau/Hopitallo/src/Entity/ConsultationUrgence.php`
- [Consultations](https://github.com/hadilarfaoui/hopitallo/blob/main/OneDrive/Bureau/Hopitallo/src/Entity/Consultation.php): `OneDrive/Bureau/Hopitallo/src/Entity/Consultation.php`

### Administration

- [Admin dashboard](https://github.com/hadilarfaoui/hopitallo/blob/main/OneDrive/Bureau/Hopitallo/src/Controller/AdminDashboardController.php): `OneDrive/Bureau/Hopitallo/src/Controller/AdminDashboardController.php`
- [Event management](https://github.com/hadilarfaoui/hopitallo/blob/main/OneDrive/Bureau/Hopitallo/src/Controller/AdminEventController.php): `OneDrive/Bureau/Hopitallo/src/Controller/AdminEventController.php`
- [Participant management](https://github.com/hadilarfaoui/hopitallo/blob/main/OneDrive/Bureau/Hopitallo/src/Controller/AdminParticipantController.php): `OneDrive/Bureau/Hopitallo/src/Controller/AdminParticipantController.php`

### Domain and data

- [Events](https://github.com/hadilarfaoui/hopitallo/blob/main/OneDrive/Bureau/Hopitallo/src/Entity/Event.php): `OneDrive/Bureau/Hopitallo/src/Entity/Event.php`
- [Participants](https://github.com/hadilarfaoui/hopitallo/blob/main/OneDrive/Bureau/Hopitallo/src/Entity/Participant.php): `OneDrive/Bureau/Hopitallo/src/Entity/Participant.php`
- [Hospitals](https://github.com/hadilarfaoui/hopitallo/blob/main/OneDrive/Bureau/Hopitallo/src/Entity/Hopital.php): `OneDrive/Bureau/Hopitallo/src/Entity/Hopital.php`
- [Hospital services](https://github.com/hadilarfaoui/hopitallo/blob/main/OneDrive/Bureau/Hopitallo/src/Entity/Service.php): `OneDrive/Bureau/Hopitallo/src/Entity/Service.php`
- [Users and doctors](https://github.com/hadilarfaoui/hopitallo/blob/main/OneDrive/Bureau/Hopitallo/src/Entity/User.php): `OneDrive/Bureau/Hopitallo/src/Entity/User.php`
- [Doctrine repositories](https://github.com/hadilarfaoui/hopitallo/tree/main/OneDrive/Bureau/Hopitallo/src/Repository): `OneDrive/Bureau/Hopitallo/src/Repository`
- [Care repositories](https://github.com/hadilarfaoui/hopitallo/tree/main/OneDrive/Bureau/Hopitallo/src/Repository): `OneDrive/Bureau/Hopitallo/src/Repository`

### Other components

- **Visitor / patient**

## Connections

- Visitor / patient → Symfony entry: requests pages
- Symfony entry → Public pages: routes requests
- Symfony entry → Event listing: routes requests
- Symfony entry → Doctor dashboard: routes requests
- Symfony entry → Admin dashboard: routes requests
- Symfony entry → Event management: routes requests
- Symfony entry → Participant management: routes requests
- Symfony entry → Symfony entry: boots Kernel (evidence: `OneDrive/Bureau/Hopitallo/public/index.php`)
- Event management → Events: creates and edits (evidence: `OneDrive/Bureau/Hopitallo/src/Controller/AdminEventController.php`)
- Event management → Doctrine repositories: reads and saves (evidence: `OneDrive/Bureau/Hopitallo/src/Controller/AdminEventController.php`)
- Participant management → Participants: creates and edits (evidence: `OneDrive/Bureau/Hopitallo/src/Controller/AdminParticipantController.php`)
- Participant management → Doctrine repositories: reads and saves (evidence: `OneDrive/Bureau/Hopitallo/src/Controller/AdminParticipantController.php`)
- Events → Participants: has participants (evidence: `OneDrive/Bureau/Hopitallo/src/Entity/Event.php`)
- Participants → Users and doctors: references user (evidence: `OneDrive/Bureau/Hopitallo/src/Entity/Participant.php`)
- Hospitals → Hospital services: has services (evidence: `OneDrive/Bureau/Hopitallo/src/Entity/Hopital.php`)
- Emergency requests → Hospitals: targets hospital (evidence: `OneDrive/Bureau/Hopitallo/src/Entity/DemandeUrgence.php`)
- Emergency requests → Users and doctors: references patient (evidence: `OneDrive/Bureau/Hopitallo/src/Entity/DemandeUrgence.php`)
- Emergency requests → Emergency consultations: has consultations (evidence: `OneDrive/Bureau/Hopitallo/src/Entity/DemandeUrgence.php`)
- Appointments → Users and doctors: references patient (evidence: `OneDrive/Bureau/Hopitallo/src/Entity/Rdv.php`)
- Appointments → Consultations: associated consultation (evidence: `OneDrive/Bureau/Hopitallo/src/Entity/Rdv.php`)
- Public pages → Hospitals: serves hospital pages
- Public pages → Emergency requests: supports urgent requests
- Public pages → Appointments: supports booking
- Doctor dashboard → Appointments: manages appointments
- Doctor dashboard → Emergency requests: manages urgent care
- Event listing → Doctrine repositories: queries events (evidence: `OneDrive/Bureau/Hopitallo/src/Controller/EventController.php`)
- Event listing → Events: displays events
- Event management → Events: uses event form (evidence: `OneDrive/Bureau/Hopitallo/src/Controller/AdminEventController.php`)
- Participant management → Participants: uses participant form (evidence: `OneDrive/Bureau/Hopitallo/src/Controller/AdminParticipantController.php`)
