# yaswanth-thota-07/pcc-2026-ge-healthcare architecture

> Architecture diagram of the GitHub repository yaswanth-thota-07/pcc-2026-ge-healthcare, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-10). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/yaswanth-thota-07/pcc-2026-ge-healthcare
- Repository: https://github.com/yaswanth-thota-07/pcc-2026-ge-healthcare

## Overview

SehatSure helps patients turn insurance policies into structured coverage information, discover and rank hospitals against that coverage, and track care journeys. The main path runs from policy upload and confirmation through hospital recommendations; authentication and journey tracking are supporting branches. The README documents the product flow and capabilities. Source excerpts and the SOURCE INDEX support several internal links, but many frontend pages and services were not sampled, so their specific calls are not inferred.

Main entry points: [`frontend/src/services/api.js`](https://github.com/yaswanth-thota-07/pcc-2026-ge-healthcare/blob/main/frontend/src/services/api.js) (API client), [`frontend/src/App.jsx`](https://github.com/yaswanth-thota-07/pcc-2026-ge-healthcare/blob/main/frontend/src/App.jsx) (Application shell), [`server/src/models/Policy.ts`](https://github.com/yaswanth-thota-07/pcc-2026-ge-healthcare/blob/main/server/src/models/Policy.ts) (Policy records), [`server/src/controllers/policyController.ts`](https://github.com/yaswanth-thota-07/pcc-2026-ge-healthcare/blob/main/server/src/controllers/policyController.ts) (Policy processing)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_client["Patient experience"]
  node_app["Application shell<br/>[App.jsx]"]
  node_upload["Policy upload<br/>[UploadPage.jsx]"]
  node_coverage["Coverage review"]
  node_hospital_ui["Hospital discovery"]
  node_journey_ui["Journey tracking"]
  node_api_client["API client<br/>[api.js]"]
  node_auth_state["Account and profile state<br/>[AuthContext.jsx]"]
end

subgraph group_policy["Policy intelligence"]
  node_policy_controller["Policy processing"]
  node_policy_ai["AI policy analysis<br/>[geminiService.ts]"]
  node_normalizer["Policy normalization"]
end

subgraph group_discovery["Hospital discovery"]
  node_hospital_controller["Hospital requests"]
  node_hospital_engine["Filtering and ranking<br/>[hospitalService.ts]"]
  node_network_match["Network matching"]
end

subgraph group_journey["Care journey"]
  node_journey_controller["Journey state handling"]
  node_journey_engine["Journey guidance"]
end

subgraph group_platform["API and persistence"]
  node_policy_api["Policy API routes<br/>[policyRoutes.ts]"]
  node_policy_store[("Policy records<br/>[Policy.ts]")]
  node_hospital_api["Hospital API routes<br/>[hospitalRoutes.ts]"]
  node_journey_api["Journey API routes<br/>[journeyRoutes.ts]"]
  node_journey_store[("Journey records<br/>[Journey.ts]")]
  node_auth_controller["Authentication and profile<br/>[authController.ts]"]
  node_user_store[("User records<br/>[User.ts]")]
end

node_patient(("Patient or caregiver"))
node_database[("MongoDB")]

node_patient -->|"uses"| node_app
node_app -->|"routes to"| node_upload
node_app -->|"routes to"| node_coverage
node_app -->|"routes to"| node_hospital_ui
node_app -->|"routes to"| node_journey_ui
node_upload -.->|"submits policy"| node_api_client
node_coverage -->|"confirms policy"| node_api_client
node_hospital_ui -.->|"requests results"| node_api_client
node_journey_ui -.->|"updates journey"| node_api_client
node_app -->|"uses"| node_auth_state
node_auth_state -->|"calls account APIs"| node_api_client
node_api_client -.->|"calls REST API"| node_policy_api
node_api_client -.->|"calls REST API"| node_hospital_api
node_api_client -.->|"calls REST API"| node_journey_api
node_policy_api -->|"dispatches"| node_policy_controller
node_policy_controller -->|"analyzes policy"| node_policy_ai
node_policy_controller -->|"normalizes updates"| node_normalizer
node_policy_controller -->|"reads and writes"| node_policy_store
node_hospital_api -->|"dispatches"| node_hospital_controller
node_hospital_controller -->|"requests rankings"| node_hospital_engine
node_hospital_controller -->|"resolves policy"| node_policy_store
node_journey_api -->|"dispatches"| node_journey_controller
node_journey_controller -->|"requests guidance"| node_journey_engine
node_journey_controller -->|"reads and writes"| node_journey_store
node_journey_controller -->|"resolves policy"| node_policy_store
node_journey_engine -->|"uses hospital data"| node_hospital_engine
node_journey_engine -->|"checks network"| node_network_match
node_hospital_controller -->|"reads policy"| node_policy_store
node_auth_controller -->|"reads and writes"| node_user_store
node_auth_controller -->|"links policies"| node_policy_store
node_policy_store -.->|"persists in"| node_database
node_journey_store -.->|"persists in"| node_database
node_user_store -.->|"persists in"| node_database

click node_app "https://github.com/yaswanth-thota-07/pcc-2026-ge-healthcare/blob/main/frontend/src/App.jsx"
click node_upload "https://github.com/yaswanth-thota-07/pcc-2026-ge-healthcare/blob/main/frontend/src/pages/UploadPage.jsx"
click node_coverage "https://github.com/yaswanth-thota-07/pcc-2026-ge-healthcare/blob/main/frontend/src/pages/CoverageSummaryPage.jsx"
click node_hospital_ui "https://github.com/yaswanth-thota-07/pcc-2026-ge-healthcare/blob/main/frontend/src/pages/HospitalDiscoveryPage.jsx"
click node_journey_ui "https://github.com/yaswanth-thota-07/pcc-2026-ge-healthcare/blob/main/frontend/src/pages/CareJourneyPage.jsx"
click node_api_client "https://github.com/yaswanth-thota-07/pcc-2026-ge-healthcare/blob/main/frontend/src/services/api.js"
click node_auth_state "https://github.com/yaswanth-thota-07/pcc-2026-ge-healthcare/blob/main/frontend/src/context/AuthContext.jsx"
click node_policy_api "https://github.com/yaswanth-thota-07/pcc-2026-ge-healthcare/blob/main/server/src/routes/policyRoutes.ts"
click node_policy_controller "https://github.com/yaswanth-thota-07/pcc-2026-ge-healthcare/blob/main/server/src/controllers/policyController.ts"
click node_policy_ai "https://github.com/yaswanth-thota-07/pcc-2026-ge-healthcare/blob/main/server/src/services/geminiService.ts"
click node_normalizer "https://github.com/yaswanth-thota-07/pcc-2026-ge-healthcare/blob/main/server/src/services/normalizerService.ts"
click node_policy_store "https://github.com/yaswanth-thota-07/pcc-2026-ge-healthcare/blob/main/server/src/models/Policy.ts"
click node_hospital_api "https://github.com/yaswanth-thota-07/pcc-2026-ge-healthcare/blob/main/server/src/routes/hospitalRoutes.ts"
click node_hospital_controller "https://github.com/yaswanth-thota-07/pcc-2026-ge-healthcare/blob/main/server/src/controllers/hospitalController.ts"
click node_hospital_engine "https://github.com/yaswanth-thota-07/pcc-2026-ge-healthcare/blob/main/server/src/services/hospitalService.ts"
click node_network_match "https://github.com/yaswanth-thota-07/pcc-2026-ge-healthcare/blob/main/server/src/services/networkMatchingService.ts"
click node_journey_api "https://github.com/yaswanth-thota-07/pcc-2026-ge-healthcare/blob/main/server/src/routes/journeyRoutes.ts"
click node_journey_controller "https://github.com/yaswanth-thota-07/pcc-2026-ge-healthcare/blob/main/server/src/controllers/journeyController.ts"
click node_journey_engine "https://github.com/yaswanth-thota-07/pcc-2026-ge-healthcare/blob/main/server/src/services/journeyGuidanceEngine.ts"
click node_journey_store "https://github.com/yaswanth-thota-07/pcc-2026-ge-healthcare/blob/main/server/src/models/Journey.ts"
click node_auth_controller "https://github.com/yaswanth-thota-07/pcc-2026-ge-healthcare/blob/main/server/src/controllers/authController.ts"
click node_user_store "https://github.com/yaswanth-thota-07/pcc-2026-ge-healthcare/blob/main/server/src/models/User.ts"

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_upload,node_coverage,node_hospital_ui,node_journey_ui,node_api_client,node_auth_state toneBlue
class node_policy_controller,node_policy_ai,node_normalizer,node_database toneAmber
class node_hospital_controller,node_hospital_engine,node_network_match toneMint
class node_journey_controller,node_journey_engine toneRose
class node_policy_api,node_policy_store,node_hospital_api,node_journey_api,node_journey_store,node_auth_controller,node_user_store,node_patient toneIndigo
```

## Components

### Patient experience

- [Application shell](https://github.com/yaswanth-thota-07/pcc-2026-ge-healthcare/blob/main/frontend/src/App.jsx): `frontend/src/App.jsx`
- [Policy upload](https://github.com/yaswanth-thota-07/pcc-2026-ge-healthcare/blob/main/frontend/src/pages/UploadPage.jsx): `frontend/src/pages/UploadPage.jsx`
- [Coverage review](https://github.com/yaswanth-thota-07/pcc-2026-ge-healthcare/blob/main/frontend/src/pages/CoverageSummaryPage.jsx): `frontend/src/pages/CoverageSummaryPage.jsx`
- [Hospital discovery](https://github.com/yaswanth-thota-07/pcc-2026-ge-healthcare/blob/main/frontend/src/pages/HospitalDiscoveryPage.jsx): `frontend/src/pages/HospitalDiscoveryPage.jsx`
- [Journey tracking](https://github.com/yaswanth-thota-07/pcc-2026-ge-healthcare/blob/main/frontend/src/pages/CareJourneyPage.jsx): `frontend/src/pages/CareJourneyPage.jsx`
- [API client](https://github.com/yaswanth-thota-07/pcc-2026-ge-healthcare/blob/main/frontend/src/services/api.js): `frontend/src/services/api.js`
- [Account and profile state](https://github.com/yaswanth-thota-07/pcc-2026-ge-healthcare/blob/main/frontend/src/context/AuthContext.jsx): `frontend/src/context/AuthContext.jsx`

### Policy intelligence

- [Policy processing](https://github.com/yaswanth-thota-07/pcc-2026-ge-healthcare/blob/main/server/src/controllers/policyController.ts): `server/src/controllers/policyController.ts`
- [AI policy analysis](https://github.com/yaswanth-thota-07/pcc-2026-ge-healthcare/blob/main/server/src/services/geminiService.ts): `server/src/services/geminiService.ts`
- [Policy normalization](https://github.com/yaswanth-thota-07/pcc-2026-ge-healthcare/blob/main/server/src/services/normalizerService.ts): `server/src/services/normalizerService.ts`

### Hospital discovery

- [Hospital requests](https://github.com/yaswanth-thota-07/pcc-2026-ge-healthcare/blob/main/server/src/controllers/hospitalController.ts): `server/src/controllers/hospitalController.ts`
- [Filtering and ranking](https://github.com/yaswanth-thota-07/pcc-2026-ge-healthcare/blob/main/server/src/services/hospitalService.ts): `server/src/services/hospitalService.ts`
- [Network matching](https://github.com/yaswanth-thota-07/pcc-2026-ge-healthcare/blob/main/server/src/services/networkMatchingService.ts): `server/src/services/networkMatchingService.ts`

### Care journey

- [Journey state handling](https://github.com/yaswanth-thota-07/pcc-2026-ge-healthcare/blob/main/server/src/controllers/journeyController.ts): `server/src/controllers/journeyController.ts`
- [Journey guidance](https://github.com/yaswanth-thota-07/pcc-2026-ge-healthcare/blob/main/server/src/services/journeyGuidanceEngine.ts): `server/src/services/journeyGuidanceEngine.ts`

### API and persistence

- [Policy API routes](https://github.com/yaswanth-thota-07/pcc-2026-ge-healthcare/blob/main/server/src/routes/policyRoutes.ts): `server/src/routes/policyRoutes.ts`
- [Policy records](https://github.com/yaswanth-thota-07/pcc-2026-ge-healthcare/blob/main/server/src/models/Policy.ts): `server/src/models/Policy.ts`
- [Hospital API routes](https://github.com/yaswanth-thota-07/pcc-2026-ge-healthcare/blob/main/server/src/routes/hospitalRoutes.ts): `server/src/routes/hospitalRoutes.ts`
- [Journey API routes](https://github.com/yaswanth-thota-07/pcc-2026-ge-healthcare/blob/main/server/src/routes/journeyRoutes.ts): `server/src/routes/journeyRoutes.ts`
- [Journey records](https://github.com/yaswanth-thota-07/pcc-2026-ge-healthcare/blob/main/server/src/models/Journey.ts): `server/src/models/Journey.ts`
- [Authentication and profile](https://github.com/yaswanth-thota-07/pcc-2026-ge-healthcare/blob/main/server/src/controllers/authController.ts): `server/src/controllers/authController.ts`
- [User records](https://github.com/yaswanth-thota-07/pcc-2026-ge-healthcare/blob/main/server/src/models/User.ts): `server/src/models/User.ts`

### Other components

- **Patient or caregiver**
- **MongoDB**

## Connections

- Patient or caregiver → Application shell: uses (evidence: `README.md`)
- Application shell → Policy upload: routes to (evidence: `frontend/src/App.jsx`)
- Application shell → Coverage review: routes to (evidence: `frontend/src/App.jsx`)
- Application shell → Hospital discovery: routes to (evidence: `frontend/src/App.jsx`)
- Application shell → Journey tracking: routes to (evidence: `frontend/src/App.jsx`)
- Policy upload → API client: submits policy
- Coverage review → API client: confirms policy (evidence: `frontend/src/pages/CoverageSummaryPage.jsx`)
- Hospital discovery → API client: requests results
- Journey tracking → API client: updates journey
- Application shell → Account and profile state: uses (evidence: `frontend/src/App.jsx`)
- Account and profile state → API client: calls account APIs (evidence: `frontend/src/context/AuthContext.jsx`)
- API client → Policy API routes: calls REST API (evidence: `README.md`)
- API client → Hospital API routes: calls REST API (evidence: `README.md`)
- API client → Journey API routes: calls REST API (evidence: `README.md`)
- Policy API routes → Policy processing: dispatches (evidence: `server/src/routes/policyRoutes.ts`)
- Policy processing → AI policy analysis: analyzes policy (evidence: `server/src/controllers/policyController.ts`)
- Policy processing → Policy normalization: normalizes updates (evidence: `server/src/controllers/policyController.ts`)
- Policy processing → Policy records: reads and writes (evidence: `server/src/controllers/policyController.ts`)
- Hospital API routes → Hospital requests: dispatches (evidence: `server/src/routes/hospitalRoutes.ts`)
- Hospital requests → Filtering and ranking: requests rankings (evidence: `server/src/controllers/hospitalController.ts`)
- Hospital requests → Policy records: resolves policy (evidence: `server/src/controllers/hospitalController.ts`)
- Journey API routes → Journey state handling: dispatches (evidence: `server/src/routes/journeyRoutes.ts`)
- Journey state handling → Journey guidance: requests guidance (evidence: `server/src/controllers/journeyController.ts`)
- Journey state handling → Journey records: reads and writes (evidence: `server/src/controllers/journeyController.ts`)
- Journey state handling → Policy records: resolves policy (evidence: `server/src/controllers/journeyController.ts`)
- Journey guidance → Filtering and ranking: uses hospital data (evidence: `server/src/services/journeyGuidanceEngine.ts`)
- Journey guidance → Network matching: checks network (evidence: `server/src/services/journeyGuidanceEngine.ts`)
- Hospital requests → Policy records: reads policy (evidence: `server/src/controllers/hospitalController.ts`)
- Authentication and profile → User records: reads and writes (evidence: `server/src/controllers/authController.ts`)
- Authentication and profile → Policy records: links policies (evidence: `server/src/controllers/authController.ts`)
- Policy records → MongoDB: persists in
- Journey records → MongoDB: persists in
- User records → MongoDB: persists in
