# eng-mohammed90/clinicappointmentschedulerproject architecture

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

- Interactive diagram: https://gitdiagram.com/eng-mohammed90/clinicappointmentschedulerproject
- Repository: https://github.com/eng-mohammed90/clinicappointmentschedulerproject

## Overview

This is a JavaFX clinic appointment desktop app. Users enter through login or account creation, then reach a dashboard and manage patients, doctors, and appointments; the dashboard also presents appointment summaries and a chatbot. Domain records and account data are stored in local text files rather than a database. The excerpts show several controller-to-model and file interactions, but not all UI wiring or controller implementations, so unsampled connections are omitted.

Main entry points: [`src/oneLastTime/AppointmentsController.java`](https://github.com/eng-mohammed90/clinicappointmentschedulerproject/blob/main/src/oneLastTime/AppointmentsController.java) (Appointment scheduling), [`src/oneLastTime/DashboardController.java`](https://github.com/eng-mohammed90/clinicappointmentschedulerproject/blob/main/src/oneLastTime/DashboardController.java) (Dashboard), [`src/oneLastTime/LogInController.java`](https://github.com/eng-mohammed90/clinicappointmentschedulerproject/blob/main/src/oneLastTime/LogInController.java) (Login handling), [`src/oneLastTime/DoctorsController.java`](https://github.com/eng-mohammed90/clinicappointmentschedulerproject/blob/main/src/oneLastTime/DoctorsController.java) (Doctor management)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_access["Account access"]
  node_app_start["App startup<br/>[Runner.java]"]
  node_login_window["Login window<br/>[Login.java]"]
  node_login["Login handling"]
  node_signup_window["Signup window<br/>[Signup.java]"]
  node_signup["Account creation"]
end

subgraph group_clinic["Clinic management"]
  node_patient_mgmt["Patient management"]
  node_doctor_mgmt["Doctor management"]
  node_appointment_mgmt["Appointment scheduling"]
end

subgraph group_insights["Dashboard features"]
  node_dashboard["Dashboard"]
  node_chatbot["Dashboard chatbot"]
end

subgraph group_records["Domain and files"]
  node_patient_model["Patient record<br/>[Patient.java]"]
  node_doctor_model["Doctor record<br/>[Doctor.java]"]
  node_appointment_model["Appointment record<br/>[Appointment.java]"]
  node_users_model["User account model<br/>[Users.java]"]
  node_user_file["User accounts file<br/>[users.txt]"]
  node_patient_file["Patient data files<br/>[patient.txt]"]
  node_doctors_file["Doctor data file<br/>[doctors.txt]"]
  node_appointments_file["Appointment data file<br/>[appointments.txt]"]
end

node_user(("User"))

node_user -->|"starts"| node_app_start
node_app_start -->|"opens"| node_login_window
node_login_window -->|"loads view"| node_login
node_login -->|"reads"| node_user_file
node_login -->|"opens"| node_dashboard
node_login -->|"opens"| node_signup_window
node_signup_window -->|"loads view"| node_signup
node_signup -->|"adds account"| node_users_model
node_signup -->|"loads login"| node_login
node_users_model -->|"appends"| node_user_file
node_dashboard -->|"reads"| node_appointments_file
node_dashboard -->|"reads"| node_patient_file
node_dashboard -->|"reads"| node_doctors_file
node_dashboard -->|"handles requests"| node_chatbot
node_patient_mgmt -->|"creates"| node_patient_model
node_patient_mgmt -->|"reads and writes"| node_patient_file
node_appointment_mgmt -->|"loads"| node_patient_model
node_appointment_mgmt -->|"loads"| node_doctor_model
node_appointment_mgmt -->|"creates"| node_appointment_model
node_appointment_mgmt -->|"reads and writes"| node_appointments_file
node_appointment_mgmt -->|"reads"| node_patient_file
node_appointment_mgmt -->|"reads"| node_doctors_file
node_doctor_mgmt -->|"creates"| node_doctor_model
node_doctor_mgmt -->|"reads and writes"| node_doctors_file
node_doctor_mgmt -->|"filters"| node_appointment_model
node_doctor_mgmt -->|"rewrites"| node_appointments_file

click node_app_start "https://github.com/eng-mohammed90/clinicappointmentschedulerproject/blob/main/src/oneLastTime/Runner.java"
click node_login_window "https://github.com/eng-mohammed90/clinicappointmentschedulerproject/blob/main/src/oneLastTime/Login.java"
click node_login "https://github.com/eng-mohammed90/clinicappointmentschedulerproject/blob/main/src/oneLastTime/LogInController.java"
click node_signup_window "https://github.com/eng-mohammed90/clinicappointmentschedulerproject/blob/main/src/oneLastTime/Signup.java"
click node_signup "https://github.com/eng-mohammed90/clinicappointmentschedulerproject/blob/main/src/oneLastTime/SignInController.java"
click node_dashboard "https://github.com/eng-mohammed90/clinicappointmentschedulerproject/blob/main/src/oneLastTime/DashboardController.java"
click node_patient_mgmt "https://github.com/eng-mohammed90/clinicappointmentschedulerproject/blob/main/src/oneLastTime/PatientsController.java"
click node_doctor_mgmt "https://github.com/eng-mohammed90/clinicappointmentschedulerproject/blob/main/src/oneLastTime/DoctorsController.java"
click node_appointment_mgmt "https://github.com/eng-mohammed90/clinicappointmentschedulerproject/blob/main/src/oneLastTime/AppointmentsController.java"
click node_chatbot "https://github.com/eng-mohammed90/clinicappointmentschedulerproject/blob/main/src/oneLastTime/DashboardController.java"
click node_patient_model "https://github.com/eng-mohammed90/clinicappointmentschedulerproject/blob/main/src/oneLastTime/Patient.java"
click node_doctor_model "https://github.com/eng-mohammed90/clinicappointmentschedulerproject/blob/main/src/oneLastTime/Doctor.java"
click node_appointment_model "https://github.com/eng-mohammed90/clinicappointmentschedulerproject/blob/main/src/oneLastTime/Appointment.java"
click node_users_model "https://github.com/eng-mohammed90/clinicappointmentschedulerproject/blob/main/src/oneLastTime/Users.java"
click node_user_file "https://github.com/eng-mohammed90/clinicappointmentschedulerproject/blob/main/src/oneLastTime/users.txt"
click node_patient_file "https://github.com/eng-mohammed90/clinicappointmentschedulerproject/blob/main/src/oneLastTime/patient.txt"
click node_doctors_file "https://github.com/eng-mohammed90/clinicappointmentschedulerproject/blob/main/doctors.txt"
click node_appointments_file "https://github.com/eng-mohammed90/clinicappointmentschedulerproject/blob/main/appointments.txt"

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_start,node_login_window,node_login,node_signup_window,node_signup,node_user toneBlue
class node_patient_mgmt,node_doctor_mgmt,node_appointment_mgmt toneAmber
class node_dashboard,node_chatbot toneMint
class node_patient_model,node_doctor_model,node_appointment_model,node_users_model,node_user_file,node_patient_file,node_doctors_file,node_appointments_file toneRose
```

## Components

### Account access

- [App startup](https://github.com/eng-mohammed90/clinicappointmentschedulerproject/blob/main/src/oneLastTime/Runner.java): `src/oneLastTime/Runner.java`
- [Login window](https://github.com/eng-mohammed90/clinicappointmentschedulerproject/blob/main/src/oneLastTime/Login.java): `src/oneLastTime/Login.java`
- [Login handling](https://github.com/eng-mohammed90/clinicappointmentschedulerproject/blob/main/src/oneLastTime/LogInController.java): `src/oneLastTime/LogInController.java`
- [Signup window](https://github.com/eng-mohammed90/clinicappointmentschedulerproject/blob/main/src/oneLastTime/Signup.java): `src/oneLastTime/Signup.java`
- [Account creation](https://github.com/eng-mohammed90/clinicappointmentschedulerproject/blob/main/src/oneLastTime/SignInController.java): `src/oneLastTime/SignInController.java`

### Clinic management

- [Patient management](https://github.com/eng-mohammed90/clinicappointmentschedulerproject/blob/main/src/oneLastTime/PatientsController.java): `src/oneLastTime/PatientsController.java`
- [Doctor management](https://github.com/eng-mohammed90/clinicappointmentschedulerproject/blob/main/src/oneLastTime/DoctorsController.java): `src/oneLastTime/DoctorsController.java`
- [Appointment scheduling](https://github.com/eng-mohammed90/clinicappointmentschedulerproject/blob/main/src/oneLastTime/AppointmentsController.java): `src/oneLastTime/AppointmentsController.java`

### Dashboard features

- [Dashboard](https://github.com/eng-mohammed90/clinicappointmentschedulerproject/blob/main/src/oneLastTime/DashboardController.java): `src/oneLastTime/DashboardController.java`
- [Dashboard chatbot](https://github.com/eng-mohammed90/clinicappointmentschedulerproject/blob/main/src/oneLastTime/DashboardController.java): `src/oneLastTime/DashboardController.java`

### Domain and files

- [Patient record](https://github.com/eng-mohammed90/clinicappointmentschedulerproject/blob/main/src/oneLastTime/Patient.java): `src/oneLastTime/Patient.java`
- [Doctor record](https://github.com/eng-mohammed90/clinicappointmentschedulerproject/blob/main/src/oneLastTime/Doctor.java): `src/oneLastTime/Doctor.java`
- [Appointment record](https://github.com/eng-mohammed90/clinicappointmentschedulerproject/blob/main/src/oneLastTime/Appointment.java): `src/oneLastTime/Appointment.java`
- [User account model](https://github.com/eng-mohammed90/clinicappointmentschedulerproject/blob/main/src/oneLastTime/Users.java): `src/oneLastTime/Users.java`
- [User accounts file](https://github.com/eng-mohammed90/clinicappointmentschedulerproject/blob/main/src/oneLastTime/users.txt): `src/oneLastTime/users.txt`
- [Patient data files](https://github.com/eng-mohammed90/clinicappointmentschedulerproject/blob/main/src/oneLastTime/patient.txt): `src/oneLastTime/patient.txt`
- [Doctor data file](https://github.com/eng-mohammed90/clinicappointmentschedulerproject/blob/main/doctors.txt): `doctors.txt`
- [Appointment data file](https://github.com/eng-mohammed90/clinicappointmentschedulerproject/blob/main/appointments.txt): `appointments.txt`

### Other components

- **User**

## Connections

- User → App startup: starts (evidence: `src/oneLastTime/Runner.java`)
- App startup → Login window: opens (evidence: `src/oneLastTime/Runner.java`)
- Login window → Login handling: loads view (evidence: `src/oneLastTime/Login.java`)
- Login handling → User accounts file: reads (evidence: `src/oneLastTime/LogInController.java`)
- Login handling → Dashboard: opens (evidence: `src/oneLastTime/LogInController.java`)
- Login handling → Signup window: opens (evidence: `src/oneLastTime/LogInController.java`)
- Signup window → Account creation: loads view (evidence: `src/oneLastTime/Signup.java`)
- Account creation → User account model: adds account (evidence: `src/oneLastTime/SignInController.java`)
- Account creation → Login handling: loads login (evidence: `src/oneLastTime/SignInController.java`)
- User account model → User accounts file: appends (evidence: `src/oneLastTime/Users.java`)
- Dashboard → Appointment data file: reads (evidence: `src/oneLastTime/DashboardController.java`)
- Dashboard → Patient data files: reads (evidence: `src/oneLastTime/DashboardController.java`)
- Dashboard → Doctor data file: reads (evidence: `src/oneLastTime/DashboardController.java`)
- Dashboard → Dashboard chatbot: handles requests (evidence: `src/oneLastTime/DashboardController.java`)
- Patient management → Patient record: creates (evidence: `src/oneLastTime/PatientsController.java`)
- Patient management → Patient data files: reads and writes (evidence: `src/oneLastTime/PatientsController.java`)
- Appointment scheduling → Patient record: loads (evidence: `src/oneLastTime/AppointmentsController.java`)
- Appointment scheduling → Doctor record: loads (evidence: `src/oneLastTime/AppointmentsController.java`)
- Appointment scheduling → Appointment record: creates (evidence: `src/oneLastTime/AppointmentsController.java`)
- Appointment scheduling → Appointment data file: reads and writes (evidence: `src/oneLastTime/AppointmentsController.java`)
- Appointment scheduling → Patient data files: reads (evidence: `src/oneLastTime/AppointmentsController.java`)
- Appointment scheduling → Doctor data file: reads (evidence: `src/oneLastTime/AppointmentsController.java`)
- Doctor management → Doctor record: creates (evidence: `src/oneLastTime/DoctorsController.java`)
- Doctor management → Doctor data file: reads and writes (evidence: `src/oneLastTime/DoctorsController.java`)
- Doctor management → Appointment record: filters (evidence: `src/oneLastTime/DoctorsController.java`)
- Doctor management → Appointment data file: rewrites (evidence: `src/oneLastTime/DoctorsController.java`)
