How aishwarya842/meditrack works
CareHub is a multispeciality hospital portal spanning public doctor discovery and booking, role-based front-desk and clinical workflows, and administrative billing and reporting. The documented frontend centers on src/App.tsx and browser-local persistence; the tree also contains a FastAPI backend with relational persistence. The excerpts establish backend routing and several frontend component links, but do not show the frontend communicating with the FastAPI service, so no connection between them is asserted. Some README-described capabilities have only tree-level evidence.
Main entry points: App.tsx Portal application · main.py FastAPI application · clinical.py Clinical routes · PublicHome.tsx Public discovery
Components 29
Portal workflows
- Portal application
src/App.tsx - Public discovery
src/components/PublicHome.tsx - Doctor directory
src/components/DoctorsView.tsx
Clinical operations
- Appointment booking
src/components/AppointmentsView.tsx - Date selection
src/components/DatePickerCalendar.tsx - Role dashboard
src/components/DashboardView.tsx - Reception registration
src/components/ReceptionCallDeskModal.tsx - Patient records
src/components/PatientsView.tsx - OPD consultations
src/components/ConsultationsView.tsx - Digital prescriptions
src/components/PrescriptionsView.tsx - Clinical master data
src/data/hospitalData.ts
Hospital administration
- Medicine inventory
src/components/MedicinesView.tsx - Invoices
src/components/InvoicesView.tsx - Payments
src/components/PaymentsView.tsx - Analytics
src/components/AnalyticsView.tsx - Reports
src/components/ReportsView.tsx - Follow-up reminders
src/components/RemindersView.tsx
API and persistence
- Browser data service
src/services/db.ts - FastAPI application
backend/main.py - Authentication routes
backend/routers/auth.py - Patient routes
backend/routers/patients.py - Clinical routes
backend/routers/clinical.py - Auth and access control
backend/auth.py - SQLAlchemy sessions
backend/database.py - Hospital data models
backend/models.py - SMS notifications
backend/services/sms_service.py - Application server
app.py
Other components
- Patient
- Hospital staff
Connections 34
- Patient → Public discovery: browses
- Public discovery → Portal application: submits booking
src/components/PublicHome.tsx - Hospital staff → Portal application: uses portal
- Portal application → Public discovery: renders
src/App.tsx - Portal application → Doctor directory: renders
src/App.tsx - Portal application → Appointment booking: renders
src/App.tsx - Portal application → Role dashboard: renders
src/App.tsx - Portal application → Patient records: renders
src/App.tsx - Portal application → OPD consultations: renders
src/App.tsx - Portal application → Digital prescriptions: renders
src/App.tsx - Portal application → Medicine inventory: renders
src/App.tsx - Portal application → Invoices: renders
src/App.tsx - Appointment booking → Date selection: uses
src/components/AppointmentsView.tsx - Public discovery → Date selection: uses
src/components/PublicHome.tsx - Role dashboard → Reception registration: opens registration
- Role dashboard → Appointment booking: shows queue
- OPD consultations → Digital prescriptions: issues
- Portal application → Payments: renders
src/App.tsx - Portal application → Analytics: renders
src/App.tsx - Portal application → Reports: renders
src/App.tsx - Portal application → Follow-up reminders: renders
src/App.tsx - Portal application → Browser data service: loads and saves
src/App.tsx - Browser data service → Clinical master data: seeds defaults
src/services/db.ts - Patient → FastAPI application: uses API
- FastAPI application → Authentication routes: mounts
backend/main.py - FastAPI application → Patient routes: mounts
backend/main.py - FastAPI application → Clinical routes: mounts
backend/main.py - Authentication routes → SQLAlchemy sessions: gets sessions
backend/routers/auth.py - Authentication routes → Auth and access control: verifies credentials
backend/routers/auth.py - Patient routes → SQLAlchemy sessions: gets sessions
backend/routers/patients.py - Clinical routes → SQLAlchemy sessions: gets sessions
backend/routers/clinical.py - Clinical routes → Auth and access control: checks access
backend/routers/clinical.py - Clinical routes → SMS notifications: sends appointment SMS
backend/routers/clinical.py - SQLAlchemy sessions → Hospital data models: provides ORM base
backend/models.py