# dinesh27-12-2006/intellginece-health-care-portal_vsb architecture

> Architecture diagram of the GitHub repository dinesh27-12-2006/intellginece-health-care-portal_vsb, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-03). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/dinesh27-12-2006/intellginece-health-care-portal_vsb
- Repository: https://github.com/dinesh27-12-2006/intellginece-health-care-portal_vsb

## Overview

MediGrid is a static healthcare portal for patient authentication, live doctor availability, appointment booking, and viewing bookings. The documented flow is patient → login/signup → session-gated dashboard → select a doctor and open slot → create an appointment → display its ticket; patients can also review their appointments. The README describes JavaScript and schema modules that are absent from the supplied file tree, so the graph maps documented behavior to the existing HTML pages and does not imply those missing files were inspected.

Main entry points: [`dashboard.html`](https://github.com/dinesh27-12-2006/intellginece-health-care-portal_vsb/blob/main/dashboard.html) (Dashboard), [`login.html`](https://github.com/dinesh27-12-2006/intellginece-health-care-portal_vsb/blob/main/login.html) (Login), [`signup.html`](https://github.com/dinesh27-12-2006/intellginece-health-care-portal_vsb/blob/main/signup.html) (Patient signup), [`index.html`](https://github.com/dinesh27-12-2006/intellginece-health-care-portal_vsb/blob/main/index.html) (Landing page)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_access["Patient access"]
  node_landing["Landing page<br/>[index.html]"]
  node_login["Login<br/>[login.html]"]
  node_signup["Patient signup<br/>[signup.html]"]
  node_auth["Supabase Auth"]
end

subgraph group_care["Doctor status"]
  node_dashboard["Dashboard<br/>[dashboard.html]"]
  node_doctors[("Doctor directory")]
  node_realtime["Realtime updates"]
end

subgraph group_booking["Appointments"]
  node_slots[("Open slots")]
  node_appointments[("Appointments")]
  node_ticket["Ticket display<br/>[dashboard.html]"]
end

node_patient(("Patient"))

node_patient -->|"opens"| node_landing
node_patient -->|"signs in"| node_login
node_patient -->|"signs up"| node_signup
node_login -->|"authenticates"| node_auth
node_signup -->|"registers"| node_auth
node_auth -->|"gates session"| node_dashboard
node_dashboard -->|"reads"| node_doctors
node_realtime -->|"refreshes board"| node_dashboard
node_dashboard -->|"lists open slots"| node_slots
node_dashboard -->|"inserts booking"| node_appointments
node_appointments -->|"trigger books"| node_slots
node_appointments -->|"returns ticket code"| node_ticket
node_dashboard -->|"shows patient bookings"| node_appointments

click node_landing "https://github.com/dinesh27-12-2006/intellginece-health-care-portal_vsb/blob/main/index.html"
click node_login "https://github.com/dinesh27-12-2006/intellginece-health-care-portal_vsb/blob/main/login.html"
click node_signup "https://github.com/dinesh27-12-2006/intellginece-health-care-portal_vsb/blob/main/signup.html"
click node_dashboard "https://github.com/dinesh27-12-2006/intellginece-health-care-portal_vsb/blob/main/dashboard.html"
click node_ticket "https://github.com/dinesh27-12-2006/intellginece-health-care-portal_vsb/blob/main/dashboard.html"

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_landing,node_login,node_signup,node_auth toneBlue
class node_dashboard,node_doctors,node_realtime toneAmber
class node_slots,node_appointments,node_ticket toneMint
class node_patient toneIndigo
```

## Components

### Patient access

- [Landing page](https://github.com/dinesh27-12-2006/intellginece-health-care-portal_vsb/blob/main/index.html): `index.html`
- [Login](https://github.com/dinesh27-12-2006/intellginece-health-care-portal_vsb/blob/main/login.html): `login.html`
- [Patient signup](https://github.com/dinesh27-12-2006/intellginece-health-care-portal_vsb/blob/main/signup.html): `signup.html`
- **Supabase Auth**

### Doctor status

- [Dashboard](https://github.com/dinesh27-12-2006/intellginece-health-care-portal_vsb/blob/main/dashboard.html): `dashboard.html`
- **Doctor directory**
- **Realtime updates**

### Appointments

- **Open slots**
- **Appointments**
- [Ticket display](https://github.com/dinesh27-12-2006/intellginece-health-care-portal_vsb/blob/main/dashboard.html): `dashboard.html`

### Other components

- **Patient**

## Connections

- Patient → Landing page: opens (evidence: `README.md`)
- Patient → Login: signs in (evidence: `README.md`)
- Patient → Patient signup: signs up (evidence: `README.md`)
- Login → Supabase Auth: authenticates (evidence: `README.md`)
- Patient signup → Supabase Auth: registers (evidence: `README.md`)
- Supabase Auth → Dashboard: gates session (evidence: `README.md`)
- Dashboard → Doctor directory: reads (evidence: `README.md`)
- Realtime updates → Dashboard: refreshes board (evidence: `README.md`)
- Dashboard → Open slots: lists open slots (evidence: `README.md`)
- Dashboard → Appointments: inserts booking (evidence: `README.md`)
- Appointments → Open slots: trigger books (evidence: `README.md`)
- Appointments → Ticket display: returns ticket code (evidence: `README.md`)
- Dashboard → Appointments: shows patient bookings (evidence: `README.md`)
