# gmelan2002/dental-management-system architecture

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

- Interactive diagram: https://gitdiagram.com/gmelan2002/dental-management-system
- Repository: https://github.com/gmelan2002/dental-management-system

## Overview

This is a static, browser-based dental practice and multi-branch management demo. Its principal workflow is clinic staff managing patients and appointments, recording clinical care, and handling operational transactions; HQ pages provide cross-branch oversight. The README also documents aligner tracking, lab submissions, staff, reporting, account, and support capabilities. Only demo-db.js was sampled, so page-to-store wiring and most internal calls cannot be verified; documented capabilities are represented without guessed links.

Main entry points: [`clinical_notes.html`](https://github.com/gmelan2002/dental-management-system/blob/main/clinical_notes.html) (Clinical notes), [`dashboard.html`](https://github.com/gmelan2002/dental-management-system/blob/main/dashboard.html) (Branch dashboard), [`hq_leads.html`](https://github.com/gmelan2002/dental-management-system/blob/main/hq_leads.html) (Lead management), [`demo-db.js`](https://github.com/gmelan2002/dental-management-system/blob/main/demo-db.js) (Demo data store)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_branch["Branch Care"]
  node_patients["Patient records"]
  node_appointments["Appointments<br/>[calendar.html]"]
  node_clinical["Clinical notes"]
  node_jaw["3D odontogram<br/>[jaw_model.glb]"]
  node_aligners["Aligner tracker<br/>[aligner.html]"]
  node_dashboard["Branch dashboard<br/>[dashboard.html]"]
end

subgraph group_operations["Clinic Operations"]
  node_billing["Billing<br/>[billing.html]"]
  node_expenses["Expenses<br/>[expenses.html]"]
  node_attendance["Attendance<br/>[attendance.html]"]
  node_inventory["Inventory<br/>[inventory.html]"]
  node_lab["Lab cases"]
  node_stafftools["Staff workspace"]
end

subgraph group_hq["HQ Oversight"]
  node_leads["Lead management<br/>[hq_leads.html]"]
  node_hqpatients["HQ patient view"]
  node_hqlab["HQ lab orders<br/>[hq_lab_orders.html]"]
  node_hqinvent["HQ inventory<br/>[hq_inventory.html]"]
  node_hqdoctors["HQ doctors<br/>[hq_doctors.html]"]
  node_summaries["Daily summaries"]
  node_reports["Reports<br/>[hq_reports.html]"]
end

subgraph group_platform["Demo Platform"]
  node_demo[("Demo data store<br/>[demo-db.js]")]
  node_login["Account access<br/>[login.html]"]
  node_support["Support pages<br/>[contact.html]"]
end

node_staff(("Clinic staff"))
node_webforms{{"Web3Forms"}}

node_staff -.->|"manages"| node_patients
node_staff -.->|"books"| node_appointments
node_staff -.->|"records care"| node_clinical
node_clinical -.->|"uses model"| node_jaw
node_staff -.->|"tracks progress"| node_aligners
node_staff -.->|"bills patients"| node_billing
node_staff -.->|"logs expenses"| node_expenses
node_staff -.->|"marks attendance"| node_attendance
node_staff -.->|"submits cases"| node_lab
node_staff -.->|"uses"| node_stafftools
node_staff -.->|"views"| node_dashboard
node_dashboard -.->|"shows alerts"| node_inventory
node_leads -.->|"optional form wiring"| node_webforms
node_demo -.->|"supplies demo auth"| node_login

click node_patients "https://github.com/gmelan2002/dental-management-system/blob/main/patient_registration.html"
click node_appointments "https://github.com/gmelan2002/dental-management-system/blob/main/calendar.html"
click node_clinical "https://github.com/gmelan2002/dental-management-system/blob/main/clinical_notes.html"
click node_jaw "https://github.com/gmelan2002/dental-management-system/blob/main/assets/3d/jaw_model.glb"
click node_aligners "https://github.com/gmelan2002/dental-management-system/blob/main/aligner.html"
click node_dashboard "https://github.com/gmelan2002/dental-management-system/blob/main/dashboard.html"
click node_billing "https://github.com/gmelan2002/dental-management-system/blob/main/billing.html"
click node_expenses "https://github.com/gmelan2002/dental-management-system/blob/main/expenses.html"
click node_attendance "https://github.com/gmelan2002/dental-management-system/blob/main/attendance.html"
click node_inventory "https://github.com/gmelan2002/dental-management-system/blob/main/inventory.html"
click node_lab "https://github.com/gmelan2002/dental-management-system/blob/main/cdl_submission.html"
click node_stafftools "https://github.com/gmelan2002/dental-management-system/blob/main/staff_workspace.html"
click node_leads "https://github.com/gmelan2002/dental-management-system/blob/main/hq_leads.html"
click node_hqpatients "https://github.com/gmelan2002/dental-management-system/blob/main/hq_patient_view.html"
click node_hqlab "https://github.com/gmelan2002/dental-management-system/blob/main/hq_lab_orders.html"
click node_hqinvent "https://github.com/gmelan2002/dental-management-system/blob/main/hq_inventory.html"
click node_hqdoctors "https://github.com/gmelan2002/dental-management-system/blob/main/hq_doctors.html"
click node_summaries "https://github.com/gmelan2002/dental-management-system/blob/main/hq_daily_summaries.html"
click node_reports "https://github.com/gmelan2002/dental-management-system/blob/main/hq_reports.html"
click node_demo "https://github.com/gmelan2002/dental-management-system/blob/main/demo-db.js"
click node_login "https://github.com/gmelan2002/dental-management-system/blob/main/login.html"
click node_support "https://github.com/gmelan2002/dental-management-system/blob/main/contact.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_patients,node_appointments,node_clinical,node_jaw,node_aligners,node_dashboard toneBlue
class node_billing,node_expenses,node_attendance,node_inventory,node_lab,node_stafftools toneAmber
class node_leads,node_hqpatients,node_hqlab,node_hqinvent,node_hqdoctors,node_summaries,node_reports toneMint
class node_demo,node_login,node_support toneRose
class node_staff,node_webforms toneIndigo
```

## Components

### Branch Care

- [Patient records](https://github.com/gmelan2002/dental-management-system/blob/main/patient_registration.html): `patient_registration.html`
- [Appointments](https://github.com/gmelan2002/dental-management-system/blob/main/calendar.html): `calendar.html`
- [Clinical notes](https://github.com/gmelan2002/dental-management-system/blob/main/clinical_notes.html): `clinical_notes.html`
- [3D odontogram](https://github.com/gmelan2002/dental-management-system/blob/main/assets/3d/jaw_model.glb): `assets/3d/jaw_model.glb`
- [Aligner tracker](https://github.com/gmelan2002/dental-management-system/blob/main/aligner.html): `aligner.html`
- [Branch dashboard](https://github.com/gmelan2002/dental-management-system/blob/main/dashboard.html): `dashboard.html`

### Clinic Operations

- [Billing](https://github.com/gmelan2002/dental-management-system/blob/main/billing.html): `billing.html`
- [Expenses](https://github.com/gmelan2002/dental-management-system/blob/main/expenses.html): `expenses.html`
- [Attendance](https://github.com/gmelan2002/dental-management-system/blob/main/attendance.html): `attendance.html`
- [Inventory](https://github.com/gmelan2002/dental-management-system/blob/main/inventory.html): `inventory.html`
- [Lab cases](https://github.com/gmelan2002/dental-management-system/blob/main/cdl_submission.html): `cdl_submission.html`
- [Staff workspace](https://github.com/gmelan2002/dental-management-system/blob/main/staff_workspace.html): `staff_workspace.html`

### HQ Oversight

- [Lead management](https://github.com/gmelan2002/dental-management-system/blob/main/hq_leads.html): `hq_leads.html`
- [HQ patient view](https://github.com/gmelan2002/dental-management-system/blob/main/hq_patient_view.html): `hq_patient_view.html`
- [HQ lab orders](https://github.com/gmelan2002/dental-management-system/blob/main/hq_lab_orders.html): `hq_lab_orders.html`
- [HQ inventory](https://github.com/gmelan2002/dental-management-system/blob/main/hq_inventory.html): `hq_inventory.html`
- [HQ doctors](https://github.com/gmelan2002/dental-management-system/blob/main/hq_doctors.html): `hq_doctors.html`
- [Daily summaries](https://github.com/gmelan2002/dental-management-system/blob/main/hq_daily_summaries.html): `hq_daily_summaries.html`
- [Reports](https://github.com/gmelan2002/dental-management-system/blob/main/hq_reports.html): `hq_reports.html`

### Demo Platform

- [Demo data store](https://github.com/gmelan2002/dental-management-system/blob/main/demo-db.js): `demo-db.js`
- [Account access](https://github.com/gmelan2002/dental-management-system/blob/main/login.html): `login.html`
- [Support pages](https://github.com/gmelan2002/dental-management-system/blob/main/contact.html): `contact.html`

### Other components

- **Clinic staff**
- **Web3Forms**

## Connections

- Clinic staff → Patient records: manages (evidence: `README.md`)
- Clinic staff → Appointments: books (evidence: `README.md`)
- Clinic staff → Clinical notes: records care (evidence: `README.md`)
- Clinical notes → 3D odontogram: uses model (evidence: `README.md`)
- Clinic staff → Aligner tracker: tracks progress (evidence: `README.md`)
- Clinic staff → Billing: bills patients (evidence: `README.md`)
- Clinic staff → Expenses: logs expenses (evidence: `README.md`)
- Clinic staff → Attendance: marks attendance (evidence: `README.md`)
- Clinic staff → Lab cases: submits cases (evidence: `README.md`)
- Clinic staff → Staff workspace: uses (evidence: `README.md`)
- Clinic staff → Branch dashboard: views (evidence: `README.md`)
- Branch dashboard → Inventory: shows alerts (evidence: `README.md`)
- Lead management → Web3Forms: optional form wiring (evidence: `README.md`)
- Demo data store → Account access: supplies demo auth (evidence: `README.md`)
