# riahandria/gestionpatient architecture

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

- Interactive diagram: https://gitdiagram.com/riahandria/gestionpatient
- Repository: https://github.com/riahandria/gestionpatient

## Overview

Gestion Médicale est une application WPF de cabinet médical. Son parcours principal va de la création d’un rendez-vous (patient, service, type, médecin/créneau, récapitulatif, paiement, confirmation) à la consultation et au suivi de la facture. Les vues pilotent des services métier qui lisent ou modifient PostgreSQL. Le README documente aussi la gestion des patients/dossiers, médecins/disponibilités et notifications. Les liens entre vues et services non visibles dans les extraits sont indiqués comme non vérifiés.

Main entry points: [`Views/RendezVous/Assistant`](https://github.com/riahandria/gestionpatient/tree/main/Views/RendezVous/Assistant) (Assistant rendez-vous), [`Services/Disponibilite`](https://github.com/riahandria/gestionpatient/tree/main/Services/Disponibilite) (Disponibilités), [`Services/Consultation`](https://github.com/riahandria/gestionpatient/tree/main/Services/Consultation) (Consultations et dossiers), [`Services/ServiceMedicalLookupService.cs`](https://github.com/riahandria/gestionpatient/blob/main/Services/ServiceMedicalLookupService.cs) (Services médicaux)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_ui["Interface WPF"]
  node_staff["Personnel médical"]
  node_patientui["Patients"]
  node_wizard["Assistant rendez-vous"]
  node_consultui["Consultations"]
  node_paymentui["Paiements"]
  node_notifui["Notifications"]
end

subgraph group_people["Patients et médecins"]
  node_patientservice["Gestion patients"]
  node_doctorservice["Gestion médecins"]
  node_functionservice["Fonctions médicales<br/>[FonctionService.cs]"]
  node_patientlookup["Recherche patients"]
end

subgraph group_schedule["Rendez-vous"]
  node_availability["Disponibilités"]
  node_servicelookup["Services médicaux"]
  node_rdvservice["Gestion rendez-vous"]
end

subgraph group_care["Soins"]
  node_consultservice["Consultations et dossiers"]
end

subgraph group_finance["Paiements et alertes"]
  node_paymentservice["Paiement et factures"]
  node_reminders["Rappels et alertes"]
end

node_postgres[("PostgreSQL")]

node_wizard -->|"charge les services"| node_servicelookup
node_servicelookup -->|"dérive des fonctions"| node_functionservice
node_availability -->|"résout fonctions compatibles"| node_servicelookup
node_wizard -.->|"recherche créneaux"| node_availability
node_wizard -.->|"crée rendez-vous"| node_rdvservice
node_wizard -.->|"sélectionne patient"| node_patientlookup
node_patientui -.->|"gère patients"| node_patientservice
node_staff -.->|"gère médecins"| node_doctorservice
node_staff -.->|"gère disponibilités"| node_availability
node_consultui -.->|"enregistre consultations"| node_consultservice
node_consultservice -->|"crée la facture"| node_paymentservice
node_paymentui -.->|"gère paiements"| node_paymentservice
node_notifui -.->|"consulte alertes"| node_reminders
node_paymentservice -->|"lit et écrit"| node_postgres
node_reminders -.->|"lit et écrit"| node_postgres
node_availability -->|"recherche créneaux"| node_postgres
node_patientservice -->|"lit et écrit"| node_postgres
node_doctorservice -->|"lit les médecins"| node_postgres
node_rdvservice -->|"lit rendez-vous"| node_postgres
node_consultservice -->|"enregistre consultations"| node_postgres
node_functionservice -->|"lit et écrit"| node_postgres

click node_staff "https://github.com/riahandria/gestionpatient/tree/main/Views/Medecin"
click node_patientui "https://github.com/riahandria/gestionpatient/tree/main/Views/Patient"
click node_wizard "https://github.com/riahandria/gestionpatient/tree/main/Views/RendezVous/Assistant"
click node_consultui "https://github.com/riahandria/gestionpatient/blob/main/Views/Consultation/ConsultationView.xaml.cs"
click node_paymentui "https://github.com/riahandria/gestionpatient/tree/main/Views/Paiement"
click node_notifui "https://github.com/riahandria/gestionpatient/blob/main/Views/Notification/NotificationView.xaml.cs"
click node_patientservice "https://github.com/riahandria/gestionpatient/tree/main/Services/Patient"
click node_doctorservice "https://github.com/riahandria/gestionpatient/tree/main/Services/Medecin"
click node_functionservice "https://github.com/riahandria/gestionpatient/blob/main/Services/FonctionService.cs"
click node_patientlookup "https://github.com/riahandria/gestionpatient/blob/main/Services/PatientLookupService.cs"
click node_availability "https://github.com/riahandria/gestionpatient/tree/main/Services/Disponibilite"
click node_servicelookup "https://github.com/riahandria/gestionpatient/blob/main/Services/ServiceMedicalLookupService.cs"
click node_rdvservice "https://github.com/riahandria/gestionpatient/tree/main/Services/RendezVous"
click node_consultservice "https://github.com/riahandria/gestionpatient/tree/main/Services/Consultation"
click node_paymentservice "https://github.com/riahandria/gestionpatient/tree/main/Services/Paiement"
click node_reminders "https://github.com/riahandria/gestionpatient/tree/main/Services/Rappel"

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_staff,node_patientui,node_wizard,node_consultui,node_paymentui,node_notifui toneBlue
class node_patientservice,node_doctorservice,node_functionservice,node_patientlookup,node_postgres toneAmber
class node_availability,node_servicelookup,node_rdvservice toneMint
class node_consultservice toneRose
class node_paymentservice,node_reminders toneIndigo
```

## Components

### Interface WPF

- [Personnel médical](https://github.com/riahandria/gestionpatient/tree/main/Views/Medecin): `Views/Medecin`
- [Patients](https://github.com/riahandria/gestionpatient/tree/main/Views/Patient): `Views/Patient`
- [Assistant rendez-vous](https://github.com/riahandria/gestionpatient/tree/main/Views/RendezVous/Assistant): `Views/RendezVous/Assistant`
- [Consultations](https://github.com/riahandria/gestionpatient/blob/main/Views/Consultation/ConsultationView.xaml.cs): `Views/Consultation/ConsultationView.xaml.cs`
- [Paiements](https://github.com/riahandria/gestionpatient/tree/main/Views/Paiement): `Views/Paiement`
- [Notifications](https://github.com/riahandria/gestionpatient/blob/main/Views/Notification/NotificationView.xaml.cs): `Views/Notification/NotificationView.xaml.cs`

### Patients et médecins

- [Gestion patients](https://github.com/riahandria/gestionpatient/tree/main/Services/Patient): `Services/Patient`
- [Gestion médecins](https://github.com/riahandria/gestionpatient/tree/main/Services/Medecin): `Services/Medecin`
- [Fonctions médicales](https://github.com/riahandria/gestionpatient/blob/main/Services/FonctionService.cs): `Services/FonctionService.cs`
- [Recherche patients](https://github.com/riahandria/gestionpatient/blob/main/Services/PatientLookupService.cs): `Services/PatientLookupService.cs`

### Rendez-vous

- [Disponibilités](https://github.com/riahandria/gestionpatient/tree/main/Services/Disponibilite): `Services/Disponibilite`
- [Services médicaux](https://github.com/riahandria/gestionpatient/blob/main/Services/ServiceMedicalLookupService.cs): `Services/ServiceMedicalLookupService.cs`
- [Gestion rendez-vous](https://github.com/riahandria/gestionpatient/tree/main/Services/RendezVous): `Services/RendezVous`

### Soins

- [Consultations et dossiers](https://github.com/riahandria/gestionpatient/tree/main/Services/Consultation): `Services/Consultation`

### Paiements et alertes

- [Paiement et factures](https://github.com/riahandria/gestionpatient/tree/main/Services/Paiement): `Services/Paiement`
- [Rappels et alertes](https://github.com/riahandria/gestionpatient/tree/main/Services/Rappel): `Services/Rappel`

### Other components

- **PostgreSQL**

## Connections

- Assistant rendez-vous → Services médicaux: charge les services (evidence: `Views/RendezVous/Assistant/Etape2ChoixServiceView.xaml.cs`)
- Services médicaux → Fonctions médicales: dérive des fonctions (evidence: `Services/ServiceMedicalLookupService.cs`)
- Disponibilités → Services médicaux: résout fonctions compatibles (evidence: `Services/Disponibilite/DisponibiliteService.Recherche.cs`)
- Assistant rendez-vous → Disponibilités: recherche créneaux
- Assistant rendez-vous → Gestion rendez-vous: crée rendez-vous
- Assistant rendez-vous → Recherche patients: sélectionne patient
- Patients → Gestion patients: gère patients
- Personnel médical → Gestion médecins: gère médecins
- Personnel médical → Disponibilités: gère disponibilités
- Consultations → Consultations et dossiers: enregistre consultations
- Consultations et dossiers → Paiement et factures: crée la facture (evidence: `Services/Consultation/ConsultationService.Enregistrement.cs`)
- Paiements → Paiement et factures: gère paiements
- Notifications → Rappels et alertes: consulte alertes
- Paiement et factures → PostgreSQL: lit et écrit (evidence: `Services/Paiement/PaiementService.Relance.cs`)
- Rappels et alertes → PostgreSQL: lit et écrit
- Disponibilités → PostgreSQL: recherche créneaux (evidence: `Services/Disponibilite/DisponibiliteService.Recherche.cs`)
- Gestion patients → PostgreSQL: lit et écrit (evidence: `Services/Patient/PatientService.Lecture.cs`)
- Gestion médecins → PostgreSQL: lit les médecins (evidence: `Services/Medecin/MedecinService.Lecture.cs`)
- Gestion rendez-vous → PostgreSQL: lit rendez-vous (evidence: `Services/RendezVous/RendezVousService.Lecture.cs`)
- Consultations et dossiers → PostgreSQL: enregistre consultations (evidence: `Services/Consultation/ConsultationService.Enregistrement.cs`)
- Fonctions médicales → PostgreSQL: lit et écrit (evidence: `Services/FonctionService.cs`)
