# lepo7763/gehealthcare-team1 architecture

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

- Interactive diagram: https://gitdiagram.com/lepo7763/gehealthcare-team1
- Repository: https://github.com/lepo7763/gehealthcare-team1

## Overview

GEHealthcare-team1 is an IoMT analysis tool: a React interface configures and reviews diagnostic collection, requests a backend package, tracks progress, and downloads the resulting ZIP. The backend combines Kubernetes logs and optional node/service captures, then exposes package downloads; separate branches provide log analysis, environment data, and network diagnostics. The excerpts support the principal orchestration and several collectors, but many UI pages and domain services are indexed rather than sampled, so their internal call paths are omitted. Authentication is currently frontend-local; the source notes backend sign-in is not implemented.

Main entry points: [`backend/app/diagnostics/service.py`](https://github.com/lepo7763/gehealthcare-team1/blob/main/backend/app/diagnostics/service.py) (Package orchestrator), [`backend/app/log_collection/router.py`](https://github.com/lepo7763/gehealthcare-team1/blob/main/backend/app/log_collection/router.py) (Collection endpoints), [`backend/app/main.py`](https://github.com/lepo7763/gehealthcare-team1/blob/main/backend/app/main.py) (FastAPI routes), [`backend/app/log_collection/progress.py`](https://github.com/lepo7763/gehealthcare-team1/blob/main/backend/app/log_collection/progress.py) (Progress and cancellation)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_frontend["React interface"]
  node_app["App session<br/>[App.jsx]"]
  node_diagnostics_ui["Collection wizard<br/>[Diagnostics.jsx]"]
  node_review["Review settings<br/>[Step3Review.jsx]"]
  node_diagnostic_params["Capture parameters<br/>[axoneParams.js]"]
  node_dashboard["Dashboard routes<br/>[Dashboard.jsx]"]
  node_package_ui["Package downloads"]
end

subgraph group_collection["Diagnostic collection"]
  node_collection_api["Collection endpoints<br/>[router.py]"]
  node_orchestrator["Package orchestrator<br/>[service.py]"]
  node_progress["Progress and cancellation<br/>[progress.py]"]
  node_manifest["Package manifest<br/>[schemas.py]"]
  node_package_store[("Package files<br/>[packages.py]")]
end

subgraph group_captures["Specialized captures"]
  node_core_dumps["Core dump capture<br/>[service.py]"]
  node_firewall["Firewall snapshot<br/>[service.py]"]
  node_prometheus["Prometheus capture<br/>[service.py]"]
  node_umf["UMF RTI capture<br/>[service.py]"]
  node_cms["CMS snapshot<br/>[service.py]"]
  node_axone["Axone log export<br/>[service.py]"]
end

subgraph group_analysis["Analysis and diagnostics"]
  node_network["Network diagnostics<br/>[service.py]"]
  node_log_analysis["Log analysis<br/>[service.py]"]
  node_environments["Environment data<br/>[service.py]"]
end

subgraph group_platform["Backend platform"]
  node_api["FastAPI routes<br/>[main.py]"]
  node_k8s["Kubernetes API<br/>[k8s_client.py]"]
  node_workdir["Work directory<br/>[workdir.py]"]
  node_health["Health endpoint<br/>[router.py]"]
end

node_user(("Operator"))
node_axone_service{{"Axone export service"}}

node_user -->|"uses"| node_app
node_app -->|"renders"| node_dashboard
node_dashboard -.->|"routes to"| node_diagnostics_ui
node_diagnostics_ui -->|"reviews"| node_review
node_diagnostics_ui -->|"uses"| node_diagnostic_params
node_review -->|"summarizes"| node_diagnostic_params
node_diagnostics_ui -.->|"submits"| node_collection_api
node_package_ui -.->|"downloads from"| node_collection_api
node_api -->|"registers"| node_collection_api
node_api -->|"registers"| node_network
node_api -->|"registers"| node_log_analysis
node_api -->|"registers"| node_environments
node_api -->|"registers"| node_health
node_collection_api -->|"collects via"| node_orchestrator
node_collection_api -->|"reads and cancels"| node_progress
node_collection_api -->|"creates packages"| node_package_store
node_orchestrator -->|"updates"| node_progress
node_orchestrator -->|"records results"| node_manifest
node_orchestrator -->|"invokes"| node_core_dumps
node_orchestrator -->|"invokes"| node_firewall
node_orchestrator -->|"invokes"| node_prometheus
node_orchestrator -->|"invokes"| node_umf
node_orchestrator -->|"invokes"| node_cms
node_orchestrator -->|"invokes"| node_axone
node_core_dumps -->|"uses"| node_workdir
node_core_dumps -->|"updates"| node_progress
node_prometheus -->|"stages files"| node_workdir
node_prometheus -->|"updates"| node_progress
node_umf -->|"updates"| node_progress
node_axone -->|"fetches from"| node_axone_service
node_core_dumps -.->|"uses"| node_k8s
node_firewall -.->|"uses"| node_k8s
node_network -.->|"uses"| node_k8s

click node_app "https://github.com/lepo7763/gehealthcare-team1/blob/main/frontend/src/App.jsx"
click node_diagnostics_ui "https://github.com/lepo7763/gehealthcare-team1/blob/main/frontend/src/pages/Diagnostics.jsx"
click node_review "https://github.com/lepo7763/gehealthcare-team1/blob/main/frontend/src/pages/diagnostics/Step3Review.jsx"
click node_diagnostic_params "https://github.com/lepo7763/gehealthcare-team1/blob/main/frontend/src/pages/diagnostics/axoneParams.js"
click node_dashboard "https://github.com/lepo7763/gehealthcare-team1/blob/main/frontend/src/Dashboard.jsx"
click node_package_ui "https://github.com/lepo7763/gehealthcare-team1/blob/main/frontend/src/pages/DiagnosticPackages.jsx"
click node_api "https://github.com/lepo7763/gehealthcare-team1/blob/main/backend/app/main.py"
click node_collection_api "https://github.com/lepo7763/gehealthcare-team1/blob/main/backend/app/log_collection/router.py"
click node_orchestrator "https://github.com/lepo7763/gehealthcare-team1/blob/main/backend/app/diagnostics/service.py"
click node_progress "https://github.com/lepo7763/gehealthcare-team1/blob/main/backend/app/log_collection/progress.py"
click node_manifest "https://github.com/lepo7763/gehealthcare-team1/blob/main/backend/app/log_collection/schemas.py"
click node_package_store "https://github.com/lepo7763/gehealthcare-team1/blob/main/backend/app/diagnostics/packages.py"
click node_k8s "https://github.com/lepo7763/gehealthcare-team1/blob/main/backend/app/core/k8s_client.py"
click node_workdir "https://github.com/lepo7763/gehealthcare-team1/blob/main/backend/app/core/workdir.py"
click node_core_dumps "https://github.com/lepo7763/gehealthcare-team1/blob/main/backend/app/core_dumps/service.py"
click node_firewall "https://github.com/lepo7763/gehealthcare-team1/blob/main/backend/app/firewall/service.py"
click node_prometheus "https://github.com/lepo7763/gehealthcare-team1/blob/main/backend/app/prometheus/service.py"
click node_umf "https://github.com/lepo7763/gehealthcare-team1/blob/main/backend/app/umf_rti/service.py"
click node_cms "https://github.com/lepo7763/gehealthcare-team1/blob/main/backend/app/cms/service.py"
click node_axone "https://github.com/lepo7763/gehealthcare-team1/blob/main/backend/app/log_export/service.py"
click node_network "https://github.com/lepo7763/gehealthcare-team1/blob/main/backend/app/network_diagnostics/service.py"
click node_log_analysis "https://github.com/lepo7763/gehealthcare-team1/blob/main/backend/app/log_analysis/service.py"
click node_environments "https://github.com/lepo7763/gehealthcare-team1/blob/main/backend/app/environments/service.py"
click node_health "https://github.com/lepo7763/gehealthcare-team1/blob/main/backend/app/health/router.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_app,node_diagnostics_ui,node_review,node_diagnostic_params,node_dashboard,node_package_ui toneBlue
class node_collection_api,node_orchestrator,node_progress,node_manifest,node_package_store toneAmber
class node_core_dumps,node_firewall,node_prometheus,node_umf,node_cms,node_axone toneMint
class node_network,node_log_analysis,node_environments toneRose
class node_api,node_k8s,node_workdir,node_health,node_user,node_axone_service toneIndigo
```

## Components

### React interface

- [App session](https://github.com/lepo7763/gehealthcare-team1/blob/main/frontend/src/App.jsx): `frontend/src/App.jsx`
- [Collection wizard](https://github.com/lepo7763/gehealthcare-team1/blob/main/frontend/src/pages/Diagnostics.jsx): `frontend/src/pages/Diagnostics.jsx`
- [Review settings](https://github.com/lepo7763/gehealthcare-team1/blob/main/frontend/src/pages/diagnostics/Step3Review.jsx): `frontend/src/pages/diagnostics/Step3Review.jsx`
- [Capture parameters](https://github.com/lepo7763/gehealthcare-team1/blob/main/frontend/src/pages/diagnostics/axoneParams.js): `frontend/src/pages/diagnostics/axoneParams.js`
- [Dashboard routes](https://github.com/lepo7763/gehealthcare-team1/blob/main/frontend/src/Dashboard.jsx): `frontend/src/Dashboard.jsx`
- [Package downloads](https://github.com/lepo7763/gehealthcare-team1/blob/main/frontend/src/pages/DiagnosticPackages.jsx): `frontend/src/pages/DiagnosticPackages.jsx`

### Diagnostic collection

- [Collection endpoints](https://github.com/lepo7763/gehealthcare-team1/blob/main/backend/app/log_collection/router.py): `backend/app/log_collection/router.py`
- [Package orchestrator](https://github.com/lepo7763/gehealthcare-team1/blob/main/backend/app/diagnostics/service.py): `backend/app/diagnostics/service.py`
- [Progress and cancellation](https://github.com/lepo7763/gehealthcare-team1/blob/main/backend/app/log_collection/progress.py): `backend/app/log_collection/progress.py`
- [Package manifest](https://github.com/lepo7763/gehealthcare-team1/blob/main/backend/app/log_collection/schemas.py): `backend/app/log_collection/schemas.py`
- [Package files](https://github.com/lepo7763/gehealthcare-team1/blob/main/backend/app/diagnostics/packages.py): `backend/app/diagnostics/packages.py`

### Specialized captures

- [Core dump capture](https://github.com/lepo7763/gehealthcare-team1/blob/main/backend/app/core_dumps/service.py): `backend/app/core_dumps/service.py`
- [Firewall snapshot](https://github.com/lepo7763/gehealthcare-team1/blob/main/backend/app/firewall/service.py): `backend/app/firewall/service.py`
- [Prometheus capture](https://github.com/lepo7763/gehealthcare-team1/blob/main/backend/app/prometheus/service.py): `backend/app/prometheus/service.py`
- [UMF RTI capture](https://github.com/lepo7763/gehealthcare-team1/blob/main/backend/app/umf_rti/service.py): `backend/app/umf_rti/service.py`
- [CMS snapshot](https://github.com/lepo7763/gehealthcare-team1/blob/main/backend/app/cms/service.py): `backend/app/cms/service.py`
- [Axone log export](https://github.com/lepo7763/gehealthcare-team1/blob/main/backend/app/log_export/service.py): `backend/app/log_export/service.py`

### Analysis and diagnostics

- [Network diagnostics](https://github.com/lepo7763/gehealthcare-team1/blob/main/backend/app/network_diagnostics/service.py): `backend/app/network_diagnostics/service.py`
- [Log analysis](https://github.com/lepo7763/gehealthcare-team1/blob/main/backend/app/log_analysis/service.py): `backend/app/log_analysis/service.py`
- [Environment data](https://github.com/lepo7763/gehealthcare-team1/blob/main/backend/app/environments/service.py): `backend/app/environments/service.py`

### Backend platform

- [FastAPI routes](https://github.com/lepo7763/gehealthcare-team1/blob/main/backend/app/main.py): `backend/app/main.py`
- [Kubernetes API](https://github.com/lepo7763/gehealthcare-team1/blob/main/backend/app/core/k8s_client.py): `backend/app/core/k8s_client.py`
- [Work directory](https://github.com/lepo7763/gehealthcare-team1/blob/main/backend/app/core/workdir.py): `backend/app/core/workdir.py`
- [Health endpoint](https://github.com/lepo7763/gehealthcare-team1/blob/main/backend/app/health/router.py): `backend/app/health/router.py`

### Other components

- **Operator**
- **Axone export service**

## Connections

- Operator → App session: uses (evidence: `frontend/src/App.jsx`)
- App session → Dashboard routes: renders (evidence: `frontend/src/App.jsx`)
- Dashboard routes → Collection wizard: routes to
- Collection wizard → Review settings: reviews (evidence: `frontend/src/pages/Diagnostics.jsx`)
- Collection wizard → Capture parameters: uses (evidence: `frontend/src/pages/Diagnostics.jsx`)
- Review settings → Capture parameters: summarizes (evidence: `frontend/src/pages/diagnostics/Step3Review.jsx`)
- Collection wizard → Collection endpoints: submits
- Package downloads → Collection endpoints: downloads from
- FastAPI routes → Collection endpoints: registers (evidence: `backend/app/main.py`)
- FastAPI routes → Network diagnostics: registers (evidence: `backend/app/main.py`)
- FastAPI routes → Log analysis: registers (evidence: `backend/app/main.py`)
- FastAPI routes → Environment data: registers (evidence: `backend/app/main.py`)
- FastAPI routes → Health endpoint: registers (evidence: `backend/app/main.py`)
- Collection endpoints → Package orchestrator: collects via (evidence: `backend/app/log_collection/router.py`)
- Collection endpoints → Progress and cancellation: reads and cancels (evidence: `backend/app/log_collection/router.py`)
- Collection endpoints → Package files: creates packages (evidence: `backend/app/log_collection/router.py`)
- Package orchestrator → Progress and cancellation: updates (evidence: `backend/app/diagnostics/service.py`)
- Package orchestrator → Package manifest: records results (evidence: `backend/app/diagnostics/service.py`)
- Package orchestrator → Core dump capture: invokes (evidence: `backend/app/diagnostics/service.py`)
- Package orchestrator → Firewall snapshot: invokes (evidence: `backend/app/diagnostics/service.py`)
- Package orchestrator → Prometheus capture: invokes (evidence: `backend/app/diagnostics/service.py`)
- Package orchestrator → UMF RTI capture: invokes (evidence: `backend/app/diagnostics/service.py`)
- Package orchestrator → CMS snapshot: invokes (evidence: `backend/app/diagnostics/service.py`)
- Package orchestrator → Axone log export: invokes (evidence: `backend/app/diagnostics/service.py`)
- Core dump capture → Work directory: uses (evidence: `backend/app/core_dumps/service.py`)
- Core dump capture → Progress and cancellation: updates (evidence: `backend/app/core_dumps/service.py`)
- Prometheus capture → Work directory: stages files (evidence: `backend/app/prometheus/service.py`)
- Prometheus capture → Progress and cancellation: updates (evidence: `backend/app/prometheus/service.py`)
- UMF RTI capture → Progress and cancellation: updates (evidence: `backend/app/umf_rti/service.py`)
- Axone log export → Axone export service: fetches from (evidence: `backend/app/log_export/service.py`)
- Core dump capture → Kubernetes API: uses
- Firewall snapshot → Kubernetes API: uses
- Network diagnostics → Kubernetes API: uses
