# 0xhi50ka/capstone2_updated architecture

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

- Interactive diagram: https://gitdiagram.com/0xhi50ka/capstone2_updated
- Repository: https://github.com/0xhi50ka/capstone2_updated

## Overview

This repository appears to be a public healthcare information portal with a separate PHP administration area. The user-facing branches cover health services, nearby providers, symptom checking, health topics, events, and announcements; administrators manage content behind login. The supplied README is only a project title, and source excerpts are partial, so edges are limited to links and database operations explicitly shown or documented in the available material.

Main entry points: [`javascript/index.js`](https://github.com/0xhi50ka/capstone2_updated/blob/main/javascript/index.js) (Portal navigation), [`Admin2/crudServices.php`](https://github.com/0xhi50ka/capstone2_updated/blob/main/Admin2/crudServices.php) (Service content admin), [`DentalClinic.php`](https://github.com/0xhi50ka/capstone2_updated/blob/main/DentalClinic.php) (Nearby facilities), [`Admin2/index.php`](https://github.com/0xhi50ka/capstone2_updated/blob/main/Admin2/index.php) (Admin login)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_public["Public portal"]
  node_portal["Portal navigation<br/>[index.js]"]
end

subgraph group_care["Care discovery"]
  node_services["Health services<br/>[services.php]"]
  node_service_details["Service details<br/>[Generalconsult.php]"]
  node_nearby["Nearby facilities<br/>[DentalClinic.php]"]
  node_provider_locations["Provider locations<br/>[_dental1.php]"]
  node_symptom_pages["Symptom checker"]
  node_cough_check["Cough checker<br/>[coughai.php]"]
  node_cough_result["Cough results<br/>[resultcough.php]"]
end

subgraph group_information["Health information"]
  node_health_topics["Health topics<br/>[HTindex.js]"]
  node_topic_articles["Topic articles<br/>[HTindex1.js]"]
  node_events["Events<br/>[EventHeader.js]"]
  node_announcements["Announcements<br/>[news-report.php]"]
end

subgraph group_admin["Administration"]
  node_admin_login["Admin login<br/>[index.php]"]
  node_admin_dashboard["Admin dashboard<br/>[dashboard.php]"]
  node_service_admin["Service content admin<br/>[crudServices.php]"]
  node_service_edit["Service editor<br/>[updateServices.php]"]
  node_service_read_edit["Edit service<br/>[editServices.php]"]
  node_connection["PHP database connection<br/>[connection.php]"]
end

node_visitor(("Visitor"))
node_database[("MySQL data store")]

node_visitor -->|"opens"| node_portal
node_portal -->|"links to"| node_services
node_portal -->|"links to"| node_symptom_pages
node_portal -->|"links to"| node_nearby
node_portal -->|"links to"| node_events
node_portal -->|"links to"| node_announcements
node_services -->|"opens service"| node_service_details
node_nearby -->|"queries provider profiles"| node_database
node_nearby -->|"links to locations"| node_provider_locations
node_visitor -->|"submits symptoms"| node_cough_check
node_cough_check -->|"shows result"| node_cough_result
node_health_topics -->|"links to articles"| node_topic_articles
node_visitor -->|"signs in"| node_admin_login
node_admin_login -->|"queries credentials"| node_connection
node_admin_login -->|"redirects on login"| node_admin_dashboard
node_admin_dashboard -->|"opens management"| node_service_admin
node_service_admin -->|"reads and deletes"| node_database
node_service_admin -->|"opens add form"| node_service_edit
node_service_admin -->|"opens edit form"| node_service_read_edit
node_service_edit -->|"writes service content"| node_database
node_service_read_edit -->|"reads and updates"| node_database

click node_portal "https://github.com/0xhi50ka/capstone2_updated/blob/main/javascript/index.js"
click node_services "https://github.com/0xhi50ka/capstone2_updated/blob/main/AAtabHealthCare/Servicess/services.php"
click node_service_details "https://github.com/0xhi50ka/capstone2_updated/blob/main/AAtabHealthCare/Servicess/Generalconsult.php"
click node_nearby "https://github.com/0xhi50ka/capstone2_updated/blob/main/DentalClinic.php"
click node_provider_locations "https://github.com/0xhi50ka/capstone2_updated/blob/main/_dental1.php"
click node_symptom_pages "https://github.com/0xhi50ka/capstone2_updated/blob/main/AAtabHealthCare/SymptomAI/_SymptomChecker.php"
click node_cough_check "https://github.com/0xhi50ka/capstone2_updated/blob/main/coughai.php"
click node_cough_result "https://github.com/0xhi50ka/capstone2_updated/blob/main/resultcough.php"
click node_health_topics "https://github.com/0xhi50ka/capstone2_updated/blob/main/AAtabHealthCare/HealthTopics/HTindex.js"
click node_topic_articles "https://github.com/0xhi50ka/capstone2_updated/blob/main/AAtabHealthCare/HealthTopics/HTopicArticles/HTindex1.js"
click node_events "https://github.com/0xhi50ka/capstone2_updated/blob/main/AAtabHealthCare/Eventss/EventHeader.js"
click node_announcements "https://github.com/0xhi50ka/capstone2_updated/blob/main/Admin2/news-report.php"
click node_admin_login "https://github.com/0xhi50ka/capstone2_updated/blob/main/Admin2/index.php"
click node_admin_dashboard "https://github.com/0xhi50ka/capstone2_updated/blob/main/Admin2/dashboard.php"
click node_service_admin "https://github.com/0xhi50ka/capstone2_updated/blob/main/Admin2/crudServices.php"
click node_service_edit "https://github.com/0xhi50ka/capstone2_updated/blob/main/Admin2/updateServices.php"
click node_service_read_edit "https://github.com/0xhi50ka/capstone2_updated/blob/main/Admin2/editServices.php"
click node_connection "https://github.com/0xhi50ka/capstone2_updated/blob/main/AAtabHealthCare/Servicess/connection.php"

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_portal toneBlue
class node_services,node_service_details,node_nearby,node_provider_locations,node_symptom_pages,node_cough_check,node_cough_result,node_database toneAmber
class node_health_topics,node_topic_articles,node_events,node_announcements toneMint
class node_admin_login,node_admin_dashboard,node_service_admin,node_service_edit,node_service_read_edit,node_connection toneRose
class node_visitor toneIndigo
```

## Components

### Public portal

- [Portal navigation](https://github.com/0xhi50ka/capstone2_updated/blob/main/javascript/index.js): `javascript/index.js`

### Care discovery

- [Health services](https://github.com/0xhi50ka/capstone2_updated/blob/main/AAtabHealthCare/Servicess/services.php): `AAtabHealthCare/Servicess/services.php`
- [Service details](https://github.com/0xhi50ka/capstone2_updated/blob/main/AAtabHealthCare/Servicess/Generalconsult.php): `AAtabHealthCare/Servicess/Generalconsult.php`
- [Nearby facilities](https://github.com/0xhi50ka/capstone2_updated/blob/main/DentalClinic.php): `DentalClinic.php`
- [Provider locations](https://github.com/0xhi50ka/capstone2_updated/blob/main/_dental1.php): `_dental1.php`
- [Symptom checker](https://github.com/0xhi50ka/capstone2_updated/blob/main/AAtabHealthCare/SymptomAI/_SymptomChecker.php): `AAtabHealthCare/SymptomAI/_SymptomChecker.php`
- [Cough checker](https://github.com/0xhi50ka/capstone2_updated/blob/main/coughai.php): `coughai.php`
- [Cough results](https://github.com/0xhi50ka/capstone2_updated/blob/main/resultcough.php): `resultcough.php`

### Health information

- [Health topics](https://github.com/0xhi50ka/capstone2_updated/blob/main/AAtabHealthCare/HealthTopics/HTindex.js): `AAtabHealthCare/HealthTopics/HTindex.js`
- [Topic articles](https://github.com/0xhi50ka/capstone2_updated/blob/main/AAtabHealthCare/HealthTopics/HTopicArticles/HTindex1.js): `AAtabHealthCare/HealthTopics/HTopicArticles/HTindex1.js`
- [Events](https://github.com/0xhi50ka/capstone2_updated/blob/main/AAtabHealthCare/Eventss/EventHeader.js): `AAtabHealthCare/Eventss/EventHeader.js`
- [Announcements](https://github.com/0xhi50ka/capstone2_updated/blob/main/Admin2/news-report.php): `Admin2/news-report.php`

### Administration

- [Admin login](https://github.com/0xhi50ka/capstone2_updated/blob/main/Admin2/index.php): `Admin2/index.php`
- [Admin dashboard](https://github.com/0xhi50ka/capstone2_updated/blob/main/Admin2/dashboard.php): `Admin2/dashboard.php`
- [Service content admin](https://github.com/0xhi50ka/capstone2_updated/blob/main/Admin2/crudServices.php): `Admin2/crudServices.php`
- [Service editor](https://github.com/0xhi50ka/capstone2_updated/blob/main/Admin2/updateServices.php): `Admin2/updateServices.php`
- [Edit service](https://github.com/0xhi50ka/capstone2_updated/blob/main/Admin2/editServices.php): `Admin2/editServices.php`
- [PHP database connection](https://github.com/0xhi50ka/capstone2_updated/blob/main/AAtabHealthCare/Servicess/connection.php): `AAtabHealthCare/Servicess/connection.php`

### Other components

- **Visitor**
- **MySQL data store**

## Connections

- Visitor → Portal navigation: opens
- Portal navigation → Health services: links to
- Portal navigation → Symptom checker: links to
- Portal navigation → Nearby facilities: links to
- Portal navigation → Events: links to
- Portal navigation → Announcements: links to
- Health services → Service details: opens service
- Nearby facilities → MySQL data store: queries provider profiles
- Nearby facilities → Provider locations: links to locations
- Visitor → Cough checker: submits symptoms
- Cough checker → Cough results: shows result
- Health topics → Topic articles: links to articles
- Visitor → Admin login: signs in
- Admin login → PHP database connection: queries credentials
- Admin login → Admin dashboard: redirects on login
- Admin dashboard → Service content admin: opens management
- Service content admin → MySQL data store: reads and deletes
- Service content admin → Service editor: opens add form
- Service content admin → Edit service: opens edit form
- Service editor → MySQL data store: writes service content
- Edit service → MySQL data store: reads and updates
