How bit9-a/care_fe works
CARE is a healthcare operations frontend for facility and patient workflows. Users authenticate, enter role-aware routes, and work with patient encounters, questionnaires, scheduling, files, and billing; requests are sent to the configured CARE backend. The graph includes the shared request layer and plugin runtime as internal capabilities. Evidence is limited to the README and indexed excerpts, so unsampled feature relationships are omitted where they cannot be verified.
Main entry points: query.ts API request layer · App.tsx Application shell · AppRouter.tsx Application routing · ConsultationRoutes.tsx Encounter routes
Components 19
Application Shell
- Application shell
src/App.tsx - Authentication state
src/Providers/AuthUserProvider.tsx - Application routing
src/Routers/AppRouter.tsx - Encounter routes
src/Routers/routes/ConsultationRoutes.tsx - Facility routes
src/Routers/routes/FacilityRoutes.tsx
Clinical Workflows
- Encounter workflow
src/pages/Encounters - Encounter completion
src/pages/Encounters/utils/useEncounterProgressController.ts - Questionnaires
src/components/Questionnaire - Patient records
src/components/Patient
Facility Operations
- Appointments
src/pages/Appointments - Facility operations
src/pages/Facility - Billing
src/components/Billing - File management
src/hooks/useFileManager.tsx
Shared Platform
- API request layer
src/Utils/request/query.ts - Mutation adapter
src/Utils/request/mutate.ts
Extensions
- Plugin runtime
src/PluginEngine.tsx
Other components
- Healthcare user
- CARE backend
- Plugin federation
Connections 16
- Healthcare user → Application shell: opens
README.md - Application shell → Authentication state: provides
src/App.tsx - Application shell → Application routing: renders
src/App.tsx - Application routing → Encounter routes: routes
src/Routers/AppRouter.tsx - Application routing → Facility routes: routes
src/Routers/AppRouter.tsx - Encounter routes → Encounter workflow: routes to
src/Routers/routes/ConsultationRoutes.tsx - Encounter routes → Questionnaires: routes to
src/Routers/routes/ConsultationRoutes.tsx - Facility routes → Facility operations: routes to
src/Routers/routes/FacilityRoutes.tsx - Facility routes → Billing: routes to
src/Routers/routes/FacilityRoutes.tsx - Encounter completion → API request layer: batches calls
src/pages/Encounters/utils/useEncounterProgressController.ts - Encounter completion → Encounter workflow: updates
src/pages/Encounters/utils/useEncounterProgressController.ts - File management → API request layer: queries
src/hooks/useFileManager.tsx - API request layer → CARE backend: sends HTTP
README.md - Mutation adapter → API request layer: calls API
src/Utils/request/mutate.ts - Plugin runtime → API request layer: loads config
src/PluginEngine.tsx - Plugin runtime → Plugin federation: loads remotes
src/PluginEngine.tsx