How ohcnetwork/care_fe works
CARE is a healthcare operations frontend for clinical and administrative work, including patient records, appointments, encounters, scheduling and queues, medication dispensing, billing, files, and questionnaires. The principal workflow is a staff member entering through the app’s routes, working with patient or facility workflows, and submitting or retrieving data through the request layer. The tree documents these product areas; sampled code confirms request/cache behavior, encounter completion, file/report handling, and plugin loading. Detailed wiring for unsampled pages is not inferred.
Main entry points: PluginEngine.tsx Plugin runtime · AppRouter.tsx App routes · App.tsx Application shell · useFileManager.tsx Files and reports
Components 23
App and access
- Application shell
src/App.tsx - App routes
src/Routers/AppRouter.tsx - Authentication
src/components/Auth/Authenticate.tsx - Patient routes
src/Routers/PatientRouter.tsx
Patient care
- Patient records
src/components/Patient/PatientProfile.tsx - Encounters
src/pages/Encounters/EncounterShow.tsx - Encounter completion
src/pages/Encounters/utils/useEncounterProgressController.ts - Questionnaires
src/components/Questionnaire/QuestionnaireForm.tsx - Files and reports
src/hooks/useFileManager.tsx - Clinical discussions
src/components/Notes/NoteManager.tsx
Facility operations
- Appointments
src/pages/Appointments/AppointmentsPage.tsx - Scheduling
src/components/Schedule/ScheduleHome.tsx - Facility queues
src/pages/Facility/queues/useQueueServicePoints.ts - Medication billing
src/pages/Facility/services/pharmacy/billMedications/utils/useBillMedications.ts - Billing
src/components/Billing/Invoice/EditInvoiceDialog.tsx
Administration
- Admin routes
src/Routers/routes/adminRoutes.tsx
Shared runtime
- Plugin runtime
src/PluginEngine.tsx - Request utilities
src/Utils/request/query.ts - Query cache
src/Utils/request/queryClient.ts
Other components
- Healthcare staff
- CARE backend
- Browser storage
- Federated plugins
Connections 23
- Healthcare staff → Application shell: uses
- Application shell → App routes: routes through
- App routes → Authentication: authenticates
- App routes → Patient routes: routes to
- Patient routes → Patient records: serves records
- Patient records → Encounters: opens
- Encounters → Encounter completion: completes via
- Encounter completion → CARE backend: batches updates
- Appointments → CARE backend: requests data
- Scheduling → CARE backend: requests data
- Facility queues → CARE backend: loads subqueues
- Medication billing → CARE backend: batches dispensing
- Billing → CARE backend: requests data
- Questionnaires → CARE backend: requests data
- Files and reports → Request utilities: queries files
- Files and reports → CARE backend: archives files
- Clinical discussions → CARE backend: manages discussions
- Admin routes → CARE backend: requests data
- Plugin runtime → CARE backend: loads enabled plugins
- Plugin runtime → Federated plugins: loads manifests
- Plugin runtime → Application shell: provides plugins
- Request utilities → CARE backend: sends requests
- Query cache → Browser storage: persists queries