# kummaribharath/development-of-healthcare-operations-intelligence-dashboard-with-decision-analytics architecture

> Architecture diagram of the GitHub repository kummaribharath/development-of-healthcare-operations-intelligence-dashboard-with-decision-analytics, 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/kummaribharath/development-of-healthcare-operations-intelligence-dashboard-with-decision-analytics
- Repository: https://github.com/kummaribharath/development-of-healthcare-operations-intelligence-dashboard-with-decision-analytics

## Overview

MedOps is a healthcare operations intelligence dashboard: users authenticate, select operational views, and receive facility analytics and AI-assisted decision support. The frontend routes users into a broad command suite and calls a FastAPI backend; backend services compute dashboard results and connect to AWS data and AI services. The README documents the Athena/Glue/S3 data platform, fallback sources, and Cognito authentication. Several backend and frontend modules were not sampled, so their internals and some individual request routes are represented only at subsystem level.

Main entry points: [`backend/app/services/dashboard_service.py`](https://github.com/kummaribharath/development-of-healthcare-operations-intelligence-dashboard-with-decision-analytics/blob/main/backend/app/services/dashboard_service.py) (Dashboard analytics), [`backend/app/aws/session.py`](https://github.com/kummaribharath/development-of-healthcare-operations-intelligence-dashboard-with-decision-analytics/blob/main/backend/app/aws/session.py) (AWS credentials), [`src/App.tsx`](https://github.com/kummaribharath/development-of-healthcare-operations-intelligence-dashboard-with-decision-analytics/blob/main/src/App.tsx) (Application shell), [`backend/app/main.py`](https://github.com/kummaribharath/development-of-healthcare-operations-intelligence-dashboard-with-decision-analytics/blob/main/backend/app/main.py) (FastAPI application)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_ui["Dashboard experience"]
  node_app["Application shell<br/>[App.tsx]"]
  node_command["Command suite"]
  node_copilot_ui["AI copilot"]
  node_drilldown["Enterprise drilldown"]
  node_pipeline_ui["Pipeline visualizer"]
  node_api_client["API client<br/>[apiService.ts]"]
end

subgraph group_auth["Identity"]
  node_auth_context["Auth context<br/>[AuthContext.tsx]"]
  node_cognito["Cognito session<br/>[cognitoAuth.ts]"]
  node_cognito_service{{"Amazon Cognito"}}
end

subgraph group_api["Backend API"]
  node_fastapi["FastAPI application<br/>[main.py]"]
  node_dashboard_routes["Dashboard routes<br/>[dashboard.py]"]
  node_copilot_routes["Copilot routes<br/>[copilot.py]"]
  node_cloud_routes["Cloud service routes<br/>[athena.py]"]
end

subgraph group_analytics["Analytics and AI"]
  node_dashboard_service["Dashboard analytics"]
  node_copilot_service["Copilot orchestration<br/>[copilot_service.py]"]
  node_ai_service["AI provider service<br/>[ai_service.py]"]
end

subgraph group_cloud["AWS data and AI"]
  node_config["Runtime configuration<br/>[config.py]"]
  node_aws_session["AWS credentials<br/>[session.py]"]
  node_athena["Athena queries<br/>[athena.py]"]
  node_glue["Glue catalog<br/>[glue.py]"]
  node_s3[("S3 data lake<br/>[s3.py]")]
  node_bedrock["Bedrock inference<br/>[bedrock.py]"]
  node_athena_service{{"Amazon Athena"}}
  node_glue_service{{"AWS Glue"}}
  node_s3_service[("Amazon S3")]
  node_bedrock_service{{"Amazon Bedrock"}}
end

node_operator(("Healthcare operator"))

node_operator -->|"uses"| node_app
node_app -->|"renders"| node_command
node_app -.->|"checks session"| node_auth_context
node_app -->|"renders"| node_copilot_ui
node_copilot_ui -->|"requests answers"| node_api_client
node_drilldown -->|"requests details"| node_api_client
node_pipeline_ui -->|"fetches status"| node_api_client
node_auth_context -->|"manages session"| node_cognito
node_cognito -->|"authenticates"| node_cognito_service
node_api_client -->|"sends REST requests"| node_fastapi
node_fastapi -->|"registers"| node_dashboard_routes
node_fastapi -->|"registers"| node_copilot_routes
node_fastapi -->|"registers"| node_cloud_routes
node_dashboard_routes -->|"calls analytics"| node_dashboard_service
node_copilot_routes -.->|"dispatches requests"| node_copilot_service
node_copilot_service -->|"reads metrics"| node_dashboard_service
node_copilot_service -->|"requests summaries"| node_ai_service
node_dashboard_service -->|"queries"| node_athena
node_dashboard_service -->|"reads catalog"| node_glue
node_dashboard_service -->|"reads fallback data"| node_s3
node_ai_service -->|"invokes provider"| node_bedrock
node_aws_session -->|"reads settings"| node_config
node_athena -.->|"gets client"| node_aws_session
node_glue -.->|"gets client"| node_aws_session
node_s3 -.->|"gets client"| node_aws_session
node_bedrock -.->|"gets client"| node_aws_session
node_athena -->|"executes SQL"| node_athena_service
node_glue -->|"uses catalog"| node_glue_service
node_s3 -->|"reads objects"| node_s3_service
node_bedrock -->|"runs inference"| node_bedrock_service

click node_app "https://github.com/kummaribharath/development-of-healthcare-operations-intelligence-dashboard-with-decision-analytics/blob/main/src/App.tsx"
click node_command "https://github.com/kummaribharath/development-of-healthcare-operations-intelligence-dashboard-with-decision-analytics/tree/main/src/components/modules"
click node_copilot_ui "https://github.com/kummaribharath/development-of-healthcare-operations-intelligence-dashboard-with-decision-analytics/blob/main/src/components/copilot/AICopilotDrawer.tsx"
click node_drilldown "https://github.com/kummaribharath/development-of-healthcare-operations-intelligence-dashboard-with-decision-analytics/blob/main/src/components/modals/EnterpriseDrilldownModal.tsx"
click node_pipeline_ui "https://github.com/kummaribharath/development-of-healthcare-operations-intelligence-dashboard-with-decision-analytics/blob/main/src/components/modules/AutomationPipelineVisualizer.tsx"
click node_api_client "https://github.com/kummaribharath/development-of-healthcare-operations-intelligence-dashboard-with-decision-analytics/blob/main/src/services/apiService.ts"
click node_auth_context "https://github.com/kummaribharath/development-of-healthcare-operations-intelligence-dashboard-with-decision-analytics/blob/main/src/context/AuthContext.tsx"
click node_cognito "https://github.com/kummaribharath/development-of-healthcare-operations-intelligence-dashboard-with-decision-analytics/blob/main/src/services/cognitoAuth.ts"
click node_fastapi "https://github.com/kummaribharath/development-of-healthcare-operations-intelligence-dashboard-with-decision-analytics/blob/main/backend/app/main.py"
click node_dashboard_routes "https://github.com/kummaribharath/development-of-healthcare-operations-intelligence-dashboard-with-decision-analytics/blob/main/backend/app/routes/dashboard.py"
click node_copilot_routes "https://github.com/kummaribharath/development-of-healthcare-operations-intelligence-dashboard-with-decision-analytics/blob/main/backend/app/routes/copilot.py"
click node_cloud_routes "https://github.com/kummaribharath/development-of-healthcare-operations-intelligence-dashboard-with-decision-analytics/blob/main/backend/app/routes/athena.py"
click node_dashboard_service "https://github.com/kummaribharath/development-of-healthcare-operations-intelligence-dashboard-with-decision-analytics/blob/main/backend/app/services/dashboard_service.py"
click node_copilot_service "https://github.com/kummaribharath/development-of-healthcare-operations-intelligence-dashboard-with-decision-analytics/blob/main/backend/app/services/copilot_service.py"
click node_ai_service "https://github.com/kummaribharath/development-of-healthcare-operations-intelligence-dashboard-with-decision-analytics/blob/main/backend/app/services/ai_service.py"
click node_config "https://github.com/kummaribharath/development-of-healthcare-operations-intelligence-dashboard-with-decision-analytics/blob/main/backend/app/config.py"
click node_aws_session "https://github.com/kummaribharath/development-of-healthcare-operations-intelligence-dashboard-with-decision-analytics/blob/main/backend/app/aws/session.py"
click node_athena "https://github.com/kummaribharath/development-of-healthcare-operations-intelligence-dashboard-with-decision-analytics/blob/main/backend/app/aws/athena.py"
click node_glue "https://github.com/kummaribharath/development-of-healthcare-operations-intelligence-dashboard-with-decision-analytics/blob/main/backend/app/aws/glue.py"
click node_s3 "https://github.com/kummaribharath/development-of-healthcare-operations-intelligence-dashboard-with-decision-analytics/blob/main/backend/app/aws/s3.py"
click node_bedrock "https://github.com/kummaribharath/development-of-healthcare-operations-intelligence-dashboard-with-decision-analytics/blob/main/backend/app/aws/bedrock.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_command,node_copilot_ui,node_drilldown,node_pipeline_ui,node_api_client toneBlue
class node_auth_context,node_cognito,node_cognito_service toneAmber
class node_fastapi,node_dashboard_routes,node_copilot_routes,node_cloud_routes toneMint
class node_dashboard_service,node_copilot_service,node_ai_service toneRose
class node_config,node_aws_session,node_athena,node_glue,node_s3,node_bedrock,node_athena_service,node_glue_service,node_s3_service,node_bedrock_service,node_operator toneIndigo
```

## Components

### Dashboard experience

- [Application shell](https://github.com/kummaribharath/development-of-healthcare-operations-intelligence-dashboard-with-decision-analytics/blob/main/src/App.tsx): `src/App.tsx`
- [Command suite](https://github.com/kummaribharath/development-of-healthcare-operations-intelligence-dashboard-with-decision-analytics/tree/main/src/components/modules): `src/components/modules`
- [AI copilot](https://github.com/kummaribharath/development-of-healthcare-operations-intelligence-dashboard-with-decision-analytics/blob/main/src/components/copilot/AICopilotDrawer.tsx): `src/components/copilot/AICopilotDrawer.tsx`
- [Enterprise drilldown](https://github.com/kummaribharath/development-of-healthcare-operations-intelligence-dashboard-with-decision-analytics/blob/main/src/components/modals/EnterpriseDrilldownModal.tsx): `src/components/modals/EnterpriseDrilldownModal.tsx`
- [Pipeline visualizer](https://github.com/kummaribharath/development-of-healthcare-operations-intelligence-dashboard-with-decision-analytics/blob/main/src/components/modules/AutomationPipelineVisualizer.tsx): `src/components/modules/AutomationPipelineVisualizer.tsx`
- [API client](https://github.com/kummaribharath/development-of-healthcare-operations-intelligence-dashboard-with-decision-analytics/blob/main/src/services/apiService.ts): `src/services/apiService.ts`

### Identity

- [Auth context](https://github.com/kummaribharath/development-of-healthcare-operations-intelligence-dashboard-with-decision-analytics/blob/main/src/context/AuthContext.tsx): `src/context/AuthContext.tsx`
- [Cognito session](https://github.com/kummaribharath/development-of-healthcare-operations-intelligence-dashboard-with-decision-analytics/blob/main/src/services/cognitoAuth.ts): `src/services/cognitoAuth.ts`
- **Amazon Cognito**

### Backend API

- [FastAPI application](https://github.com/kummaribharath/development-of-healthcare-operations-intelligence-dashboard-with-decision-analytics/blob/main/backend/app/main.py): `backend/app/main.py`
- [Dashboard routes](https://github.com/kummaribharath/development-of-healthcare-operations-intelligence-dashboard-with-decision-analytics/blob/main/backend/app/routes/dashboard.py): `backend/app/routes/dashboard.py`
- [Copilot routes](https://github.com/kummaribharath/development-of-healthcare-operations-intelligence-dashboard-with-decision-analytics/blob/main/backend/app/routes/copilot.py): `backend/app/routes/copilot.py`
- [Cloud service routes](https://github.com/kummaribharath/development-of-healthcare-operations-intelligence-dashboard-with-decision-analytics/blob/main/backend/app/routes/athena.py): `backend/app/routes/athena.py`

### Analytics and AI

- [Dashboard analytics](https://github.com/kummaribharath/development-of-healthcare-operations-intelligence-dashboard-with-decision-analytics/blob/main/backend/app/services/dashboard_service.py): `backend/app/services/dashboard_service.py`
- [Copilot orchestration](https://github.com/kummaribharath/development-of-healthcare-operations-intelligence-dashboard-with-decision-analytics/blob/main/backend/app/services/copilot_service.py): `backend/app/services/copilot_service.py`
- [AI provider service](https://github.com/kummaribharath/development-of-healthcare-operations-intelligence-dashboard-with-decision-analytics/blob/main/backend/app/services/ai_service.py): `backend/app/services/ai_service.py`

### AWS data and AI

- [Runtime configuration](https://github.com/kummaribharath/development-of-healthcare-operations-intelligence-dashboard-with-decision-analytics/blob/main/backend/app/config.py): `backend/app/config.py`
- [AWS credentials](https://github.com/kummaribharath/development-of-healthcare-operations-intelligence-dashboard-with-decision-analytics/blob/main/backend/app/aws/session.py): `backend/app/aws/session.py`
- [Athena queries](https://github.com/kummaribharath/development-of-healthcare-operations-intelligence-dashboard-with-decision-analytics/blob/main/backend/app/aws/athena.py): `backend/app/aws/athena.py`
- [Glue catalog](https://github.com/kummaribharath/development-of-healthcare-operations-intelligence-dashboard-with-decision-analytics/blob/main/backend/app/aws/glue.py): `backend/app/aws/glue.py`
- [S3 data lake](https://github.com/kummaribharath/development-of-healthcare-operations-intelligence-dashboard-with-decision-analytics/blob/main/backend/app/aws/s3.py): `backend/app/aws/s3.py`
- [Bedrock inference](https://github.com/kummaribharath/development-of-healthcare-operations-intelligence-dashboard-with-decision-analytics/blob/main/backend/app/aws/bedrock.py): `backend/app/aws/bedrock.py`
- **Amazon Athena**
- **AWS Glue**
- **Amazon S3**
- **Amazon Bedrock**

### Other components

- **Healthcare operator**

## Connections

- Healthcare operator → Application shell: uses
- Application shell → Command suite: renders (evidence: `src/App.tsx`)
- Application shell → Auth context: checks session (evidence: `src/App.tsx`)
- Application shell → AI copilot: renders (evidence: `src/App.tsx`)
- AI copilot → API client: requests answers (evidence: `src/components/copilot/AICopilotDrawer.tsx`)
- Enterprise drilldown → API client: requests details (evidence: `src/components/modals/EnterpriseDrilldownModal.tsx`)
- Pipeline visualizer → API client: fetches status (evidence: `src/components/modules/AutomationPipelineVisualizer.tsx`)
- Auth context → Cognito session: manages session (evidence: `src/context/AuthContext.tsx`)
- Cognito session → Amazon Cognito: authenticates
- API client → FastAPI application: sends REST requests
- FastAPI application → Dashboard routes: registers (evidence: `backend/app/main.py`)
- FastAPI application → Copilot routes: registers (evidence: `backend/app/main.py`)
- FastAPI application → Cloud service routes: registers (evidence: `backend/app/main.py`)
- Dashboard routes → Dashboard analytics: calls analytics (evidence: `backend/app/routes/dashboard.py`)
- Copilot routes → Copilot orchestration: dispatches requests
- Copilot orchestration → Dashboard analytics: reads metrics (evidence: `backend/app/services/copilot_service.py`)
- Copilot orchestration → AI provider service: requests summaries (evidence: `backend/app/services/copilot_service.py`)
- Dashboard analytics → Athena queries: queries (evidence: `backend/app/services/dashboard_service.py`)
- Dashboard analytics → Glue catalog: reads catalog (evidence: `backend/app/services/dashboard_service.py`)
- Dashboard analytics → S3 data lake: reads fallback data (evidence: `backend/app/services/dashboard_service.py`)
- AI provider service → Bedrock inference: invokes provider (evidence: `backend/app/services/ai_service.py`)
- AWS credentials → Runtime configuration: reads settings (evidence: `backend/app/aws/session.py`)
- Athena queries → AWS credentials: gets client
- Glue catalog → AWS credentials: gets client
- S3 data lake → AWS credentials: gets client
- Bedrock inference → AWS credentials: gets client
- Athena queries → Amazon Athena: executes SQL
- Glue catalog → AWS Glue: uses catalog
- S3 data lake → Amazon S3: reads objects
- Bedrock inference → Amazon Bedrock: runs inference
