# zeeelord/hospital_management-system_- architecture

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

- Interactive diagram: https://gitdiagram.com/zeeelord/hospital_management-system_-
- Repository: https://github.com/zeeelord/hospital_management-system_-

## Overview

This is a small, command-line hospital-management program, but the supplied implementation is an unfinished template with many TODOs. Its intended workflow initializes an administrator, doctors and patients, prompts for administrator login, then offers doctor management, patient discharge and viewing, doctor assignment, and administrator-detail updates. The implemented assignment path displays patients and symptoms, validates selected IDs, and uses the doctor list; patient/doctor linking is still a TODO. Doctor management and discharge capabilities are represented by Admin methods but are not wired from the menu. There is no persistent store or external service.

Main entry points: [`Main.py`](https://github.com/zeeelord/hospital_management-system_-/blob/main/Main.py) (Menu and setup), [`Admin.py`](https://github.com/zeeelord/hospital_management-system_-/blob/main/Admin.py) (Doctor assignment), [`Doctor.py`](https://github.com/zeeelord/hospital_management-system_-/blob/main/Doctor.py) (Doctor record), [`Patient.py`](https://github.com/zeeelord/hospital_management-system_-/blob/main/Patient.py) (Patient record)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_app["Command-line app"]
  node_cli["Menu and setup<br/>[Main.py]"]
end

subgraph group_admin["Administration"]
  node_admin_login["Login<br/>[Admin.py]"]
  node_doctor_admin["Doctor management<br/>[Admin.py]"]
  node_patient_admin["Patient operations<br/>[Admin.py]"]
  node_assignment["Doctor assignment<br/>[Admin.py]"]
  node_admin_details["Admin details<br/>[Admin.py]"]
  node_admin_helpers["List and ID helpers<br/>[Admin.py]"]
end

subgraph group_domain["Hospital records"]
  node_doctor["Doctor record<br/>[Doctor.py]"]
  node_patient["Patient record<br/>[Patient.py]"]
end

node_operator(("Administrator"))

node_operator -->|"uses"| node_cli
node_cli -->|"prompts login"| node_admin_login
node_cli -->|"dispatches assignment"| node_assignment
node_cli -->|"dispatches update"| node_admin_details
node_cli -->|"initializes"| node_doctor
node_cli -->|"initializes"| node_patient
node_assignment -->|"prints symptoms"| node_patient
node_assignment -->|"validates IDs"| node_admin_helpers
node_doctor_admin -->|"reads doctor fields"| node_doctor
node_doctor_admin -->|"lists and checks"| node_admin_helpers
node_patient_admin -->|"lists patients"| node_admin_helpers

click node_cli "https://github.com/zeeelord/hospital_management-system_-/blob/main/Main.py"
click node_admin_login "https://github.com/zeeelord/hospital_management-system_-/blob/main/Admin.py"
click node_doctor_admin "https://github.com/zeeelord/hospital_management-system_-/blob/main/Admin.py"
click node_patient_admin "https://github.com/zeeelord/hospital_management-system_-/blob/main/Admin.py"
click node_assignment "https://github.com/zeeelord/hospital_management-system_-/blob/main/Admin.py"
click node_admin_details "https://github.com/zeeelord/hospital_management-system_-/blob/main/Admin.py"
click node_admin_helpers "https://github.com/zeeelord/hospital_management-system_-/blob/main/Admin.py"
click node_doctor "https://github.com/zeeelord/hospital_management-system_-/blob/main/Doctor.py"
click node_patient "https://github.com/zeeelord/hospital_management-system_-/blob/main/Patient.py"

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_cli toneBlue
class node_admin_login,node_doctor_admin,node_patient_admin,node_assignment,node_admin_details,node_admin_helpers toneAmber
class node_doctor,node_patient toneMint
class node_operator toneIndigo
```

## Components

### Command-line app

- [Menu and setup](https://github.com/zeeelord/hospital_management-system_-/blob/main/Main.py): `Main.py`

### Administration

- [Login](https://github.com/zeeelord/hospital_management-system_-/blob/main/Admin.py): `Admin.py`
- [Doctor management](https://github.com/zeeelord/hospital_management-system_-/blob/main/Admin.py): `Admin.py`
- [Patient operations](https://github.com/zeeelord/hospital_management-system_-/blob/main/Admin.py): `Admin.py`
- [Doctor assignment](https://github.com/zeeelord/hospital_management-system_-/blob/main/Admin.py): `Admin.py`
- [Admin details](https://github.com/zeeelord/hospital_management-system_-/blob/main/Admin.py): `Admin.py`
- [List and ID helpers](https://github.com/zeeelord/hospital_management-system_-/blob/main/Admin.py): `Admin.py`

### Hospital records

- [Doctor record](https://github.com/zeeelord/hospital_management-system_-/blob/main/Doctor.py): `Doctor.py`
- [Patient record](https://github.com/zeeelord/hospital_management-system_-/blob/main/Patient.py): `Patient.py`

### Other components

- **Administrator**

## Connections

- Administrator → Menu and setup: uses (evidence: `Main.py`)
- Menu and setup → Login: prompts login (evidence: `Main.py`)
- Menu and setup → Doctor assignment: dispatches assignment (evidence: `Main.py`)
- Menu and setup → Admin details: dispatches update (evidence: `Main.py`)
- Menu and setup → Doctor record: initializes (evidence: `Main.py`)
- Menu and setup → Patient record: initializes (evidence: `Main.py`)
- Doctor assignment → Patient record: prints symptoms (evidence: `Admin.py`)
- Doctor assignment → List and ID helpers: validates IDs (evidence: `Admin.py`)
- Doctor management → Doctor record: reads doctor fields (evidence: `Admin.py`)
- Doctor management → List and ID helpers: lists and checks (evidence: `Admin.py`)
- Patient operations → List and ID helpers: lists patients (evidence: `Admin.py`)
