# sadia-d/hospital-management architecture

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

- Interactive diagram: https://gitdiagram.com/sadia-d/hospital-management
- Repository: https://github.com/sadia-d/hospital-management

## Overview

NexaCare combines a hospital information website, browser-based patient triage and queue assistance, and a separate C appointment-booking program. The sampled JavaScript supports a workflow from patient details and symptoms through priority and department handling to token and queue information; the C program books, lists, and searches appointments in a text file. The README is empty, and the JavaScript excerpt is partial, so links to specific web forms and unsampled capabilities are not inferred.

Main entry points: [`index.html`](https://github.com/sadia-d/hospital-management/blob/main/index.html) (Landing Page), [`js/script.js`](https://github.com/sadia-d/hospital-management/blob/main/js/script.js) (Browser Assistance), [`registration.html`](https://github.com/sadia-d/hospital-management/blob/main/registration.html) (Registration), [`backend/appointment_system.c`](https://github.com/sadia-d/hospital-management/blob/main/backend/appointment_system.c) (Appointment Menu)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_web["Hospital Website"]
  node_index["Landing Page<br/>[index.html]"]
  node_services["Services<br/>[Services.html]"]
  node_doctors["Doctors<br/>[Doctors.html]"]
  node_about["About<br/>[About.html]"]
  node_contact["Contact<br/>[Contact.html]"]
  node_registration["Registration<br/>[registration.html]"]
end

subgraph group_queue["Patient Queue"]
  node_dashboard["Dashboard<br/>[dashboard.html]"]
  node_browser["Browser Assistance<br/>[script.js]"]
  node_triage["Triage And Tokens<br/>[script.js]"]
  node_queueview["Queue Status<br/>[script.js]"]
end

subgraph group_cli["Appointment CLI"]
  node_appointmentcli["Appointment Menu"]
  node_appointmentdata[("Appointment Records<br/>[appointments.txt]")]
end

node_patient(("Patient"))
node_cliuser(("CLI User"))

node_patient -->|"visits"| node_index
node_patient -->|"uses"| node_registration
node_index -->|"links to"| node_services
node_index -->|"links to"| node_doctors
node_index -->|"links to"| node_about
node_index -->|"links to"| node_contact
node_dashboard -->|"loads script"| node_browser
node_registration -->|"loads script"| node_browser
node_patient -->|"submits details"| node_browser
node_browser -->|"processes"| node_triage
node_triage -->|"updates queue info"| node_queueview
node_queueview -->|"shows status"| node_patient
node_patient -.->|"books separately"| node_cliuser
node_cliuser -->|"selects menu action"| node_appointmentcli
node_appointmentcli -->|"reads and writes"| node_appointmentdata

click node_index "https://github.com/sadia-d/hospital-management/blob/main/index.html"
click node_services "https://github.com/sadia-d/hospital-management/blob/main/Services.html"
click node_doctors "https://github.com/sadia-d/hospital-management/blob/main/Doctors.html"
click node_about "https://github.com/sadia-d/hospital-management/blob/main/About.html"
click node_contact "https://github.com/sadia-d/hospital-management/blob/main/Contact.html"
click node_registration "https://github.com/sadia-d/hospital-management/blob/main/registration.html"
click node_dashboard "https://github.com/sadia-d/hospital-management/blob/main/dashboard.html"
click node_browser "https://github.com/sadia-d/hospital-management/blob/main/js/script.js"
click node_triage "https://github.com/sadia-d/hospital-management/blob/main/js/script.js"
click node_queueview "https://github.com/sadia-d/hospital-management/blob/main/js/script.js"
click node_appointmentcli "https://github.com/sadia-d/hospital-management/blob/main/backend/appointment_system.c"
click node_appointmentdata "https://github.com/sadia-d/hospital-management/blob/main/backend/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_index,node_services,node_doctors,node_about,node_contact,node_registration,node_cliuser toneBlue
class node_dashboard,node_browser,node_triage,node_queueview toneAmber
class node_appointmentcli,node_appointmentdata toneMint
class node_patient toneIndigo
```

## Components

### Hospital Website

- [Landing Page](https://github.com/sadia-d/hospital-management/blob/main/index.html): `index.html`
- [Services](https://github.com/sadia-d/hospital-management/blob/main/Services.html): `Services.html`
- [Doctors](https://github.com/sadia-d/hospital-management/blob/main/Doctors.html): `Doctors.html`
- [About](https://github.com/sadia-d/hospital-management/blob/main/About.html): `About.html`
- [Contact](https://github.com/sadia-d/hospital-management/blob/main/Contact.html): `Contact.html`
- [Registration](https://github.com/sadia-d/hospital-management/blob/main/registration.html): `registration.html`

### Patient Queue

- [Dashboard](https://github.com/sadia-d/hospital-management/blob/main/dashboard.html): `dashboard.html`
- [Browser Assistance](https://github.com/sadia-d/hospital-management/blob/main/js/script.js): `js/script.js`
- [Triage And Tokens](https://github.com/sadia-d/hospital-management/blob/main/js/script.js): `js/script.js`
- [Queue Status](https://github.com/sadia-d/hospital-management/blob/main/js/script.js): `js/script.js`

### Appointment CLI

- [Appointment Menu](https://github.com/sadia-d/hospital-management/blob/main/backend/appointment_system.c): `backend/appointment_system.c`
- [Appointment Records](https://github.com/sadia-d/hospital-management/blob/main/backend/appointments.txt): `backend/appointments.txt`

### Other components

- **Patient**
- **CLI User**

## Connections

- Patient → Landing Page: visits
- Patient → Registration: uses
- Landing Page → Services: links to
- Landing Page → Doctors: links to
- Landing Page → About: links to
- Landing Page → Contact: links to
- Dashboard → Browser Assistance: loads script
- Registration → Browser Assistance: loads script
- Patient → Browser Assistance: submits details
- Browser Assistance → Triage And Tokens: processes
- Triage And Tokens → Queue Status: updates queue info
- Queue Status → Patient: shows status
- Patient → CLI User: books separately
- CLI User → Appointment Menu: selects menu action
- Appointment Menu → Appointment Records: reads and writes
