# kieth-sy/aimsmile architecture

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

- Interactive diagram: https://gitdiagram.com/kieth-sy/aimsmile
- Repository: https://github.com/kieth-sy/aimsmile

## Overview

This is a Django dental-clinic management system. Patients and clinic staff use role-based web workflows: patients register or verify identity and book care; staff manage appointments and clinical records; the clinic handles prescriptions, billing, inventory and follow-up, while administrators oversee users, resources and activity. The README documents additional assistant, analytics and public-site capabilities. The graph reflects those documented branches, but unsampled views and route wiring are not inferred beyond the available references.

Main entry points: [`clinic/views.py`](https://github.com/kieth-sy/aimsmile/blob/main/clinic/views.py) (Appointments and Care), [`dental_clinic/urls.py`](https://github.com/kieth-sy/aimsmile/blob/main/dental_clinic/urls.py) (Django Web App), [`manage_panel/views.py`](https://github.com/kieth-sy/aimsmile/blob/main/manage_panel/views.py) (Management Console), [`accounts/views.py`](https://github.com/kieth-sy/aimsmile/blob/main/accounts/views.py) (Accounts and Dashboards)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_access["Identity and Access"]
  node_account_flows["Accounts and Dashboards<br/>[views.py]"]
  node_identity["Identity Verification"]
  node_identity_integrations["Account Integrations<br/>[integrations.py]"]
  node_account_data[("Account Data and Audit<br/>[models.py]")]
end

subgraph group_care["Clinic Care"]
  node_clinic_workflows["Appointments and Care<br/>[views.py]"]
  node_clinic_forms["Clinic Forms<br/>[forms.py]"]
  node_clinic_data[("Clinical Records<br/>[models.py]")]
end

subgraph group_operations["Clinic Operations"]
  node_clinic_integrations["Clinic Integrations<br/>[integrations.py]"]
  node_management["Management Console<br/>[views.py]"]
  node_resource_registry["Resource Registry<br/>[registry.py]"]
end

subgraph group_insights["Assistant and Insights"]
  node_assistant["Assistant Tools<br/>[engine.py]"]
  node_analytics["Clinic Analytics<br/>[analytics.py]"]
end

subgraph group_public["Public Website"]
  node_public_pages["Marketing Pages<br/>[views.py]"]
  node_page_data[("Page Content<br/>[models.py]")]
end

node_patient(("Patient"))
node_staff(("Clinic Staff"))
node_admin(("Administrator"))
node_web["Django Web App<br/>[urls.py]"]
node_mysql[("MySQL Database")]
node_local_ocr["Local OCR and Face Tools"]
node_google_calendar["Google Calendar"]
node_sms["SMS Provider"]

node_patient -->|"uses"| node_web
node_staff -->|"uses"| node_web
node_admin -->|"uses"| node_web
node_web -.->|"routes to"| node_account_flows
node_web -.->|"routes to"| node_clinic_workflows
node_web -.->|"routes to"| node_management
node_web -.->|"routes to"| node_assistant
node_web -.->|"routes to"| node_public_pages
node_account_flows -->|"uses"| node_identity
node_account_flows -->|"uses"| node_identity_integrations
node_account_flows -->|"reads and writes"| node_account_data
node_account_flows -.->|"redirects to"| node_clinic_workflows
node_identity -->|"processes locally"| node_local_ocr
node_identity -->|"stores verification"| node_account_data
node_clinic_workflows -->|"uses"| node_clinic_forms
node_clinic_workflows -->|"reads and writes"| node_clinic_data
node_clinic_workflows -->|"uses risk tools"| node_assistant
node_clinic_workflows -->|"uses"| node_clinic_integrations
node_clinic_workflows -->|"uses"| node_analytics
node_clinic_workflows -->|"records activity"| node_account_data
node_clinic_integrations -->|"syncs appointments"| node_google_calendar
node_clinic_integrations -->|"sends notices"| node_sms
node_management -->|"uses"| node_resource_registry
node_management -->|"manages accounts and logs"| node_account_data
node_management -->|"manages clinic resources"| node_clinic_data
node_management -->|"uses"| node_analytics
node_management -->|"manages content"| node_page_data
node_assistant -->|"provides guidance"| node_patient
node_analytics -->|"summarizes"| node_clinic_data
node_public_pages -.->|"reads"| node_page_data
node_account_data -->|"persists to"| node_mysql
node_clinic_data -->|"persists to"| node_mysql
node_page_data -->|"persists to"| node_mysql

click node_web "https://github.com/kieth-sy/aimsmile/blob/main/dental_clinic/urls.py"
click node_account_flows "https://github.com/kieth-sy/aimsmile/blob/main/accounts/views.py"
click node_identity "https://github.com/kieth-sy/aimsmile/blob/main/accounts/identity_verification.py"
click node_identity_integrations "https://github.com/kieth-sy/aimsmile/blob/main/accounts/integrations.py"
click node_account_data "https://github.com/kieth-sy/aimsmile/blob/main/accounts/models.py"
click node_clinic_workflows "https://github.com/kieth-sy/aimsmile/blob/main/clinic/views.py"
click node_clinic_forms "https://github.com/kieth-sy/aimsmile/blob/main/clinic/forms.py"
click node_clinic_data "https://github.com/kieth-sy/aimsmile/blob/main/clinic/models.py"
click node_clinic_integrations "https://github.com/kieth-sy/aimsmile/blob/main/clinic/integrations.py"
click node_management "https://github.com/kieth-sy/aimsmile/blob/main/manage_panel/views.py"
click node_resource_registry "https://github.com/kieth-sy/aimsmile/blob/main/manage_panel/registry.py"
click node_assistant "https://github.com/kieth-sy/aimsmile/blob/main/aiassistant/engine.py"
click node_analytics "https://github.com/kieth-sy/aimsmile/blob/main/clinic/analytics.py"
click node_public_pages "https://github.com/kieth-sy/aimsmile/blob/main/pages/views.py"
click node_page_data "https://github.com/kieth-sy/aimsmile/blob/main/pages/models.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_account_flows,node_identity,node_identity_integrations,node_account_data toneBlue
class node_clinic_workflows,node_clinic_forms,node_clinic_data,node_mysql toneAmber
class node_clinic_integrations,node_management,node_resource_registry toneMint
class node_assistant,node_analytics toneRose
class node_public_pages,node_page_data,node_patient,node_staff,node_admin,node_local_ocr,node_google_calendar,node_sms toneIndigo
class node_web toneTeal
```

## Components

### Identity and Access

- [Accounts and Dashboards](https://github.com/kieth-sy/aimsmile/blob/main/accounts/views.py): `accounts/views.py`
- [Identity Verification](https://github.com/kieth-sy/aimsmile/blob/main/accounts/identity_verification.py): `accounts/identity_verification.py`
- [Account Integrations](https://github.com/kieth-sy/aimsmile/blob/main/accounts/integrations.py): `accounts/integrations.py`
- [Account Data and Audit](https://github.com/kieth-sy/aimsmile/blob/main/accounts/models.py): `accounts/models.py`

### Clinic Care

- [Appointments and Care](https://github.com/kieth-sy/aimsmile/blob/main/clinic/views.py): `clinic/views.py`
- [Clinic Forms](https://github.com/kieth-sy/aimsmile/blob/main/clinic/forms.py): `clinic/forms.py`
- [Clinical Records](https://github.com/kieth-sy/aimsmile/blob/main/clinic/models.py): `clinic/models.py`

### Clinic Operations

- [Clinic Integrations](https://github.com/kieth-sy/aimsmile/blob/main/clinic/integrations.py): `clinic/integrations.py`
- [Management Console](https://github.com/kieth-sy/aimsmile/blob/main/manage_panel/views.py): `manage_panel/views.py`
- [Resource Registry](https://github.com/kieth-sy/aimsmile/blob/main/manage_panel/registry.py): `manage_panel/registry.py`

### Assistant and Insights

- [Assistant Tools](https://github.com/kieth-sy/aimsmile/blob/main/aiassistant/engine.py): `aiassistant/engine.py`
- [Clinic Analytics](https://github.com/kieth-sy/aimsmile/blob/main/clinic/analytics.py): `clinic/analytics.py`

### Public Website

- [Marketing Pages](https://github.com/kieth-sy/aimsmile/blob/main/pages/views.py): `pages/views.py`
- [Page Content](https://github.com/kieth-sy/aimsmile/blob/main/pages/models.py): `pages/models.py`

### Other components

- **Patient**
- **Clinic Staff**
- **Administrator**
- [Django Web App](https://github.com/kieth-sy/aimsmile/blob/main/dental_clinic/urls.py): `dental_clinic/urls.py`
- **MySQL Database**
- **Local OCR and Face Tools**
- **Google Calendar**
- **SMS Provider**

## Connections

- Patient → Django Web App: uses (evidence: `README.md`)
- Clinic Staff → Django Web App: uses (evidence: `README.md`)
- Administrator → Django Web App: uses (evidence: `README.md`)
- Django Web App → Accounts and Dashboards: routes to
- Django Web App → Appointments and Care: routes to
- Django Web App → Management Console: routes to
- Django Web App → Assistant Tools: routes to
- Django Web App → Marketing Pages: routes to
- Accounts and Dashboards → Identity Verification: uses (evidence: `accounts/views.py`)
- Accounts and Dashboards → Account Integrations: uses (evidence: `accounts/views.py`)
- Accounts and Dashboards → Account Data and Audit: reads and writes (evidence: `accounts/views.py`)
- Accounts and Dashboards → Appointments and Care: redirects to
- Identity Verification → Local OCR and Face Tools: processes locally (evidence: `README.md`)
- Identity Verification → Account Data and Audit: stores verification (evidence: `README.md`)
- Appointments and Care → Clinic Forms: uses (evidence: `clinic/views.py`)
- Appointments and Care → Clinical Records: reads and writes (evidence: `clinic/views.py`)
- Appointments and Care → Assistant Tools: uses risk tools (evidence: `clinic/views.py`)
- Appointments and Care → Clinic Integrations: uses (evidence: `clinic/views.py`)
- Appointments and Care → Clinic Analytics: uses (evidence: `clinic/views.py`)
- Appointments and Care → Account Data and Audit: records activity (evidence: `clinic/views.py`)
- Clinic Integrations → Google Calendar: syncs appointments (evidence: `clinic/integrations.py`)
- Clinic Integrations → SMS Provider: sends notices (evidence: `clinic/integrations.py`)
- Management Console → Resource Registry: uses (evidence: `manage_panel/views.py`)
- Management Console → Account Data and Audit: manages accounts and logs (evidence: `manage_panel/views.py`)
- Management Console → Clinical Records: manages clinic resources (evidence: `manage_panel/views.py`)
- Management Console → Clinic Analytics: uses (evidence: `manage_panel/views.py`)
- Management Console → Page Content: manages content (evidence: `manage_panel/views.py`)
- Assistant Tools → Patient: provides guidance (evidence: `README.md`)
- Clinic Analytics → Clinical Records: summarizes (evidence: `clinic/analytics.py`)
- Marketing Pages → Page Content: reads
- Account Data and Audit → MySQL Database: persists to (evidence: `README.md`)
- Clinical Records → MySQL Database: persists to (evidence: `README.md`)
- Page Content → MySQL Database: persists to (evidence: `README.md`)
