How chahak235/heathcare-plus works
Healthcare+ is a React healthcare portal backed by Node/Express services and PostgreSQL. The main user journey is finding Indian hospitals or doctors, consulting the AI assistant, and—where enabled—booking care; authentication supports protected patient and hospital experiences. The repository also contains emergency, bed/admission operations, notifications, voice, and medical-image analysis capabilities. The README documents the frontend-to-backend, backend-to-database, and backend-to-Groq relationships; several additional subsystems are represented from the tree, but their wiring is not established by the excerpts.
Main entry points: App.tsx Web Application · app.ts Express API · Home.tsx Home & Portal · MapPrediction.tsx Hospital Finder
Components 24
Patient Web App
- Web Application
frontend/src/App.tsx - Home & Portal
frontend/src/pages/Home.tsx
Care Discovery
- Hospital Finder
frontend/src/pages/MapPrediction.tsx - Hospital Directory
backend/controllers/indian-hospitals.controller.js - Doctor Directory
frontend/src/pages/Doctors.tsx - Doctor Services
backend/src/services/doctors.service.ts - AI Assistant
frontend/src/pages/Chat.tsx - AI API
backend/src/routes/ai.routes.ts - Appointment Booking
frontend/src/components/features/appointment/AppointmentBookingModal.tsx - Appointment Services
backend/src/services/appointment.service.ts - Image Analysis
backend/services/medical_image_analysis.py - Voice Analysis
backend/services/voice_analysis.py
Care Operations
- Patient Profile
backend/src/entities/Patient.entity.ts - Emergency Response
backend/src/routes/emergency.routes.ts - Beds & Admissions
backend/src/controllers/beds.controller.ts - Triage
backend/src/controllers/triage.controller.ts - Notifications
backend/src/services/notification.service.ts
Backend Platform
- Authentication
backend/src/services/auth.service.ts - Express API
backend/src/app.ts - PostgreSQL
backend/src/config/database.config.ts - Legacy API
backend/server.js - Legacy PostgreSQL
backend/config/database.js
Other components
- Patient
- Groq AI
Connections 10
- Patient → Web Application: uses
README.md - Web Application → Home & Portal: routes to
frontend/src/App.tsx - Web Application → Express API: requests data
README.md - Express API → PostgreSQL: reads and writes
README.md - Express API → Groq AI: requests AI
README.md - Web Application → Hospital Finder: routes to
frontend/src/App.tsx - Web Application → Doctor Directory: routes to
frontend/src/App.tsx - Web Application → AI Assistant: routes to
frontend/src/App.tsx - Web Application → Appointment Booking: offers booking
README.md - Express API → Legacy API: parallel API