How arusssh/carebridge-a.i works
CareBridge AI turns provider documents or sample vignettes into source-cited care plans, flags clinical ambiguities for human review, and presents actionable summaries, recovery timelines, and adherence tracking. The main user flow runs from the React app through its API client to FastAPI extraction and safety review, then into care-plan views and task updates. Caregiver coordination, notifications, and benchmark reporting are additional capabilities. Some backend routes and integrations are only documented or indexed, so uncertain connections are omitted.
Main entry points: App.tsx Application shell · main.py FastAPI routes · client.ts REST client · benchmark_runner.py Benchmark runner
Components 26
Patient Experience
- Application shell
frontend/src/App.tsx - Document intake
frontend/src/components/IngestionHub.tsx - Document scanner
frontend/src/components/DocumentScanner.tsx - Human review
frontend/src/components/ValidationReview.tsx - Care plan view
frontend/src/components/CarePlanView.tsx - Recovery timeline
frontend/src/components/TimelineView.tsx - Task tracker
frontend/src/components/TaskTracker.tsx - Visit questions
frontend/src/components/ClarificationModal.tsx - Caregiver portal
frontend/src/components/CaregiverPortal.tsx - Notification center
frontend/src/components/NotificationCenter.tsx - Benchmark dashboard
frontend/src/components/BenchmarkDashboard.tsx - REST client
frontend/src/api/client.ts
Clinical Ingestion
- Local fallback engine
frontend/src/api/resilientEngine.ts - FastAPI routes
backend/app/main.py - Document parsing
backend/app/services/document_parser.py - Care plan extraction
backend/app/services/ai_extractor.py
Care Plan Services
- Care plan schemas
backend/app/models/care_plan.py - Timeline sequencing
backend/app/services/timeline_service.py - Task adherence
backend/app/services/task_service.py
Care Coordination
- Caregiver coordination
backend/app/services/caregiver_service.py - Notification delivery
backend/app/services/notification_service.py
Safety and Evaluation
- Safety audit
backend/app/services/safety_auditor.py - Safety results
backend/app/models/safety.py - Benchmark runner
backend/app/services/benchmark_runner.py - Evaluation results
backend/app/models/evaluation.py
Other components
- Patient / caregiver
Connections 30
- Patient / caregiver → Application shell: uses
README.md - Application shell → Document intake: renders
frontend/src/App.tsx - Application shell → Document scanner: renders
frontend/src/App.tsx - Application shell → Human review: renders
frontend/src/App.tsx - Application shell → Care plan view: renders
frontend/src/App.tsx - Application shell → Recovery timeline: renders
frontend/src/App.tsx - Application shell → Task tracker: renders
frontend/src/App.tsx - Application shell → Visit questions: renders
frontend/src/App.tsx - Application shell → Caregiver portal: renders
frontend/src/App.tsx - Application shell → Notification center: renders
frontend/src/App.tsx - Application shell → Benchmark dashboard: renders
frontend/src/App.tsx - Application shell → REST client: calls
frontend/src/App.tsx - REST client → Local fallback engine: falls back
frontend/src/api/client.ts - Document intake → REST client: loads presets
frontend/src/components/IngestionHub.tsx - REST client → FastAPI routes: requests routes
README.md - FastAPI routes → Document parsing: parses uploads
backend/app/main.py - FastAPI routes → Care plan extraction: extracts plan
backend/app/main.py - Care plan extraction → Care plan schemas: builds
backend/app/services/ai_extractor.py - FastAPI routes → Safety audit: audits plan
backend/app/main.py - Safety audit → Safety results: returns findings
backend/app/services/safety_auditor.py - FastAPI routes → Timeline sequencing: generates timeline
backend/app/main.py - Timeline sequencing → Care plan schemas: reads plan
backend/app/services/timeline_service.py - FastAPI routes → Task adherence: updates tasks
backend/app/main.py - Task adherence → Care plan schemas: updates status
backend/app/services/task_service.py - FastAPI routes → Caregiver coordination: coordinates circle
backend/app/main.py - FastAPI routes → Notification delivery: manages notifications
backend/app/main.py - REST client → Benchmark runner: requests benchmark
README.md - Benchmark runner → Care plan extraction: evaluates extraction
backend/app/services/benchmark_runner.py - Benchmark runner → Safety audit: evaluates safety
backend/app/services/benchmark_runner.py - Benchmark runner → Evaluation results: reports metrics
backend/app/services/benchmark_runner.py