# olimjoneliboev/hospital-scheduling-system architecture

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

- Interactive diagram: https://gitdiagram.com/olimjoneliboev/hospital-scheduling-system
- Repository: https://github.com/olimjoneliboev/hospital-scheduling-system

## Overview

This is a console-based hospital scheduling system. The user-facing workflow is driven by HospitalSystem menus, with account registration and login supporting role-based access to hospital operations. The code models users, patients, doctors, and appointments, and uses text files under data/ for persistence. The excerpt shows appointment availability and rescheduling behavior, but does not expose the full menu dispatch or all scheduling operations; the graph therefore keeps those responsibilities within the central system node rather than guessing their call relationships.

Main entry points: [`hospital.cpp`](https://github.com/olimjoneliboev/hospital-scheduling-system/blob/main/hospital.cpp) (Hospital system), [`data`](https://github.com/olimjoneliboev/hospital-scheduling-system/tree/main/data) (Text-file data)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_app["Application"]
  node_entry["Program entry<br/>[hospital.cpp]"]
  node_system["Hospital system<br/>[hospital.cpp]"]
end

subgraph group_domain["Hospital domain"]
  node_auth["Authentication<br/>[hospital.cpp]"]
  node_records["Hospital records<br/>[hospital.cpp]"]
end

subgraph group_storage["Persistence"]
  node_files[("Text-file data")]
end

node_user(("Console user"))

node_user -.->|"uses menus"| node_system
node_entry -->|"runs"| node_system
node_system -->|"registers users"| node_auth
node_auth -->|"reads users"| node_files
node_system -->|"loads records"| node_files
node_system -->|"saves appointments"| node_files

click node_entry "https://github.com/olimjoneliboev/hospital-scheduling-system/blob/main/hospital.cpp"
click node_system "https://github.com/olimjoneliboev/hospital-scheduling-system/blob/main/hospital.cpp"
click node_auth "https://github.com/olimjoneliboev/hospital-scheduling-system/blob/main/hospital.cpp"
click node_records "https://github.com/olimjoneliboev/hospital-scheduling-system/blob/main/hospital.cpp"
click node_files "https://github.com/olimjoneliboev/hospital-scheduling-system/tree/main/data"

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_entry,node_system,node_user toneBlue
class node_auth,node_records toneAmber
class node_files toneMint
```

## Components

### Application

- [Program entry](https://github.com/olimjoneliboev/hospital-scheduling-system/blob/main/hospital.cpp): `hospital.cpp`
- [Hospital system](https://github.com/olimjoneliboev/hospital-scheduling-system/blob/main/hospital.cpp): `hospital.cpp`

### Hospital domain

- [Authentication](https://github.com/olimjoneliboev/hospital-scheduling-system/blob/main/hospital.cpp): `hospital.cpp`
- [Hospital records](https://github.com/olimjoneliboev/hospital-scheduling-system/blob/main/hospital.cpp): `hospital.cpp`

### Persistence

- [Text-file data](https://github.com/olimjoneliboev/hospital-scheduling-system/tree/main/data): `data`

### Other components

- **Console user**

## Connections

- Console user → Hospital system: uses menus
- Program entry → Hospital system: runs (evidence: `hospital.cpp`)
- Hospital system → Authentication: registers users (evidence: `hospital.cpp`)
- Authentication → Text-file data: reads users (evidence: `hospital.cpp`)
- Hospital system → Text-file data: loads records (evidence: `hospital.cpp`)
- Hospital system → Text-file data: saves appointments (evidence: `hospital.cpp`)
