How thecodeycorner/medicare works
MediCare is a role-based healthcare portal with patient, doctor, and admin experiences. A principal workflow is a user submitting credentials, Django delegating authentication to Supabase and loading QueueCare role data, then serving role-appropriate pages. Patient-facing capabilities include appointments, medical records, profile and health metrics; the landing page supports finding doctors by department and search. The tree documents these screens, but README is empty and most view/model source was not sampled, so links from views to particular data or feature pages are intentionally limited.
Main entry points: views.py Request views · auth_backends.py Supabase backend · core/urls.py Core routes · medicare/urls.py Django routes
Components 18
Web entry
- Django routes
medicare/urls.py - Core routes
core/urls.py - Request views
core/views.py
Identity and access
- Login form
templates/login.html - Login behavior
static/js/login.js - Supabase backend
core/auth_backends.py - Supabase Auth
- QueueCare user data
- User middleware
core/middleware.py
Patient care
- Patient pages
templates/patient - Patient interactions
static/js/patient.js
Role dashboards
- Role navigation
core/context_processors.py - Doctor dashboard
templates/doctor - Admin dashboard
templates/admin - Dashboard layout
templates/dashboard
Care discovery
- Care landing
templates/landing.html - Doctor discovery
static/js/landing.js
Other components
- Portal user
Connections 18
- Portal user → Django routes: requests pages
- Django routes → Core routes: includes routes
- Core routes → Request views: dispatches
- Portal user → Login form: opens login
- Login form → Login behavior: loads behavior
- Login behavior → Core routes: posts credentials
- Supabase backend → Supabase Auth: checks credentials
- Supabase backend → QueueCare user data: loads role data
- User middleware → Supabase backend: reconstructs user
- Request views → Supabase backend: authenticates
- Request views → Patient pages: renders
- Request views → Doctor dashboard: renders
- Request views → Admin dashboard: renders
- Request views → Care landing: renders
- Patient pages → Patient interactions: loads interactions
- Patient interactions → Core routes: posts dismissal
- Role navigation → Dashboard layout: supplies navigation
- Care landing → Doctor discovery: loads discovery