# abdullanishat/cuet-medical-center-management-system architecture

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

- Interactive diagram: https://gitdiagram.com/abdullanishat/cuet-medical-center-management-system
- Repository: https://github.com/abdullanishat/cuet-medical-center-management-system

## Overview

CUET Medical Center Management System is a menu-driven Bash application for student/patient, doctor, and admin workflows. Users enter through the main menu; documented capabilities cover registration and approval, appointments and prescriptions, service requests, feedback, and resource management, with records stored in pipe-delimited text files. The tree contains only main.sh and no source excerpts, so component paths point to that script; relationships below are based on README statements, not inspected call sites.

Main entry points: [`main.sh`](https://github.com/abdullanishat/cuet-medical-center-management-system/blob/main/main.sh) (Main Menu)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_access["Access and Accounts"]
  node_cli["Main Menu<br/>[main.sh]"]
  node_authentication["Role Login<br/>[main.sh]"]
  node_registration["Registration and OTP<br/>[main.sh]"]
  node_account_approval["Account Approval<br/>[main.sh]"]
end

subgraph group_care["Patient Care"]
  node_appointments["Appointments<br/>[main.sh]"]
  node_prescriptions["Prescriptions<br/>[main.sh]"]
  node_ambulance["Ambulance Requests<br/>[main.sh]"]
  node_medicine_requests["Medicine Requests<br/>[main.sh]"]
  node_feedback["Feedback and Replies<br/>[main.sh]"]
end

subgraph group_operations["Center Operations"]
  node_resource_management["Resource Management<br/>[main.sh]"]
  node_request_processing["Request Processing<br/>[main.sh]"]
end

subgraph group_storage["Data Storage"]
  node_text_database[("Pipe-Delimited Files")]
end

node_students(("Students / Patients"))
node_doctors(("Doctors"))
node_admins(("Administrators"))

node_students -->|"selects menu"| node_cli
node_doctors -->|"selects menu"| node_cli
node_admins -->|"selects menu"| node_cli
node_cli -->|"offers login"| node_authentication
node_cli -->|"offers registration"| node_registration
node_registration -->|"awaits approval"| node_account_approval
node_admins -->|"approves accounts"| node_account_approval
node_students -->|"books appointments"| node_appointments
node_admins -->|"reviews requests"| node_appointments
node_doctors -->|"views appointments"| node_appointments
node_doctors -->|"writes prescriptions"| node_prescriptions
node_students -->|"requests service"| node_ambulance
node_students -->|"requests medicine"| node_medicine_requests
node_admins -->|"processes requests"| node_request_processing
node_students -->|"submits feedback"| node_feedback
node_admins -->|"replies to feedback"| node_feedback
node_admins -->|"manages resources"| node_resource_management
node_appointments -->|"stores records"| node_text_database
node_prescriptions -->|"stores records"| node_text_database
node_ambulance -->|"stores requests"| node_text_database
node_medicine_requests -->|"stores requests"| node_text_database
node_feedback -->|"stores messages"| node_text_database
node_resource_management -->|"stores inventory"| node_text_database

click node_cli "https://github.com/abdullanishat/cuet-medical-center-management-system/blob/main/main.sh"
click node_authentication "https://github.com/abdullanishat/cuet-medical-center-management-system/blob/main/main.sh"
click node_registration "https://github.com/abdullanishat/cuet-medical-center-management-system/blob/main/main.sh"
click node_account_approval "https://github.com/abdullanishat/cuet-medical-center-management-system/blob/main/main.sh"
click node_appointments "https://github.com/abdullanishat/cuet-medical-center-management-system/blob/main/main.sh"
click node_prescriptions "https://github.com/abdullanishat/cuet-medical-center-management-system/blob/main/main.sh"
click node_ambulance "https://github.com/abdullanishat/cuet-medical-center-management-system/blob/main/main.sh"
click node_medicine_requests "https://github.com/abdullanishat/cuet-medical-center-management-system/blob/main/main.sh"
click node_feedback "https://github.com/abdullanishat/cuet-medical-center-management-system/blob/main/main.sh"
click node_resource_management "https://github.com/abdullanishat/cuet-medical-center-management-system/blob/main/main.sh"
click node_request_processing "https://github.com/abdullanishat/cuet-medical-center-management-system/blob/main/main.sh"

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,node_authentication,node_registration,node_account_approval toneBlue
class node_appointments,node_prescriptions,node_ambulance,node_medicine_requests,node_feedback toneAmber
class node_resource_management,node_request_processing toneMint
class node_text_database toneRose
class node_students,node_doctors,node_admins toneIndigo
```

## Components

### Access and Accounts

- [Main Menu](https://github.com/abdullanishat/cuet-medical-center-management-system/blob/main/main.sh): `main.sh`
- [Role Login](https://github.com/abdullanishat/cuet-medical-center-management-system/blob/main/main.sh): `main.sh`
- [Registration and OTP](https://github.com/abdullanishat/cuet-medical-center-management-system/blob/main/main.sh): `main.sh`
- [Account Approval](https://github.com/abdullanishat/cuet-medical-center-management-system/blob/main/main.sh): `main.sh`

### Patient Care

- [Appointments](https://github.com/abdullanishat/cuet-medical-center-management-system/blob/main/main.sh): `main.sh`
- [Prescriptions](https://github.com/abdullanishat/cuet-medical-center-management-system/blob/main/main.sh): `main.sh`
- [Ambulance Requests](https://github.com/abdullanishat/cuet-medical-center-management-system/blob/main/main.sh): `main.sh`
- [Medicine Requests](https://github.com/abdullanishat/cuet-medical-center-management-system/blob/main/main.sh): `main.sh`
- [Feedback and Replies](https://github.com/abdullanishat/cuet-medical-center-management-system/blob/main/main.sh): `main.sh`

### Center Operations

- [Resource Management](https://github.com/abdullanishat/cuet-medical-center-management-system/blob/main/main.sh): `main.sh`
- [Request Processing](https://github.com/abdullanishat/cuet-medical-center-management-system/blob/main/main.sh): `main.sh`

### Data Storage

- **Pipe-Delimited Files**

### Other components

- **Students / Patients**
- **Doctors**
- **Administrators**

## Connections

- Students / Patients → Main Menu: selects menu (evidence: `README.md`)
- Doctors → Main Menu: selects menu (evidence: `README.md`)
- Administrators → Main Menu: selects menu (evidence: `README.md`)
- Main Menu → Role Login: offers login (evidence: `README.md`)
- Main Menu → Registration and OTP: offers registration (evidence: `README.md`)
- Registration and OTP → Account Approval: awaits approval (evidence: `README.md`)
- Administrators → Account Approval: approves accounts (evidence: `README.md`)
- Students / Patients → Appointments: books appointments (evidence: `README.md`)
- Administrators → Appointments: reviews requests (evidence: `README.md`)
- Doctors → Appointments: views appointments (evidence: `README.md`)
- Doctors → Prescriptions: writes prescriptions (evidence: `README.md`)
- Students / Patients → Ambulance Requests: requests service (evidence: `README.md`)
- Students / Patients → Medicine Requests: requests medicine (evidence: `README.md`)
- Administrators → Request Processing: processes requests (evidence: `README.md`)
- Students / Patients → Feedback and Replies: submits feedback (evidence: `README.md`)
- Administrators → Feedback and Replies: replies to feedback (evidence: `README.md`)
- Administrators → Resource Management: manages resources (evidence: `README.md`)
- Appointments → Pipe-Delimited Files: stores records (evidence: `README.md`)
- Prescriptions → Pipe-Delimited Files: stores records (evidence: `README.md`)
- Ambulance Requests → Pipe-Delimited Files: stores requests (evidence: `README.md`)
- Medicine Requests → Pipe-Delimited Files: stores requests (evidence: `README.md`)
- Feedback and Replies → Pipe-Delimited Files: stores messages (evidence: `README.md`)
- Resource Management → Pipe-Delimited Files: stores inventory (evidence: `README.md`)
