# philimones-group/hds-explorer-server architecture

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

- Interactive diagram: https://gitdiagram.com/philimones-group/hds-explorer-server
- Repository: https://github.com/philimones-group/hds-explorer-server

## Overview

HDS-Explorer Server is a Grails web application providing a data repository and management tool for Health and Demographics Surveillance System data. Users manage surveillance records and collection-related workflows through the server; a separate dashboard presents demographic totals, form-status summaries, and charts. The tree documents raw collection, reconciliation, event synchronization, settings, reporting, and authentication subsystems, but their internal call paths were not sampled. The graph therefore shows those capabilities as distinct server modules without inventing their wiring.

Main entry points: [`src/main/webapp/main-dashboard/src/App.jsx`](https://github.com/philimones-group/hds-explorer-server/blob/master/src/main/webapp/main-dashboard/src/App.jsx) (Dashboard App), [`grails-app/domain/org/philimone/hds/explorer/server/model`](https://github.com/philimones-group/hds-explorer-server/tree/master/grails-app/domain/org/philimone/hds/explorer/server/model) (Surveillance Data Models), [`grails-app/domain/org/philimone/hds/explorer/server/model/collect/raw`](https://github.com/philimones-group/hds-explorer-server/tree/master/grails-app/domain/org/philimone/hds/explorer/server/model/collect/raw) (Raw Collection Models), [`src/main/webapp/main-dashboard/src/pages/Home.jsx`](https://github.com/philimones-group/hds-explorer-server/blob/master/src/main/webapp/main-dashboard/src/pages/Home.jsx) (Surveillance Dashboard)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_dashboard["Dashboard UI"]
  node_app["Dashboard App<br/>[App.jsx]"]
  node_sidebar["Navigation<br/>[Sidebar.jsx]"]
  node_home["Surveillance Dashboard<br/>[Home.jsx]"]
  node_dashboard_widgets["Cards and Charts"]
  node_dashboard_data["Dashboard Sample Data<br/>[mockData.js]"]
end

subgraph group_operations["Data Operations"]
  node_main_records["Core Record Management"]
  node_raw_import["Raw Data Import"]
  node_reconciliation["Data Reconciliation"]
  node_event_sync["Event Synchronization"]
  node_sync_files["Synchronization Files"]
  node_reporting["Logs and Reports"]
  node_settings["Application Settings"]
end

subgraph group_domain["Domain Data"]
  node_domain_models["Surveillance Data Models"]
  node_raw_models["Raw Collection Models"]
end

subgraph group_platform["Server Platform"]
  node_dashboard_server["Dashboard Server Endpoints"]
  node_authentication["User Authentication"]
  node_database[("Hibernate Database")]
end

node_user(("Web User"))
node_odk["ODK Collection"]

node_user -.->|"uses"| node_app
node_app -->|"renders"| node_sidebar
node_app -->|"renders"| node_home
node_app -->|"fetches translations"| node_dashboard_server
node_home -->|"renders"| node_dashboard_widgets
node_dashboard_widgets -->|"reads chart data"| node_dashboard_data
node_main_records -.->|"manages records"| node_domain_models
node_raw_import -.->|"stores imported data"| node_raw_models
node_odk -.->|"submits collection data"| node_raw_import
node_reconciliation -.->|"reviews raw data"| node_raw_models
node_event_sync -.->|"synchronizes events"| node_domain_models
node_sync_files -.->|"handles sync files"| node_raw_models
node_reporting -.->|"queries records"| node_database
node_settings -.->|"persists settings"| node_database
node_authentication -.->|"checks accounts"| node_database
node_domain_models -.->|"persists data"| node_database

click node_app "https://github.com/philimones-group/hds-explorer-server/blob/master/src/main/webapp/main-dashboard/src/App.jsx"
click node_sidebar "https://github.com/philimones-group/hds-explorer-server/blob/master/src/main/webapp/main-dashboard/src/components/Sidebar.jsx"
click node_home "https://github.com/philimones-group/hds-explorer-server/blob/master/src/main/webapp/main-dashboard/src/pages/Home.jsx"
click node_dashboard_widgets "https://github.com/philimones-group/hds-explorer-server/tree/master/src/main/webapp/main-dashboard/src/components"
click node_dashboard_data "https://github.com/philimones-group/hds-explorer-server/blob/master/src/main/webapp/main-dashboard/public/mockData.js"
click node_dashboard_server "https://github.com/philimones-group/hds-explorer-server/blob/master/grails-app/controllers/org/philimone/hds/explorer/controllers/DashboardController.groovy"
click node_main_records "https://github.com/philimones-group/hds-explorer-server/tree/master/grails-app/controllers/org/philimone/hds/explorer/server/model/main"
click node_raw_import "https://github.com/philimones-group/hds-explorer-server/blob/master/grails-app/controllers/org/philimone/hds/explorer/server/model/collect/raw/api/RawImportApiController.groovy"
click node_reconciliation "https://github.com/philimones-group/hds-explorer-server/blob/master/grails-app/controllers/org/philimone/hds/explorer/controllers/DataReconciliationController.groovy"
click node_event_sync "https://github.com/philimones-group/hds-explorer-server/blob/master/grails-app/controllers/org/philimone/hds/explorer/controllers/EventSyncController.groovy"
click node_sync_files "https://github.com/philimones-group/hds-explorer-server/blob/master/grails-app/controllers/org/philimone/hds/explorer/controllers/SyncFilesController.groovy"
click node_reporting "https://github.com/philimones-group/hds-explorer-server/blob/master/grails-app/controllers/org/philimone/hds/explorer/controllers/LogReportController.groovy"
click node_settings "https://github.com/philimones-group/hds-explorer-server/blob/master/grails-app/controllers/org/philimone/hds/explorer/controllers/SettingsController.groovy"
click node_authentication "https://github.com/philimones-group/hds-explorer-server/blob/master/grails-app/controllers/org/philimone/hds/explorer/server/model/authentication/UserController.groovy"
click node_domain_models "https://github.com/philimones-group/hds-explorer-server/tree/master/grails-app/domain/org/philimone/hds/explorer/server/model"
click node_raw_models "https://github.com/philimones-group/hds-explorer-server/tree/master/grails-app/domain/org/philimone/hds/explorer/server/model/collect/raw"

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_app,node_sidebar,node_home,node_dashboard_widgets,node_dashboard_data,node_user toneBlue
class node_main_records,node_raw_import,node_reconciliation,node_event_sync,node_sync_files,node_reporting,node_settings toneAmber
class node_domain_models,node_raw_models toneMint
class node_dashboard_server,node_authentication,node_database toneRose
class node_odk toneIndigo
```

## Components

### Dashboard UI

- [Dashboard App](https://github.com/philimones-group/hds-explorer-server/blob/master/src/main/webapp/main-dashboard/src/App.jsx): `src/main/webapp/main-dashboard/src/App.jsx`
- [Navigation](https://github.com/philimones-group/hds-explorer-server/blob/master/src/main/webapp/main-dashboard/src/components/Sidebar.jsx): `src/main/webapp/main-dashboard/src/components/Sidebar.jsx`
- [Surveillance Dashboard](https://github.com/philimones-group/hds-explorer-server/blob/master/src/main/webapp/main-dashboard/src/pages/Home.jsx): `src/main/webapp/main-dashboard/src/pages/Home.jsx`
- [Cards and Charts](https://github.com/philimones-group/hds-explorer-server/tree/master/src/main/webapp/main-dashboard/src/components): `src/main/webapp/main-dashboard/src/components`
- [Dashboard Sample Data](https://github.com/philimones-group/hds-explorer-server/blob/master/src/main/webapp/main-dashboard/public/mockData.js): `src/main/webapp/main-dashboard/public/mockData.js`

### Data Operations

- [Core Record Management](https://github.com/philimones-group/hds-explorer-server/tree/master/grails-app/controllers/org/philimone/hds/explorer/server/model/main): `grails-app/controllers/org/philimone/hds/explorer/server/model/main`
- [Raw Data Import](https://github.com/philimones-group/hds-explorer-server/blob/master/grails-app/controllers/org/philimone/hds/explorer/server/model/collect/raw/api/RawImportApiController.groovy): `grails-app/controllers/org/philimone/hds/explorer/server/model/collect/raw/api/RawImportApiController.groovy`
- [Data Reconciliation](https://github.com/philimones-group/hds-explorer-server/blob/master/grails-app/controllers/org/philimone/hds/explorer/controllers/DataReconciliationController.groovy): `grails-app/controllers/org/philimone/hds/explorer/controllers/DataReconciliationController.groovy`
- [Event Synchronization](https://github.com/philimones-group/hds-explorer-server/blob/master/grails-app/controllers/org/philimone/hds/explorer/controllers/EventSyncController.groovy): `grails-app/controllers/org/philimone/hds/explorer/controllers/EventSyncController.groovy`
- [Synchronization Files](https://github.com/philimones-group/hds-explorer-server/blob/master/grails-app/controllers/org/philimone/hds/explorer/controllers/SyncFilesController.groovy): `grails-app/controllers/org/philimone/hds/explorer/controllers/SyncFilesController.groovy`
- [Logs and Reports](https://github.com/philimones-group/hds-explorer-server/blob/master/grails-app/controllers/org/philimone/hds/explorer/controllers/LogReportController.groovy): `grails-app/controllers/org/philimone/hds/explorer/controllers/LogReportController.groovy`
- [Application Settings](https://github.com/philimones-group/hds-explorer-server/blob/master/grails-app/controllers/org/philimone/hds/explorer/controllers/SettingsController.groovy): `grails-app/controllers/org/philimone/hds/explorer/controllers/SettingsController.groovy`

### Domain Data

- [Surveillance Data Models](https://github.com/philimones-group/hds-explorer-server/tree/master/grails-app/domain/org/philimone/hds/explorer/server/model): `grails-app/domain/org/philimone/hds/explorer/server/model`
- [Raw Collection Models](https://github.com/philimones-group/hds-explorer-server/tree/master/grails-app/domain/org/philimone/hds/explorer/server/model/collect/raw): `grails-app/domain/org/philimone/hds/explorer/server/model/collect/raw`

### Server Platform

- [Dashboard Server Endpoints](https://github.com/philimones-group/hds-explorer-server/blob/master/grails-app/controllers/org/philimone/hds/explorer/controllers/DashboardController.groovy): `grails-app/controllers/org/philimone/hds/explorer/controllers/DashboardController.groovy`
- [User Authentication](https://github.com/philimones-group/hds-explorer-server/blob/master/grails-app/controllers/org/philimone/hds/explorer/server/model/authentication/UserController.groovy): `grails-app/controllers/org/philimone/hds/explorer/server/model/authentication/UserController.groovy`
- **Hibernate Database**

### Other components

- **Web User**
- **ODK Collection**

## Connections

- Web User → Dashboard App: uses
- Dashboard App → Navigation: renders (evidence: `src/main/webapp/main-dashboard/src/App.jsx`)
- Dashboard App → Surveillance Dashboard: renders (evidence: `src/main/webapp/main-dashboard/src/App.jsx`)
- Dashboard App → Dashboard Server Endpoints: fetches translations (evidence: `src/main/webapp/main-dashboard/src/App.jsx`)
- Surveillance Dashboard → Cards and Charts: renders (evidence: `src/main/webapp/main-dashboard/src/pages/Home.jsx`)
- Cards and Charts → Dashboard Sample Data: reads chart data (evidence: `src/main/webapp/main-dashboard/src/components/ChartBar.jsx`)
- Core Record Management → Surveillance Data Models: manages records
- Raw Data Import → Raw Collection Models: stores imported data
- ODK Collection → Raw Data Import: submits collection data
- Data Reconciliation → Raw Collection Models: reviews raw data
- Event Synchronization → Surveillance Data Models: synchronizes events
- Synchronization Files → Raw Collection Models: handles sync files
- Logs and Reports → Hibernate Database: queries records
- Application Settings → Hibernate Database: persists settings
- User Authentication → Hibernate Database: checks accounts
- Surveillance Data Models → Hibernate Database: persists data (evidence: `README.md`)
