How vikaskarnati/neurax works
Neurax is a Flask healthcare-management system for patients, hospitals, and administrators. Users enter through role-specific portals; authentication and role checks protect workflows for appointments, medical records, cross-hospital access, and administration. Patients can also use the health assistant and download a medical-history PDF. PostgreSQL stores application data, while helper functions support notifications, email, and auditing. The README documents capabilities such as OTP resets and appointment alerts; some route implementations were not sampled, so those links are shown only where documented or evidenced.
Main entry points: public.py Portal Pages · database.py PostgreSQL Data · auth.py Authentication · patient.py Patient Workflows
Components 21
Web Entry
- Flask App
app.py - Portal Pages
routes/public.py - Patient Portal
templates/patient.html - Hospital Portal
templates/hospital.html - Admin Portal
templates/admin.html
Identity & Access
- Authentication
routes/auth.py - Role Access
database.py
Care Workflows
- Patient Workflows
routes/patient.py - Appointments & Doctors
routes/patient.py - Medical Records
routes/hospital.py - Cross-Hospital Access
routes/hospital.py - AI Health Assistant
routes/patient.py - Health Card PDF
services/pdf_generator.py
Hospital & Admin
- Hospital Operations
routes/hospital.py - Administration
routes/admin.py
Data & Services
- PostgreSQL Data
database.py - Notifications & Audit
utils/helpers.py - Runtime Configuration
config.py
Other components
- Healthcare User
- Google Gemini
- SMTP Email
Connections 34
- Healthcare User → Flask App: uses
README.md - Flask App → Portal Pages: registers routes
app.py - Flask App → PostgreSQL Data: initializes schema
app.py - Flask App → Runtime Configuration: loads settings
app.py - Portal Pages → Patient Portal: renders
routes/public.py - Portal Pages → Hospital Portal: renders
routes/public.py - Portal Pages → Admin Portal: renders
routes/public.py - Portal Pages → Authentication: registers blueprint
routes/__init__.py - Portal Pages → Patient Workflows: registers blueprint
routes/__init__.py - Portal Pages → Hospital Operations: registers blueprint
routes/__init__.py - Portal Pages → Administration: registers blueprint
routes/__init__.py - Patient Portal → Authentication: submits credentials
- Hospital Portal → Authentication: submits credentials
- Admin Portal → Authentication: submits credentials
- Authentication → PostgreSQL Data: reads and writes
routes/auth.py - Authentication → Notifications & Audit: uses account helpers
routes/auth.py - Authentication → Role Access: issues role tokens
README.md - Patient Workflows → PostgreSQL Data: reads and writes
routes/patient.py - Patient Workflows → Appointments & Doctors: handles booking
routes/patient.py - Patient Workflows → AI Health Assistant: handles chat
routes/patient.py - Patient Workflows → Health Card PDF: generates card
routes/patient.py - Appointments & Doctors → PostgreSQL Data: stores bookings
routes/patient.py - Hospital Operations → PostgreSQL Data: reads and writes
routes/hospital.py - Hospital Operations → Medical Records: manages records
routes/hospital.py - Hospital Operations → Cross-Hospital Access: handles access requests
routes/hospital.py - Hospital Operations → Notifications & Audit: notifies and audits
routes/hospital.py - Administration → PostgreSQL Data: queries system data
routes/admin.py - AI Health Assistant → PostgreSQL Data: loads patient context
routes/patient.py - AI Health Assistant → Google Gemini: requests responses
routes/patient.py - Health Card PDF → Healthcare User: returns download
services/pdf_generator.py - Notifications & Audit → PostgreSQL Data: writes alerts and logs
utils/helpers.py - Notifications & Audit → SMTP Email: sends messages
utils/helpers.py - Runtime Configuration → PostgreSQL Data: provides connection settings
database.py - Patient Workflows → Notifications & Audit: uses shared helpers
routes/patient.py