How jagadeesh0004/oose works
This repository combines a React health portal, a Django REST backend for accounts, doctor availability and appointments, and a separate health-risk ML package. The user-facing flow routes patients and doctors to role-specific dashboards; backend modules support identity, scheduling and prediction history. Dashboard excerpts show appointment booking and prediction features, but the frontend API wiring and the connection between the ML package and backend predictions are not established by the available evidence.
Main entry points: App.jsx Route application · doctors/models.py Time slots · accounts/models.py User and profiles · views.py Appointment endpoints
Components 22
Web client
- Route application
frontend/src/App.jsx - Landing page
frontend/src/pages/LandingPage.jsx - Login page
frontend/src/pages/LoginPage.jsx - Patient dashboard
frontend/src/pages/PatientDashboard.jsx - Doctor dashboard
frontend/src/pages/DoctorDashboard.jsx - Auth state helpers
frontend/src/api/api.js
Identity and profiles
- Account endpoints
Health_Predictor/health_predictor/accounts/views.py - User and profiles
Health_Predictor/health_predictor/accounts/models.py - Account serializers
Health_Predictor/health_predictor/accounts/serializers.py
Doctor scheduling
- Doctor endpoints
Health_Predictor/health_predictor/doctors/views.py - Time slots
Health_Predictor/health_predictor/doctors/models.py - Doctor serializers
Health_Predictor/health_predictor/doctors/serializers.py - Appointment endpoints
Health_Predictor/health_predictor/appointments/views.py - Appointments
Health_Predictor/health_predictor/appointments/models.py - Appointment serializers
Health_Predictor/health_predictor/appointments/serializers.py
Risk predictions
- Prediction endpoints
Health_Predictor/health_predictor/predictions/views.py - Prediction records
Health_Predictor/health_predictor/predictions/models.py - Prediction utilities
Health_Predictor/health_predictor/predictions/utils.py
Risk model
- Model training
HealthRiskML/src/train.py - ML configuration
HealthRiskML/src/config.py - Sample prediction
HealthRiskML/src/predict_sample.py
Other components
- Patient or doctor
Connections 25
- Patient or doctor → Route application: opens portal
- Route application → Landing page: routes to
frontend/src/App.jsx - Route application → Login page: routes to
frontend/src/App.jsx - Route application → Patient dashboard: routes to
frontend/src/App.jsx - Route application → Doctor dashboard: routes to
frontend/src/App.jsx - Route application → Auth state helpers: reads auth state
frontend/src/App.jsx - Account endpoints → Account serializers: uses
Health_Predictor/health_predictor/accounts/views.py - Account endpoints → User and profiles: queries
Health_Predictor/health_predictor/accounts/views.py - Account serializers → User and profiles: serializes
Health_Predictor/health_predictor/accounts/serializers.py - Doctor endpoints → Time slots: manages slots
Health_Predictor/health_predictor/doctors/views.py - Doctor endpoints → User and profiles: loads doctor profile
Health_Predictor/health_predictor/doctors/views.py - Doctor endpoints → Doctor serializers: uses
Health_Predictor/health_predictor/doctors/views.py - Time slots → User and profiles: references profile
Health_Predictor/health_predictor/doctors/models.py - Doctor serializers → Time slots: serializes slots
Health_Predictor/health_predictor/doctors/serializers.py - Appointment endpoints → Appointment serializers: uses
Health_Predictor/health_predictor/appointments/views.py - Appointment endpoints → Appointments: books and queries
Health_Predictor/health_predictor/appointments/views.py - Appointment endpoints → Time slots: looks up slots
Health_Predictor/health_predictor/appointments/views.py - Appointment endpoints → Doctor serializers: uses slot serializer
Health_Predictor/health_predictor/appointments/views.py - Appointments → Time slots: references slot
Health_Predictor/health_predictor/appointments/models.py - Appointment serializers → Appointments: serializes
Health_Predictor/health_predictor/appointments/serializers.py - Prediction endpoints → Prediction records: queries records
Health_Predictor/health_predictor/predictions/views.py - Prediction endpoints → Prediction utilities: calls utilities
Health_Predictor/health_predictor/predictions/views.py - Prediction endpoints → User and profiles: loads doctor profile
Health_Predictor/health_predictor/predictions/views.py - Prediction endpoints → Prediction records: serializes records
Health_Predictor/health_predictor/predictions/views.py - Model training → ML configuration: loads config
HealthRiskML/src/train.py