How cdasadiya/ai-hackathon-sept-2026 works
Nexus Health is a Django hospital portal and REST API for role-based patient, doctor, and administrator workflows. Patients register, book appointments, and upload blood reports; doctors manage visits and review reports; administrators verify providers and configure integrations. Report uploads can be stored locally and sent to Google Drive, while n8n can process reports and return analysis. The graph follows documented capabilities and sampled code; several endpoint implementations were not sampled, so uncertain internal call links are omitted.
Main entry points: views.py Web and API Views · models.py Domain Models · urls.py URL Routing · services.py Integration Services
Components 22
Web and API
- URL Routing
config/urls.py - Application Routes
app/urls.py - Web and API Views
app/views.py - Input Forms
app/forms.py - Role Portals
templates - Roles and Permissions
app/permissions.py
Care Workflows
- Appointments
app/views.py - Provider Administration
app/admin.py - Report Review
app/views.py
Report Integrations
- Report Upload
app/views.py - Integration Services
app/services.py - Google Drive
- n8n Automation
- Analysis Callback
app/views.py
Platform State
- Domain Models
app/models.py - Relational Database
- Local Report Files
config/settings.py - Integration Settings
app/admin.py
Other components
- Patient
- Doctor
- Administrator
- API Client
Connections 26
- Patient → URL Routing: opens portal
- Doctor → URL Routing: opens portal
- Administrator → URL Routing: opens portal
- API Client → URL Routing: calls API
- URL Routing → Application Routes: includes routes
- Application Routes → Web and API Views: dispatches requests
- Web and API Views → Roles and Permissions: checks access
- Web and API Views → Input Forms: validates input
- Web and API Views → Role Portals: renders pages
- Web and API Views → Appointments: handles visits
- Web and API Views → Report Upload: handles uploads
- Web and API Views → Report Review: serves reviews
- Appointments → Domain Models: reads and writes
- Report Review → Domain Models: reads and writes
- Provider Administration → Domain Models: manages providers
- Administrator → Provider Administration: verifies providers
- Report Upload → Local Report Files: stores files
- Report Upload → Domain Models: records reports
- Report Upload → Integration Services: requests integrations
- Integration Services → Google Drive: uploads reports
- Integration Services → n8n Automation: sends webhook
- n8n Automation → Analysis Callback: posts analysis
- Analysis Callback → Domain Models: updates analysis
- Administrator → Integration Settings: configures services
- Integration Settings → Domain Models: persists settings
- Domain Models → Relational Database: persists domain data