# mohammed-sufiyaan/care-connect architecture

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

- Interactive diagram: https://gitdiagram.com/mohammed-sufiyaan/care-connect
- Repository: https://github.com/mohammed-sufiyaan/care-connect

## Overview

Canada CareConnect is a static interactive strategy site presenting a three-stage medical-tourism proposal. Visitors enter through the home page, then explore the provider network, patient itinerary, policy impacts, five-year economics, and supporting sources; the Advisor answers strategy questions with local research or optional Claude responses. The diagram preserves these documented capabilities and the sampled implementation links. Some page implementations were not excerpted, so their documented features are shown without speculative internal call chains.

Main entry points: [`src/routeTree.gen.ts`](https://github.com/mohammed-sufiyaan/care-connect/blob/main/src/routeTree.gen.ts) (Route Registry), [`src/components/advisor-chat.tsx`](https://github.com/mohammed-sufiyaan/care-connect/blob/main/src/components/advisor-chat.tsx) (Advisor Chat), [`src/routes/simulator.tsx`](https://github.com/mohammed-sufiyaan/care-connect/blob/main/src/routes/simulator.tsx) (Policy Simulator), [`src/main.tsx`](https://github.com/mohammed-sufiyaan/care-connect/blob/main/src/main.tsx) (App Entry)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_app["Application Shell"]
  node_entry["App Entry<br/>[main.tsx]"]
  node_routes["Route Registry<br/>[routeTree.gen.ts]"]
  node_shell["Shared Site Shell<br/>[__root.tsx]"]
end

subgraph group_strategy["Strategy Tools"]
  node_home["Strategy Home<br/>[index.tsx]"]
  node_network["Network Map<br/>[network.tsx]"]
  node_mapdata["Map Geometry<br/>[canada-map.ts]"]
  node_careroute["Patient Journey<br/>[careroute.tsx]"]
  node_simulator["Policy Simulator<br/>[simulator.tsx]"]
  node_risks["Risk Analysis Panel<br/>[risk-panel.tsx]"]
  node_simulation["Impact Engine<br/>[simulate.ts]"]
  node_economics["Economic Model Page<br/>[economics.tsx]"]
  node_model["Projection Model<br/>[model.ts]"]
end

subgraph group_research["Research and Advice"]
  node_sourcespage["Sources Page<br/>[sources.tsx]"]
  node_sourcedata["Research Sources<br/>[sources.ts]"]
  node_advisorlogic["Advisor Knowledge<br/>[advisor.ts]"]
end

subgraph group_presentation["Advisor Interface"]
  node_advisorpage["Advisor Page<br/>[advisor.tsx]"]
  node_chat["Advisor Chat<br/>[advisor-chat.tsx]"]
  node_robot["Advisor Mascot<br/>[robot.tsx]"]
end

node_visitor(("Site Visitor"))
node_claude(("Anthropic Claude"))

node_visitor -->|"opens site"| node_entry
node_entry -->|"renders routes"| node_routes
node_routes -->|"registers"| node_home
node_routes -->|"registers"| node_shell
node_routes -->|"registers"| node_network
node_routes -->|"registers"| node_careroute
node_routes -->|"registers"| node_simulator
node_routes -->|"registers"| node_economics
node_routes -->|"registers"| node_sourcespage
node_routes -->|"registers"| node_advisorpage
node_shell -->|"includes chat"| node_chat
node_home -->|"reads statistics"| node_sourcedata
node_network -->|"uses geometry"| node_mapdata
node_simulator -->|"runs analysis"| node_simulation
node_simulator -->|"shows risks"| node_risks
node_risks -->|"reads impact data"| node_simulation
node_economics -->|"uses projections"| node_model
node_sourcespage -->|"reads sources"| node_sourcedata
node_advisorpage -->|"renders chat"| node_chat
node_chat -->|"requests answers"| node_advisorlogic
node_chat -->|"renders mascot"| node_robot
node_advisorlogic -.->|"requests live answers"| node_claude

click node_entry "https://github.com/mohammed-sufiyaan/care-connect/blob/main/src/main.tsx"
click node_routes "https://github.com/mohammed-sufiyaan/care-connect/blob/main/src/routeTree.gen.ts"
click node_shell "https://github.com/mohammed-sufiyaan/care-connect/blob/main/src/routes/__root.tsx"
click node_home "https://github.com/mohammed-sufiyaan/care-connect/blob/main/src/routes/index.tsx"
click node_network "https://github.com/mohammed-sufiyaan/care-connect/blob/main/src/routes/network.tsx"
click node_mapdata "https://github.com/mohammed-sufiyaan/care-connect/blob/main/src/lib/canada-map.ts"
click node_careroute "https://github.com/mohammed-sufiyaan/care-connect/blob/main/src/routes/careroute.tsx"
click node_simulator "https://github.com/mohammed-sufiyaan/care-connect/blob/main/src/routes/simulator.tsx"
click node_risks "https://github.com/mohammed-sufiyaan/care-connect/blob/main/src/components/risk-panel.tsx"
click node_simulation "https://github.com/mohammed-sufiyaan/care-connect/blob/main/src/lib/simulate.ts"
click node_economics "https://github.com/mohammed-sufiyaan/care-connect/blob/main/src/routes/economics.tsx"
click node_model "https://github.com/mohammed-sufiyaan/care-connect/blob/main/src/lib/model.ts"
click node_sourcespage "https://github.com/mohammed-sufiyaan/care-connect/blob/main/src/routes/sources.tsx"
click node_sourcedata "https://github.com/mohammed-sufiyaan/care-connect/blob/main/src/lib/sources.ts"
click node_advisorpage "https://github.com/mohammed-sufiyaan/care-connect/blob/main/src/routes/advisor.tsx"
click node_chat "https://github.com/mohammed-sufiyaan/care-connect/blob/main/src/components/advisor-chat.tsx"
click node_advisorlogic "https://github.com/mohammed-sufiyaan/care-connect/blob/main/src/lib/advisor.ts"
click node_robot "https://github.com/mohammed-sufiyaan/care-connect/blob/main/src/components/robot.tsx"

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_entry,node_routes,node_shell toneBlue
class node_home,node_network,node_mapdata,node_careroute,node_simulator,node_risks,node_simulation,node_economics,node_model toneAmber
class node_sourcespage,node_sourcedata,node_advisorlogic toneMint
class node_advisorpage,node_chat,node_robot toneRose
class node_visitor,node_claude toneIndigo
```

## Components

### Application Shell

- [App Entry](https://github.com/mohammed-sufiyaan/care-connect/blob/main/src/main.tsx): `src/main.tsx`
- [Route Registry](https://github.com/mohammed-sufiyaan/care-connect/blob/main/src/routeTree.gen.ts): `src/routeTree.gen.ts`
- [Shared Site Shell](https://github.com/mohammed-sufiyaan/care-connect/blob/main/src/routes/__root.tsx): `src/routes/__root.tsx`

### Strategy Tools

- [Strategy Home](https://github.com/mohammed-sufiyaan/care-connect/blob/main/src/routes/index.tsx): `src/routes/index.tsx`
- [Network Map](https://github.com/mohammed-sufiyaan/care-connect/blob/main/src/routes/network.tsx): `src/routes/network.tsx`
- [Map Geometry](https://github.com/mohammed-sufiyaan/care-connect/blob/main/src/lib/canada-map.ts): `src/lib/canada-map.ts`
- [Patient Journey](https://github.com/mohammed-sufiyaan/care-connect/blob/main/src/routes/careroute.tsx): `src/routes/careroute.tsx`
- [Policy Simulator](https://github.com/mohammed-sufiyaan/care-connect/blob/main/src/routes/simulator.tsx): `src/routes/simulator.tsx`
- [Risk Analysis Panel](https://github.com/mohammed-sufiyaan/care-connect/blob/main/src/components/risk-panel.tsx): `src/components/risk-panel.tsx`
- [Impact Engine](https://github.com/mohammed-sufiyaan/care-connect/blob/main/src/lib/simulate.ts): `src/lib/simulate.ts`
- [Economic Model Page](https://github.com/mohammed-sufiyaan/care-connect/blob/main/src/routes/economics.tsx): `src/routes/economics.tsx`
- [Projection Model](https://github.com/mohammed-sufiyaan/care-connect/blob/main/src/lib/model.ts): `src/lib/model.ts`

### Research and Advice

- [Sources Page](https://github.com/mohammed-sufiyaan/care-connect/blob/main/src/routes/sources.tsx): `src/routes/sources.tsx`
- [Research Sources](https://github.com/mohammed-sufiyaan/care-connect/blob/main/src/lib/sources.ts): `src/lib/sources.ts`
- [Advisor Knowledge](https://github.com/mohammed-sufiyaan/care-connect/blob/main/src/lib/advisor.ts): `src/lib/advisor.ts`

### Advisor Interface

- [Advisor Page](https://github.com/mohammed-sufiyaan/care-connect/blob/main/src/routes/advisor.tsx): `src/routes/advisor.tsx`
- [Advisor Chat](https://github.com/mohammed-sufiyaan/care-connect/blob/main/src/components/advisor-chat.tsx): `src/components/advisor-chat.tsx`
- [Advisor Mascot](https://github.com/mohammed-sufiyaan/care-connect/blob/main/src/components/robot.tsx): `src/components/robot.tsx`

### Other components

- **Site Visitor**
- **Anthropic Claude**

## Connections

- Site Visitor → App Entry: opens site
- App Entry → Route Registry: renders routes (evidence: `src/main.tsx`)
- Route Registry → Strategy Home: registers (evidence: `src/routeTree.gen.ts`)
- Route Registry → Shared Site Shell: registers (evidence: `src/routeTree.gen.ts`)
- Route Registry → Network Map: registers (evidence: `src/routeTree.gen.ts`)
- Route Registry → Patient Journey: registers (evidence: `src/routeTree.gen.ts`)
- Route Registry → Policy Simulator: registers (evidence: `src/routeTree.gen.ts`)
- Route Registry → Economic Model Page: registers (evidence: `src/routeTree.gen.ts`)
- Route Registry → Sources Page: registers (evidence: `src/routeTree.gen.ts`)
- Route Registry → Advisor Page: registers (evidence: `src/routeTree.gen.ts`)
- Shared Site Shell → Advisor Chat: includes chat (evidence: `src/routes/__root.tsx`)
- Strategy Home → Research Sources: reads statistics (evidence: `src/routes/index.tsx`)
- Network Map → Map Geometry: uses geometry (evidence: `src/routes/network.tsx`)
- Policy Simulator → Impact Engine: runs analysis (evidence: `src/routes/simulator.tsx`)
- Policy Simulator → Risk Analysis Panel: shows risks (evidence: `src/routes/simulator.tsx`)
- Risk Analysis Panel → Impact Engine: reads impact data (evidence: `src/components/risk-panel.tsx`)
- Economic Model Page → Projection Model: uses projections (evidence: `src/routes/economics.tsx`)
- Sources Page → Research Sources: reads sources (evidence: `src/routes/sources.tsx`)
- Advisor Page → Advisor Chat: renders chat (evidence: `src/routes/advisor.tsx`)
- Advisor Chat → Advisor Knowledge: requests answers (evidence: `src/components/advisor-chat.tsx`)
- Advisor Chat → Advisor Mascot: renders mascot (evidence: `src/components/advisor-chat.tsx`)
- Advisor Knowledge → Anthropic Claude: requests live answers
