How shorouqderieh/healthpal works
HealthPal is a healthcare API connecting patients, clinicians, donors, volunteers, and NGOs. Its user-facing flow is role-aware HTTP endpoints into domain handlers and services, with persistence through repositories and MySQL; documented workflows include remote consultations, sponsorship and transparency, aid coordination, education and alerts, counseling, and medical missions. The graph retains those product branches, but several are represented at their exact enclosing directories because their implementation files were not sampled. Edges are limited to relationships visible in excerpts, the source index, or the README.
Main entry points: consultRoutes.js Consult endpoints · patientProfileController.js Patient profiles · ngoController.js NGO transparency · database.js MySQL pool
Components 23
Consultations
- Consult endpoints
routes/Feature 1.2/consultRoutes.js - Session control
services/Feature 1.2/consultSessionsService.js - Participant checks
repositories/Feature 1.2/consultCommonRepository.js - Messages & files
controllers/Feature 1.2 - Appointments
services/Feature 1.1/appointmentsService.js
Sponsorship
- Campaign endpoints
controllers/Feature 2.1/sponsorshipController.js - Treatment sponsorship
services/Feature 2.1/SponsorshipService.js - Campaign records
repositories/Feature 2.1/SponsorshipRepository.js - Patient profiles
controllers/Feature 2.2/patientProfileController.js - Profile & recovery
services/Feature 2.2/PatientProfileService.js - Profile records
repositories/Feature 2.2/patientProfileRepository.js - NGO transparency
controllers/Feature 2.3/ngoController.js - Disbursements & docs
services/Feature 2.3/ngoService.js - Transparency records
repositories/Feature 2.3/TransparencyRepository.js
Community Health
- Guides & alerts
services/healthAlertsService.js - Webinars
services/webinarsService.js - Medical translation
services/Feature 1.3/translationService.js - Counseling & groups
services
Aid Coordination
- Medicine & equipment
services - NGOs & missions
services
Platform Core
- JWT access control
middleware/auth.js - MySQL pool
database.js
Other components
- Patients & roles
Connections 26
- Patients & roles → Consult endpoints: requests
routes/Feature 1.2/consultRoutes.js - Consult endpoints → Session control: dispatches
routes/Feature 1.2/consultRoutes.js - Consult endpoints → Messages & files: dispatches
routes/Feature 1.2/consultRoutes.js - Session control → Participant checks: checks participants
services/Feature 1.2/consultSessionsService.js - Patients & roles → Campaign endpoints: requests
README.md - Campaign endpoints → Treatment sponsorship: calls
controllers/Feature 2.1/sponsorshipController.js - Campaign endpoints → Campaign records: constructs repository
controllers/Feature 2.1/sponsorshipController.js - Patients & roles → Patient profiles: requests
- Patient profiles → Profile & recovery: calls
controllers/Feature 2.2/patientProfileController.js - Patient profiles → Profile records: constructs repository
controllers/Feature 2.2/patientProfileController.js - Patients & roles → NGO transparency: requests
- NGO transparency → Disbursements & docs: calls
controllers/Feature 2.3/ngoController.js - NGO transparency → Transparency records: constructs repository
controllers/Feature 2.3/ngoController.js - Patients & roles → Guides & alerts: uses
README.md - Patients & roles → Webinars: uses
README.md - Patients & roles → Medical translation: uses
README.md - Patients & roles → Counseling & groups: uses
README.md - Patients & roles → Medicine & equipment: requests aid
README.md - Patients & roles → NGOs & missions: joins outreach
README.md - Consult endpoints → JWT access control: authenticates
routes/Feature 1.2/consultRoutes.js - Patient profiles → JWT access control: authenticates
routes/Feature 2.2/patientProfileRoutes.js - NGO transparency → JWT access control: authenticates
routes/Feature 2.3/ngoRoutes.js - Participant checks → MySQL pool: queries
- Campaign records → MySQL pool: reads & writes
repositories/Feature 2.1/SponsorshipRepository.js - Profile records → MySQL pool: reads & writes
repositories/Feature 2.2/patientProfileRepository.js - Transparency records → MySQL pool: reads & writes
repositories/Feature 2.3/TransparencyRepository.js