How vryon09/clinic-app works
This is a clinic-management application with a React frontend, Express API, and SQLite persistence. Staff authenticate, manage patients and consultations, record clinical details, handle laboratory requests/results, and bill patients; dashboards and administrative settings support that work. The tree also shows backup, signatures, clinic information, activity logs, and Google authentication. The README is empty, so capability coverage comes from the source tree and route registrations; some subsystem internals and frontend-to-API wiring were not sampled and are left unasserted or marked unverified.
Main entry points: App.tsx Application routes · server.ts HTTP API · prisma.ts SQLite database · recordController.ts Consultation records
Components 20
Clinic interface
- Application routes
frontend/src/ui/App.tsx - Sign-in screens
frontend/src/ui/components/pages/auth - Patient workspace
frontend/src/ui/components/pages/patients - Consultation workspace
frontend/src/ui/components/pages/consultations - Lab screens
frontend/src/ui/components/pages/labRequests - Billing workspace
frontend/src/ui/components/pages/billing - Dashboard
frontend/src/ui/components/pages/dashboard - Settings and archive
frontend/src/ui/components/pages/settings
Clinical records
- Patient records
backend/src/controller/patientController.ts - Consultation records
backend/src/controller/recordController.ts - Laboratory workflow
backend/src/controller/labRequestController.ts
Clinic operations
- Invoices and payments
backend/src/controller/billingController.ts - Clinic administration
backend/src/controller
API and access
- HTTP API
backend/src/server.ts - Identity and users
backend/src/controller/authController.ts - Token and permissions
backend/src/middleware
Persistence and integrations
- SQLite database
backend/src/config/prisma.ts - Backup and restore
backend/src/controller/backupController.ts - Google sign-in
backend/src/controller/googleAuthController.ts
Other components
- Clinic staff
Connections 26
- Clinic staff → Application routes: uses
- Application routes → Sign-in screens: routes to
frontend/src/ui/App.tsx - Application routes → Dashboard: routes to
frontend/src/ui/App.tsx - Application routes → Patient workspace: routes to
frontend/src/ui/App.tsx - Application routes → Consultation workspace: routes to
frontend/src/ui/App.tsx - Application routes → Lab screens: routes to
frontend/src/ui/App.tsx - Application routes → Billing workspace: routes to
frontend/src/ui/App.tsx - Application routes → Settings and archive: routes to
frontend/src/ui/App.tsx - Application routes → HTTP API: sends API requests
- HTTP API → Identity and users: mounts routes
backend/src/server.ts - HTTP API → Patient records: mounts routes
backend/src/server.ts - HTTP API → Consultation records: mounts routes
backend/src/server.ts - HTTP API → Laboratory workflow: mounts routes
backend/src/server.ts - HTTP API → Invoices and payments: mounts routes
backend/src/server.ts - HTTP API → Clinic administration: mounts routes
backend/src/server.ts - Identity and users → SQLite database: reads and writes
backend/src/controller/authController.ts - Patient records → SQLite database: reads and writes
backend/src/controller/patientController.ts - Consultation records → SQLite database: reads and writes
backend/src/controller/recordController.ts - Invoices and payments → SQLite database: reads and writes
backend/src/controller/billingController.ts - Laboratory workflow → SQLite database: persists results
- Identity and users → Token and permissions: uses token checks
backend/src/routes/authRoutes.ts - Invoices and payments → Token and permissions: gated by routes
backend/src/routes/billingRoutes.ts - Consultation records → Token and permissions: gated by routes
backend/src/routes/recordRoutes.ts - Backup and restore → SQLite database: backs up data
backend/src/controller/backupController.ts - Backup and restore → Google sign-in: optional cloud storage
- Clinic administration → SQLite database: uses shared database
backend/src/controller/billingController.ts