How harshtyagi334/vactrack works
VacTrack is a React healthcare-record and vaccination-tracking demo with patient and clinic portals. Users register or log in, manage vaccination schedules and records, and clinics search patients and record doses; the shared Zustand store holds demo state and supports hash integrity and reminder generation. Other branches cover hospital operations, nearby and emergency care, medicine/batch verification, and government-benefit discovery. The README describes demo-data limitations and future integrations. Unsampled feature paths are included where documented, but their internal calls are not inferred.
Main entry points: PatientPages.tsx Patient portal routes · index.ts Persisted application state · GovernmentSchemesDiscovery.tsx Scheme discovery · App.tsx Route application
Components 30
App entry and access
- Route application
src/App.tsx - Authentication
src/pages/AuthPages.tsx
Patient care
- Patient portal routes
src/pages/PatientPages.tsx - Patient dashboard
src/pages/PatientDashboard.tsx - Health record
src/pages/PatientHealthRecord.tsx - Rabies PEP schedule
src/components/RabiesPEPInteractiveSchedule.tsx - Reminders and alerts
src/components/PatientNotificationCenter.tsx - Nearby hospitals
src/pages/PatientNearbyHospitals.tsx - Emergency care
src/pages/PatientEmergencyCare.tsx - Vaccination report export
src/components/ExportVaccinationReportModal.tsx
Clinic operations
- Clinic portal routes
src/pages/ClinicPages.tsx - Clinic dashboard
src/pages/ClinicDashboard.tsx - Cross-clinic patient search
src/components/PatientVaccinationSearchBar.tsx - Clinic patient record
src/pages/Clinic/PatientRecord.tsx - Vaccine inventory
src/components/HospitalOperations/VaccineInventoryTable.tsx - Doctor availability
src/components/HospitalOperations/DoctorAvailability.tsx - Ambulance monitoring
src/components/HospitalOperations/AmbulanceMonitoring.tsx - Hospital reviews
src/components/HospitalOperations/HospitalReviewsSection.tsx
Benefits and verification
- Scheme discovery
src/components/GovernmentSchemes/GovernmentSchemesDiscovery.tsx - Eligibility guidance
src/components/GovernmentSchemes/SchemeEligibilityWizard.tsx - Scheme details
src/components/GovernmentSchemes/SchemeDetailModal.tsx - Empanelled hospitals
src/components/GovernmentSchemes/EmpanelledHospitalsModal.tsx - Scheme reference data
src/data/governmentSchemesData.ts - Medicine and batch verification
src/pages/MedicineVerificationPage.tsx
Shared application core
- Persisted application state
src/store/index.ts - Hash-chain integrity
src/utils/hash.ts - Reminder calculation
src/utils/reminderEngine.ts - Public record verification
src/pages/PatientPublicVerifyPage.tsx
Other components
- Patient
- Clinic staff
Connections 45
- Patient → Authentication: registers or logs in
- Clinic staff → Authentication: registers or logs in
- Route application → Authentication: routes to
src/App.tsx - Route application → Patient portal routes: protects patient routes
src/App.tsx - Route application → Clinic portal routes: protects clinic routes
src/App.tsx - Route application → Public record verification: routes to
src/App.tsx - Patient portal routes → Patient dashboard: renders
src/pages/PatientPages.tsx - Patient portal routes → Health record: renders
src/pages/PatientPages.tsx - Patient portal routes → Rabies PEP schedule: renders
src/pages/PatientPages.tsx - Patient portal routes → Reminders and alerts: renders
src/pages/PatientPages.tsx - Patient portal routes → Nearby hospitals: renders
src/pages/PatientPages.tsx - Patient portal routes → Emergency care: renders
src/pages/PatientPages.tsx - Patient portal routes → Vaccination report export: renders
src/pages/PatientPages.tsx - Patient portal routes → Persisted application state: reads and updates
src/pages/PatientPages.tsx - Clinic portal routes → Clinic dashboard: renders
src/pages/ClinicPages.tsx - Clinic portal routes → Clinic patient record: renders
src/pages/ClinicPages.tsx - Clinic portal routes → Persisted application state: reads and updates
src/pages/ClinicPages.tsx - Clinic staff → Cross-clinic patient search: searches patients
README.md - Clinic staff → Vaccine inventory: manages stock
README.md - Clinic staff → Doctor availability: updates availability
README.md - Clinic staff → Ambulance monitoring: monitors status
README.md - Clinic patient record → Persisted application state: reads and updates
src/pages/Clinic/PatientRecord.tsx - Vaccine inventory → Persisted application state: reads and updates
src/components/HospitalOperations/VaccineInventoryTable.tsx - Ambulance monitoring → Persisted application state: reads and updates
src/components/HospitalOperations/AmbulanceMonitoring.tsx - Hospital reviews → Persisted application state: reads and updates
src/components/HospitalOperations/HospitalReviewsSection.tsx - Patient → Patient portal routes: uses portal
README.md - Patient → Scheme discovery: discovers benefits
- Patient portal routes → Scheme discovery: renders
src/pages/PatientPages.tsx - Scheme discovery → Eligibility guidance: opens guidance
src/components/GovernmentSchemes/GovernmentSchemesDiscovery.tsx - Scheme discovery → Scheme details: opens details
src/components/GovernmentSchemes/GovernmentSchemesDiscovery.tsx - Scheme discovery → Empanelled hospitals: opens hospitals
src/components/GovernmentSchemes/GovernmentSchemesDiscovery.tsx - Scheme discovery → Scheme reference data: filters and displays
src/components/GovernmentSchemes/GovernmentSchemesDiscovery.tsx - Eligibility guidance → Scheme reference data: uses scheme data
src/components/GovernmentSchemes/SchemeEligibilityWizard.tsx - Scheme details → Scheme reference data: displays scheme data
src/components/GovernmentSchemes/SchemeDetailModal.tsx - Empanelled hospitals → Scheme reference data: reads network data
src/components/GovernmentSchemes/EmpanelledHospitalsModal.tsx - Patient → Medicine and batch verification: checks vaccine batch
README.md - Patient portal routes → Medicine and batch verification: renders
src/pages/PatientPages.tsx - Authentication → Persisted application state: authenticates account
src/App.tsx - Persisted application state → Hash-chain integrity: creates and checks hashes
src/store/index.ts - Persisted application state → Reminder calculation: generates reminders
src/store/index.ts - Reminder calculation → Persisted application state: returns reminders
src/store/index.ts - Public record verification → Persisted application state: reads records
src/pages/PatientPublicVerifyPage.tsx - Patient → Nearby hospitals: finds facilities
README.md - Patient → Emergency care: seeks emergency guidance
README.md - Patient → Hospital reviews: reviews hospitals
README.md