# hussainahmad2/rcm-frontend architecture

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

- Interactive diagram: https://gitdiagram.com/hussainahmad2/rcm-frontend
- Repository: https://github.com/hussainahmad2/rcm-frontend

## Overview

Velora is a revenue-cycle-management frontend for healthcare operations. Users enter through public or login routes, then work in a tenant-scoped workspace; its screens retrieve and update operational data through a shared API client. The workspace covers patient and provider operations, eligibility, authorizations, claims, denials, payments, and related functions, alongside AI workforce tools and administrative configuration. The README documents a separately started backend and JWT-protected workspace. Several screen relationships are supported by the SOURCE INDEX rather than inspected implementation details.

Main entry points: [`src/pages/workspace/WorkspacePage.tsx`](https://github.com/hussainahmad2/rcm-frontend/blob/main/src/pages/workspace/WorkspacePage.tsx) (Workspace shell), [`src/lib/api.ts`](https://github.com/hussainahmad2/rcm-frontend/blob/main/src/lib/api.ts) (API client), [`src/App.tsx`](https://github.com/hussainahmad2/rcm-frontend/blob/main/src/App.tsx) (Routes and providers), [`src/pages/workspace/screens/claims/Claims.tsx`](https://github.com/hussainahmad2/rcm-frontend/blob/main/src/pages/workspace/screens/claims/Claims.tsx) (Claims)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_entry["Application entry"]
  node_app["Routes and providers<br/>[App.tsx]"]
  node_auth["Authentication and tenant<br/>[auth.tsx]"]
  node_home["Home and login<br/>[HomePage.tsx]"]
end

subgraph group_workspace["Revenue operations"]
  node_workspace["Workspace shell<br/>[WorkspacePage.tsx]"]
  node_overview["Overview<br/>[Overview.tsx]"]
  node_queue["Work queue<br/>[WorkQueue.tsx]"]
  node_registration["Registration desk"]
  node_providers["Provider operations<br/>[Providers.tsx]"]
  node_patients["Patient operations"]
  node_eligibility["Eligibility<br/>[Eligibility.tsx]"]
  node_authorizations["Authorizations<br/>[Authorizations.tsx]"]
  node_claims["Claims<br/>[Claims.tsx]"]
  node_denials["Denials<br/>[Denials.tsx]"]
  node_revenue["Revenue-cycle screens"]
end

subgraph group_shared["Shared services"]
  node_api["API client<br/>[api.ts]"]
  node_tenant["Tenant scope"]
  node_format["Formatting and insight parsing<br/>[format.ts]"]
  node_sharedui["Workspace UI components<br/>[ui.tsx]"]
end

subgraph group_admin["Administration and AI"]
  node_workforce["AI workforce<br/>[Workforce.tsx]"]
  node_operations["Operations settings<br/>[Operations.tsx]"]
end

node_user(("User"))
node_backend["Velora backend"]

node_user -->|"opens"| node_app
node_app -->|"provides auth"| node_auth
node_app -->|"routes to"| node_home
node_app -->|"routes to"| node_workspace
node_workspace -->|"reads session"| node_auth
node_workspace -->|"renders"| node_overview
node_workspace -->|"renders"| node_queue
node_workspace -->|"renders"| node_registration
node_workspace -->|"renders"| node_providers
node_workspace -.->|"renders"| node_patients
node_workspace -.->|"renders"| node_eligibility
node_workspace -->|"renders"| node_authorizations
node_workspace -.->|"renders"| node_claims
node_workspace -.->|"renders"| node_denials
node_workspace -.->|"routes other views"| node_revenue
node_workspace -->|"loads work items"| node_api
node_auth -->|"calls session APIs"| node_api
node_api -.->|"sends requests"| node_backend
node_providers -->|"uses API"| node_api
node_claims -->|"uses API"| node_api
node_authorizations -->|"uses API"| node_api
node_providers -->|"uses scope"| node_tenant
node_claims -->|"uses scope"| node_tenant
node_claims -->|"renders"| node_sharedui
node_sharedui -->|"formats labels"| node_format
node_workforce -->|"uses API"| node_api
node_operations -->|"uses API"| node_api

click node_app "https://github.com/hussainahmad2/rcm-frontend/blob/main/src/App.tsx"
click node_auth "https://github.com/hussainahmad2/rcm-frontend/blob/main/src/lib/auth.tsx"
click node_home "https://github.com/hussainahmad2/rcm-frontend/blob/main/src/pages/home/HomePage.tsx"
click node_workspace "https://github.com/hussainahmad2/rcm-frontend/blob/main/src/pages/workspace/WorkspacePage.tsx"
click node_overview "https://github.com/hussainahmad2/rcm-frontend/blob/main/src/pages/workspace/screens/overview/Overview.tsx"
click node_queue "https://github.com/hussainahmad2/rcm-frontend/blob/main/src/pages/workspace/screens/queue/WorkQueue.tsx"
click node_registration "https://github.com/hussainahmad2/rcm-frontend/blob/main/src/pages/workspace/screens/registration/RegistrationDesk.tsx"
click node_providers "https://github.com/hussainahmad2/rcm-frontend/blob/main/src/pages/workspace/screens/providers/Providers.tsx"
click node_patients "https://github.com/hussainahmad2/rcm-frontend/tree/main/src/pages/workspace/screens/patients"
click node_eligibility "https://github.com/hussainahmad2/rcm-frontend/blob/main/src/pages/workspace/screens/eligibility/Eligibility.tsx"
click node_authorizations "https://github.com/hussainahmad2/rcm-frontend/blob/main/src/pages/workspace/screens/authorizations/Authorizations.tsx"
click node_claims "https://github.com/hussainahmad2/rcm-frontend/blob/main/src/pages/workspace/screens/claims/Claims.tsx"
click node_denials "https://github.com/hussainahmad2/rcm-frontend/blob/main/src/pages/workspace/screens/denials/Denials.tsx"
click node_revenue "https://github.com/hussainahmad2/rcm-frontend/tree/main/src/pages/workspace/screens"
click node_api "https://github.com/hussainahmad2/rcm-frontend/blob/main/src/lib/api.ts"
click node_tenant "https://github.com/hussainahmad2/rcm-frontend/blob/main/src/pages/workspace/shared/use-tenant-scope.ts"
click node_format "https://github.com/hussainahmad2/rcm-frontend/blob/main/src/pages/workspace/shared/format.ts"
click node_sharedui "https://github.com/hussainahmad2/rcm-frontend/blob/main/src/pages/workspace/shared/ui.tsx"
click node_workforce "https://github.com/hussainahmad2/rcm-frontend/blob/main/src/pages/workspace/screens/ai/Workforce.tsx"
click node_operations "https://github.com/hussainahmad2/rcm-frontend/blob/main/src/pages/workspace/screens/settings/Operations.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_app,node_auth,node_home,node_user toneBlue
class node_workspace,node_overview,node_queue,node_registration,node_providers,node_patients,node_eligibility,node_authorizations,node_claims,node_denials,node_revenue toneAmber
class node_api,node_tenant,node_format,node_sharedui toneMint
class node_workforce,node_operations toneRose
class node_backend toneIndigo
```

## Components

### Application entry

- [Routes and providers](https://github.com/hussainahmad2/rcm-frontend/blob/main/src/App.tsx): `src/App.tsx`
- [Authentication and tenant](https://github.com/hussainahmad2/rcm-frontend/blob/main/src/lib/auth.tsx): `src/lib/auth.tsx`
- [Home and login](https://github.com/hussainahmad2/rcm-frontend/blob/main/src/pages/home/HomePage.tsx): `src/pages/home/HomePage.tsx`

### Revenue operations

- [Workspace shell](https://github.com/hussainahmad2/rcm-frontend/blob/main/src/pages/workspace/WorkspacePage.tsx): `src/pages/workspace/WorkspacePage.tsx`
- [Overview](https://github.com/hussainahmad2/rcm-frontend/blob/main/src/pages/workspace/screens/overview/Overview.tsx): `src/pages/workspace/screens/overview/Overview.tsx`
- [Work queue](https://github.com/hussainahmad2/rcm-frontend/blob/main/src/pages/workspace/screens/queue/WorkQueue.tsx): `src/pages/workspace/screens/queue/WorkQueue.tsx`
- [Registration desk](https://github.com/hussainahmad2/rcm-frontend/blob/main/src/pages/workspace/screens/registration/RegistrationDesk.tsx): `src/pages/workspace/screens/registration/RegistrationDesk.tsx`
- [Provider operations](https://github.com/hussainahmad2/rcm-frontend/blob/main/src/pages/workspace/screens/providers/Providers.tsx): `src/pages/workspace/screens/providers/Providers.tsx`
- [Patient operations](https://github.com/hussainahmad2/rcm-frontend/tree/main/src/pages/workspace/screens/patients): `src/pages/workspace/screens/patients`
- [Eligibility](https://github.com/hussainahmad2/rcm-frontend/blob/main/src/pages/workspace/screens/eligibility/Eligibility.tsx): `src/pages/workspace/screens/eligibility/Eligibility.tsx`
- [Authorizations](https://github.com/hussainahmad2/rcm-frontend/blob/main/src/pages/workspace/screens/authorizations/Authorizations.tsx): `src/pages/workspace/screens/authorizations/Authorizations.tsx`
- [Claims](https://github.com/hussainahmad2/rcm-frontend/blob/main/src/pages/workspace/screens/claims/Claims.tsx): `src/pages/workspace/screens/claims/Claims.tsx`
- [Denials](https://github.com/hussainahmad2/rcm-frontend/blob/main/src/pages/workspace/screens/denials/Denials.tsx): `src/pages/workspace/screens/denials/Denials.tsx`
- [Revenue-cycle screens](https://github.com/hussainahmad2/rcm-frontend/tree/main/src/pages/workspace/screens): `src/pages/workspace/screens`

### Shared services

- [API client](https://github.com/hussainahmad2/rcm-frontend/blob/main/src/lib/api.ts): `src/lib/api.ts`
- [Tenant scope](https://github.com/hussainahmad2/rcm-frontend/blob/main/src/pages/workspace/shared/use-tenant-scope.ts): `src/pages/workspace/shared/use-tenant-scope.ts`
- [Formatting and insight parsing](https://github.com/hussainahmad2/rcm-frontend/blob/main/src/pages/workspace/shared/format.ts): `src/pages/workspace/shared/format.ts`
- [Workspace UI components](https://github.com/hussainahmad2/rcm-frontend/blob/main/src/pages/workspace/shared/ui.tsx): `src/pages/workspace/shared/ui.tsx`

### Administration and AI

- [AI workforce](https://github.com/hussainahmad2/rcm-frontend/blob/main/src/pages/workspace/screens/ai/Workforce.tsx): `src/pages/workspace/screens/ai/Workforce.tsx`
- [Operations settings](https://github.com/hussainahmad2/rcm-frontend/blob/main/src/pages/workspace/screens/settings/Operations.tsx): `src/pages/workspace/screens/settings/Operations.tsx`

### Other components

- **User**
- **Velora backend**

## Connections

- User → Routes and providers: opens (evidence: `src/App.tsx`)
- Routes and providers → Authentication and tenant: provides auth (evidence: `src/App.tsx`)
- Routes and providers → Home and login: routes to (evidence: `src/App.tsx`)
- Routes and providers → Workspace shell: routes to (evidence: `src/App.tsx`)
- Workspace shell → Authentication and tenant: reads session (evidence: `src/pages/workspace/WorkspacePage.tsx`)
- Workspace shell → Overview: renders (evidence: `src/pages/workspace/WorkspacePage.tsx`)
- Workspace shell → Work queue: renders (evidence: `src/pages/workspace/WorkspacePage.tsx`)
- Workspace shell → Registration desk: renders (evidence: `src/pages/workspace/WorkspacePage.tsx`)
- Workspace shell → Provider operations: renders (evidence: `src/pages/workspace/WorkspacePage.tsx`)
- Workspace shell → Patient operations: renders (evidence: `src/pages/workspace/WorkspacePage.tsx`)
- Workspace shell → Eligibility: renders (evidence: `src/pages/workspace/WorkspacePage.tsx`)
- Workspace shell → Authorizations: renders (evidence: `src/pages/workspace/WorkspacePage.tsx`)
- Workspace shell → Claims: renders (evidence: `src/pages/workspace/WorkspacePage.tsx`)
- Workspace shell → Denials: renders (evidence: `src/pages/workspace/WorkspacePage.tsx`)
- Workspace shell → Revenue-cycle screens: routes other views (evidence: `src/pages/workspace/WorkspacePage.tsx`)
- Workspace shell → API client: loads work items (evidence: `src/pages/workspace/WorkspacePage.tsx`)
- Authentication and tenant → API client: calls session APIs (evidence: `src/lib/auth.tsx`)
- API client → Velora backend: sends requests (evidence: `README.md`)
- Provider operations → API client: uses API (evidence: `src/pages/workspace/screens/providers/Providers.tsx`)
- Claims → API client: uses API (evidence: `src/pages/workspace/screens/claims/Claims.tsx`)
- Authorizations → API client: uses API (evidence: `src/pages/workspace/screens/authorizations/Authorizations.tsx`)
- Provider operations → Tenant scope: uses scope (evidence: `src/pages/workspace/screens/providers/Providers.tsx`)
- Claims → Tenant scope: uses scope (evidence: `src/pages/workspace/screens/claims/Claims.tsx`)
- Claims → Workspace UI components: renders (evidence: `src/pages/workspace/screens/claims/Claims.tsx`)
- Workspace UI components → Formatting and insight parsing: formats labels (evidence: `src/pages/workspace/shared/ui.tsx`)
- AI workforce → API client: uses API (evidence: `src/pages/workspace/screens/ai/Workforce.tsx`)
- Operations settings → API client: uses API (evidence: `src/pages/workspace/screens/settings/Operations.tsx`)
