# fahmioz/clinic-queue-management-system architecture

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

- Interactive diagram: https://gitdiagram.com/fahmioz/clinic-queue-management-system
- Repository: https://github.com/fahmioz/clinic-queue-management-system

## Overview

This Java console application registers clinic patients, prioritizes them by urgency (FIFO within equal priority), and lets staff call the next patient or manage the waiting list. The main menu also supports updates, searches, queue display, and statistics. The queue implementation owns ordering and lookup state; Patient supplies the data and comparison behavior. The excerpts show the main dispatch and core queue operations, but omit parts of the menu, so feature-level call details are not expanded.

Main entry points: [`ClinicQueueSystem.java`](https://github.com/fahmioz/clinic-queue-management-system/blob/main/ClinicQueueSystem.java) (Interactive menu), [`ClinicQueue.java`](https://github.com/fahmioz/clinic-queue-management-system/blob/main/ClinicQueue.java) (Patient queue operations), [`Patient.java`](https://github.com/fahmioz/clinic-queue-management-system/blob/main/Patient.java) (Patient record and priority)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_interface["Console interface"]
  node_console["Interactive menu"]
end

subgraph group_queue["Queue management"]
  node_queue_service["Patient queue operations<br/>[ClinicQueue.java]"]
end

subgraph group_domain["Patient domain"]
  node_patient["Patient record and priority<br/>[Patient.java]"]
end

node_staff(("Clinic staff"))

node_staff -->|"enters choices"| node_console
node_console -->|"dispatches operations"| node_queue_service
node_queue_service -->|"creates and orders"| node_patient

click node_console "https://github.com/fahmioz/clinic-queue-management-system/blob/main/ClinicQueueSystem.java"
click node_queue_service "https://github.com/fahmioz/clinic-queue-management-system/blob/main/ClinicQueue.java"
click node_patient "https://github.com/fahmioz/clinic-queue-management-system/blob/main/Patient.java"

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_console toneBlue
class node_queue_service toneAmber
class node_patient toneMint
class node_staff toneIndigo
```

## Components

### Console interface

- [Interactive menu](https://github.com/fahmioz/clinic-queue-management-system/blob/main/ClinicQueueSystem.java): `ClinicQueueSystem.java`

### Queue management

- [Patient queue operations](https://github.com/fahmioz/clinic-queue-management-system/blob/main/ClinicQueue.java): `ClinicQueue.java`

### Patient domain

- [Patient record and priority](https://github.com/fahmioz/clinic-queue-management-system/blob/main/Patient.java): `Patient.java`

### Other components

- **Clinic staff**

## Connections

- Clinic staff → Interactive menu: enters choices (evidence: `README.md`)
- Interactive menu → Patient queue operations: dispatches operations (evidence: `ClinicQueueSystem.java`)
- Patient queue operations → Patient record and priority: creates and orders (evidence: `ClinicQueue.java`)
