# leapgensolutions/seismicapp architecture

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

- Interactive diagram: https://gitdiagram.com/leapgensolutions/seismicapp
- Repository: https://github.com/leapgensolutions/seismicapp

## Overview

This is a React clinical-care portal: the tree points to appointments, patient and post-call documentation, billing, value-based-care workflows, reporting, and access management. The README describes only the Create React App scaffold, so the product purpose is inferred from the source tree rather than product documentation. The visible user journey enters through authentication and routed pages; sampled VBC code shows a workflow stage that loads appointment/provider data and uses VBC APIs. Several listed capabilities have no sampled implementation, so their internal connections are omitted.

Main entry points: [`src/App.jsx`](https://github.com/leapgensolutions/seismicapp/blob/main/src/App.jsx) (App router), [`src/Pages/VBCSummary.jsx`](https://github.com/leapgensolutions/seismicapp/blob/main/src/Pages/VBCSummary.jsx) (VBC summary), [`src/Pages/Appointments.jsx`](https://github.com/leapgensolutions/seismicapp/blob/main/src/Pages/Appointments.jsx) (Appointments), [`src/Pages/RBACManagement.jsx`](https://github.com/leapgensolutions/seismicapp/blob/main/src/Pages/RBACManagement.jsx) (Role administration)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_app["Application shell"]
  node_shell["App router<br/>[App.jsx]"]
  node_authpage["Sign-in<br/>[AuthPage.jsx]"]
end

subgraph group_care["Care workflows"]
  node_appointments["Appointments<br/>[Appointments.jsx]"]
  node_apptcalendar["Appointment calendar"]
  node_postcall["Post-call documentation"]
  node_soap["SOAP documentation<br/>[Soap.jsx]"]
  node_orders["Clinical orders<br/>[OrdersSection.jsx]"]
  node_patients["Patient records<br/>[Patients.jsx]"]
  node_billing["Payment billing<br/>[PaymentBilling.jsx]"]
  node_billinghistory["Billing history<br/>[BillingHistory.jsx]"]
  node_invoice["Invoice preview<br/>[InvoicePreview.jsx]"]
  node_reports["Reports<br/>[Reports.jsx]"]
end

subgraph group_vbc["Value-based care"]
  node_vbcsummary["VBC summary<br/>[VBCSummary.jsx]"]
  node_vbcapi["VBC summary API<br/>[vbcSummary.js]"]
  node_vbcworkflow["VBC workflow logic<br/>[vbcWorkflow.js]"]
  node_vbcstore[("VBC task state<br/>[vbcTaskStore.js]")]
  node_checklist["VBC checklist"]
end

subgraph group_admin["Access management"]
  node_rbac["Role administration<br/>[RBACManagement.jsx]"]
  node_rbacapi["Role services<br/>[rbac.js]"]
  node_permissions["Permission rules<br/>[rbac.js]"]
end

subgraph group_platform["Client services"]
  node_apptactions["Appointment data"]
  node_meactions["User context<br/>[me-actions.js]"]
  node_authapi["Session utilities<br/>[auth.js]"]
  node_appointmentsapi["Appointment API state"]
end

node_user(("Portal user"))

node_user -->|"signs in"| node_authpage
node_authpage -->|"enters app"| node_shell
node_shell -->|"routes to"| node_appointments
node_appointments -->|"renders"| node_apptcalendar
node_appointments -->|"dispatches"| node_apptactions
node_apptactions -->|"updates"| node_appointmentsapi
node_shell -.->|"routes to"| node_postcall
node_postcall -.->|"renders"| node_soap
node_soap -->|"renders"| node_orders
node_shell -.->|"routes to"| node_patients
node_shell -.->|"routes to"| node_billing
node_shell -.->|"routes to"| node_billinghistory
node_shell -->|"routes to"| node_invoice
node_shell -.->|"routes to"| node_vbcsummary
node_vbcsummary -->|"loads appointments"| node_apptactions
node_vbcsummary -->|"requests summary"| node_vbcapi
node_vbcsummary -->|"uses workflow"| node_vbcworkflow
node_vbcsummary -->|"uses task state"| node_vbcstore
node_checklist -->|"requests data"| node_vbcapi
node_shell -.->|"routes to"| node_rbac
node_rbac -->|"manages roles"| node_rbacapi
node_rbac -->|"checks access"| node_permissions
node_meactions -->|"loads roles"| node_rbacapi
node_meactions -->|"computes permissions"| node_permissions
node_vbcsummary -->|"resolves scope"| node_authapi
node_shell -.->|"routes to"| node_reports

click node_shell "https://github.com/leapgensolutions/seismicapp/blob/main/src/App.jsx"
click node_authpage "https://github.com/leapgensolutions/seismicapp/blob/main/src/Pages/AuthPage.jsx"
click node_appointments "https://github.com/leapgensolutions/seismicapp/blob/main/src/Pages/Appointments.jsx"
click node_apptcalendar "https://github.com/leapgensolutions/seismicapp/blob/main/src/components/appointments/AppointmentCalendar.jsx"
click node_apptactions "https://github.com/leapgensolutions/seismicapp/blob/main/src/redux/appointment-actions.js"
click node_postcall "https://github.com/leapgensolutions/seismicapp/blob/main/src/Pages/PostCallDocumentation.jsx"
click node_soap "https://github.com/leapgensolutions/seismicapp/blob/main/src/components/post-call/Soap.jsx"
click node_orders "https://github.com/leapgensolutions/seismicapp/blob/main/src/components/post-call/sections/OrdersSection.jsx"
click node_patients "https://github.com/leapgensolutions/seismicapp/blob/main/src/Pages/Patients.jsx"
click node_billing "https://github.com/leapgensolutions/seismicapp/blob/main/src/Pages/PaymentBilling.jsx"
click node_billinghistory "https://github.com/leapgensolutions/seismicapp/blob/main/src/Pages/BillingHistory.jsx"
click node_invoice "https://github.com/leapgensolutions/seismicapp/blob/main/src/Pages/InvoicePreview.jsx"
click node_vbcsummary "https://github.com/leapgensolutions/seismicapp/blob/main/src/Pages/VBCSummary.jsx"
click node_vbcapi "https://github.com/leapgensolutions/seismicapp/blob/main/src/api/vbcSummary.js"
click node_vbcworkflow "https://github.com/leapgensolutions/seismicapp/blob/main/src/lib/vbcWorkflow.js"
click node_vbcstore "https://github.com/leapgensolutions/seismicapp/blob/main/src/lib/vbcTaskStore.js"
click node_checklist "https://github.com/leapgensolutions/seismicapp/blob/main/src/components/VBCChecklist_V1.jsx"
click node_rbac "https://github.com/leapgensolutions/seismicapp/blob/main/src/Pages/RBACManagement.jsx"
click node_rbacapi "https://github.com/leapgensolutions/seismicapp/blob/main/src/api/rbac.js"
click node_permissions "https://github.com/leapgensolutions/seismicapp/blob/main/src/lib/rbac.js"
click node_meactions "https://github.com/leapgensolutions/seismicapp/blob/main/src/redux/me-actions.js"
click node_authapi "https://github.com/leapgensolutions/seismicapp/blob/main/src/api/auth.js"
click node_appointmentsapi "https://github.com/leapgensolutions/seismicapp/blob/main/src/redux/appointment-slice.js"
click node_reports "https://github.com/leapgensolutions/seismicapp/blob/main/src/Pages/Reports.jsx"

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_shell,node_authpage,node_user toneBlue
class node_appointments,node_apptcalendar,node_postcall,node_soap,node_orders,node_patients,node_billing,node_billinghistory,node_invoice,node_reports toneAmber
class node_vbcsummary,node_vbcapi,node_vbcworkflow,node_vbcstore,node_checklist toneMint
class node_rbac,node_rbacapi,node_permissions toneRose
class node_apptactions,node_meactions,node_authapi,node_appointmentsapi toneIndigo
```

## Components

### Application shell

- [App router](https://github.com/leapgensolutions/seismicapp/blob/main/src/App.jsx): `src/App.jsx`
- [Sign-in](https://github.com/leapgensolutions/seismicapp/blob/main/src/Pages/AuthPage.jsx): `src/Pages/AuthPage.jsx`

### Care workflows

- [Appointments](https://github.com/leapgensolutions/seismicapp/blob/main/src/Pages/Appointments.jsx): `src/Pages/Appointments.jsx`
- [Appointment calendar](https://github.com/leapgensolutions/seismicapp/blob/main/src/components/appointments/AppointmentCalendar.jsx): `src/components/appointments/AppointmentCalendar.jsx`
- [Post-call documentation](https://github.com/leapgensolutions/seismicapp/blob/main/src/Pages/PostCallDocumentation.jsx): `src/Pages/PostCallDocumentation.jsx`
- [SOAP documentation](https://github.com/leapgensolutions/seismicapp/blob/main/src/components/post-call/Soap.jsx): `src/components/post-call/Soap.jsx`
- [Clinical orders](https://github.com/leapgensolutions/seismicapp/blob/main/src/components/post-call/sections/OrdersSection.jsx): `src/components/post-call/sections/OrdersSection.jsx`
- [Patient records](https://github.com/leapgensolutions/seismicapp/blob/main/src/Pages/Patients.jsx): `src/Pages/Patients.jsx`
- [Payment billing](https://github.com/leapgensolutions/seismicapp/blob/main/src/Pages/PaymentBilling.jsx): `src/Pages/PaymentBilling.jsx`
- [Billing history](https://github.com/leapgensolutions/seismicapp/blob/main/src/Pages/BillingHistory.jsx): `src/Pages/BillingHistory.jsx`
- [Invoice preview](https://github.com/leapgensolutions/seismicapp/blob/main/src/Pages/InvoicePreview.jsx): `src/Pages/InvoicePreview.jsx`
- [Reports](https://github.com/leapgensolutions/seismicapp/blob/main/src/Pages/Reports.jsx): `src/Pages/Reports.jsx`

### Value-based care

- [VBC summary](https://github.com/leapgensolutions/seismicapp/blob/main/src/Pages/VBCSummary.jsx): `src/Pages/VBCSummary.jsx`
- [VBC summary API](https://github.com/leapgensolutions/seismicapp/blob/main/src/api/vbcSummary.js): `src/api/vbcSummary.js`
- [VBC workflow logic](https://github.com/leapgensolutions/seismicapp/blob/main/src/lib/vbcWorkflow.js): `src/lib/vbcWorkflow.js`
- [VBC task state](https://github.com/leapgensolutions/seismicapp/blob/main/src/lib/vbcTaskStore.js): `src/lib/vbcTaskStore.js`
- [VBC checklist](https://github.com/leapgensolutions/seismicapp/blob/main/src/components/VBCChecklist_V1.jsx): `src/components/VBCChecklist_V1.jsx`

### Access management

- [Role administration](https://github.com/leapgensolutions/seismicapp/blob/main/src/Pages/RBACManagement.jsx): `src/Pages/RBACManagement.jsx`
- [Role services](https://github.com/leapgensolutions/seismicapp/blob/main/src/api/rbac.js): `src/api/rbac.js`
- [Permission rules](https://github.com/leapgensolutions/seismicapp/blob/main/src/lib/rbac.js): `src/lib/rbac.js`

### Client services

- [Appointment data](https://github.com/leapgensolutions/seismicapp/blob/main/src/redux/appointment-actions.js): `src/redux/appointment-actions.js`
- [User context](https://github.com/leapgensolutions/seismicapp/blob/main/src/redux/me-actions.js): `src/redux/me-actions.js`
- [Session utilities](https://github.com/leapgensolutions/seismicapp/blob/main/src/api/auth.js): `src/api/auth.js`
- [Appointment API state](https://github.com/leapgensolutions/seismicapp/blob/main/src/redux/appointment-slice.js): `src/redux/appointment-slice.js`

### Other components

- **Portal user**

## Connections

- Portal user → Sign-in: signs in
- Sign-in → App router: enters app (evidence: `src/App.jsx`)
- App router → Appointments: routes to (evidence: `src/App.jsx`)
- Appointments → Appointment calendar: renders (evidence: `src/Pages/Appointments.jsx`)
- Appointments → Appointment data: dispatches (evidence: `src/Pages/Appointments.jsx`)
- Appointment data → Appointment API state: updates (evidence: `src/redux/appointment-actions.js`)
- App router → Post-call documentation: routes to (evidence: `src/App.jsx`)
- Post-call documentation → SOAP documentation: renders
- SOAP documentation → Clinical orders: renders (evidence: `src/components/post-call/Soap.jsx`)
- App router → Patient records: routes to (evidence: `src/App.jsx`)
- App router → Payment billing: routes to (evidence: `src/App.jsx`)
- App router → Billing history: routes to (evidence: `src/App.jsx`)
- App router → Invoice preview: routes to (evidence: `src/App.jsx`)
- App router → VBC summary: routes to (evidence: `src/App.jsx`)
- VBC summary → Appointment data: loads appointments (evidence: `src/Pages/VBCSummary.jsx`)
- VBC summary → VBC summary API: requests summary (evidence: `src/Pages/VBCSummary.jsx`)
- VBC summary → VBC workflow logic: uses workflow (evidence: `src/Pages/VBCSummary.jsx`)
- VBC summary → VBC task state: uses task state (evidence: `src/Pages/VBCSummary.jsx`)
- VBC checklist → VBC summary API: requests data (evidence: `src/components/VBCChecklist_V1.jsx`)
- App router → Role administration: routes to (evidence: `src/App.jsx`)
- Role administration → Role services: manages roles (evidence: `src/Pages/RBACManagement.jsx`)
- Role administration → Permission rules: checks access (evidence: `src/Pages/RBACManagement.jsx`)
- User context → Role services: loads roles (evidence: `src/redux/me-actions.js`)
- User context → Permission rules: computes permissions (evidence: `src/redux/me-actions.js`)
- VBC summary → Session utilities: resolves scope (evidence: `src/Pages/VBCSummary.jsx`)
- App router → Reports: routes to (evidence: `src/App.jsx`)
