# jagadeesh0004/oose architecture

> Architecture diagram of the GitHub repository jagadeesh0004/oose, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-20). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/jagadeesh0004/oose
- Repository: https://github.com/jagadeesh0004/oose

## Overview

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: [`frontend/src/App.jsx`](https://github.com/jagadeesh0004/oose/blob/main/frontend/src/App.jsx) (Route application), [`Health_Predictor/health_predictor/doctors/models.py`](https://github.com/jagadeesh0004/oose/blob/main/Health_Predictor/health_predictor/doctors/models.py) (Time slots), [`Health_Predictor/health_predictor/accounts/models.py`](https://github.com/jagadeesh0004/oose/blob/main/Health_Predictor/health_predictor/accounts/models.py) (User and profiles), [`Health_Predictor/health_predictor/appointments/views.py`](https://github.com/jagadeesh0004/oose/blob/main/Health_Predictor/health_predictor/appointments/views.py) (Appointment endpoints)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_client["Web client"]
  node_app["Route application<br/>[App.jsx]"]
  node_landing["Landing page<br/>[LandingPage.jsx]"]
  node_login["Login page<br/>[LoginPage.jsx]"]
  node_patient_ui["Patient dashboard"]
  node_doctor_ui["Doctor dashboard"]
  node_auth_api["Auth state helpers<br/>[api.js]"]
end

subgraph group_identity["Identity and profiles"]
  node_account_views["Account endpoints<br/>[views.py]"]
  node_account_data[("User and profiles<br/>[models.py]")]
  node_account_serializers["Account serializers<br/>[serializers.py]"]
end

subgraph group_scheduling["Doctor scheduling"]
  node_doctor_views["Doctor endpoints<br/>[views.py]"]
  node_doctor_data[("Time slots<br/>[models.py]")]
  node_doctor_serializers["Doctor serializers<br/>[serializers.py]"]
  node_appointment_views["Appointment endpoints<br/>[views.py]"]
  node_appointment_data[("Appointments<br/>[models.py]")]
  node_appointment_serializers["Appointment serializers<br/>[serializers.py]"]
end

subgraph group_risk["Risk predictions"]
  node_prediction_views["Prediction endpoints<br/>[views.py]"]
  node_prediction_data[("Prediction records<br/>[models.py]")]
  node_prediction_utils["Prediction utilities<br/>[utils.py]"]
end

subgraph group_ml["Risk model"]
  node_training["Model training<br/>[train.py]"]
  node_ml_config["ML configuration<br/>[config.py]"]
  node_sample_predict["Sample prediction<br/>[predict_sample.py]"]
end

node_visitor(("Patient or doctor"))

node_visitor -->|"opens portal"| node_app
node_app -->|"routes to"| node_landing
node_app -->|"routes to"| node_login
node_app -->|"routes to"| node_patient_ui
node_app -->|"routes to"| node_doctor_ui
node_app -->|"reads auth state"| node_auth_api
node_account_views -->|"uses"| node_account_serializers
node_account_views -->|"queries"| node_account_data
node_account_serializers -->|"serializes"| node_account_data
node_doctor_views -->|"manages slots"| node_doctor_data
node_doctor_views -->|"loads doctor profile"| node_account_data
node_doctor_views -->|"uses"| node_doctor_serializers
node_doctor_data -->|"references profile"| node_account_data
node_doctor_serializers -->|"serializes slots"| node_doctor_data
node_appointment_views -->|"uses"| node_appointment_serializers
node_appointment_views -->|"books and queries"| node_appointment_data
node_appointment_views -->|"looks up slots"| node_doctor_data
node_appointment_views -->|"uses slot serializer"| node_doctor_serializers
node_appointment_data -->|"references slot"| node_doctor_data
node_appointment_serializers -->|"serializes"| node_appointment_data
node_prediction_views -->|"queries records"| node_prediction_data
node_prediction_views -->|"calls utilities"| node_prediction_utils
node_prediction_views -->|"loads doctor profile"| node_account_data
node_prediction_views -->|"serializes records"| node_prediction_data
node_training -->|"loads config"| node_ml_config

click node_app "https://github.com/jagadeesh0004/oose/blob/main/frontend/src/App.jsx"
click node_landing "https://github.com/jagadeesh0004/oose/blob/main/frontend/src/pages/LandingPage.jsx"
click node_login "https://github.com/jagadeesh0004/oose/blob/main/frontend/src/pages/LoginPage.jsx"
click node_patient_ui "https://github.com/jagadeesh0004/oose/blob/main/frontend/src/pages/PatientDashboard.jsx"
click node_doctor_ui "https://github.com/jagadeesh0004/oose/blob/main/frontend/src/pages/DoctorDashboard.jsx"
click node_auth_api "https://github.com/jagadeesh0004/oose/blob/main/frontend/src/api/api.js"
click node_account_views "https://github.com/jagadeesh0004/oose/blob/main/Health_Predictor/health_predictor/accounts/views.py"
click node_account_data "https://github.com/jagadeesh0004/oose/blob/main/Health_Predictor/health_predictor/accounts/models.py"
click node_account_serializers "https://github.com/jagadeesh0004/oose/blob/main/Health_Predictor/health_predictor/accounts/serializers.py"
click node_doctor_views "https://github.com/jagadeesh0004/oose/blob/main/Health_Predictor/health_predictor/doctors/views.py"
click node_doctor_data "https://github.com/jagadeesh0004/oose/blob/main/Health_Predictor/health_predictor/doctors/models.py"
click node_doctor_serializers "https://github.com/jagadeesh0004/oose/blob/main/Health_Predictor/health_predictor/doctors/serializers.py"
click node_appointment_views "https://github.com/jagadeesh0004/oose/blob/main/Health_Predictor/health_predictor/appointments/views.py"
click node_appointment_data "https://github.com/jagadeesh0004/oose/blob/main/Health_Predictor/health_predictor/appointments/models.py"
click node_appointment_serializers "https://github.com/jagadeesh0004/oose/blob/main/Health_Predictor/health_predictor/appointments/serializers.py"
click node_prediction_views "https://github.com/jagadeesh0004/oose/blob/main/Health_Predictor/health_predictor/predictions/views.py"
click node_prediction_data "https://github.com/jagadeesh0004/oose/blob/main/Health_Predictor/health_predictor/predictions/models.py"
click node_prediction_utils "https://github.com/jagadeesh0004/oose/blob/main/Health_Predictor/health_predictor/predictions/utils.py"
click node_training "https://github.com/jagadeesh0004/oose/blob/main/HealthRiskML/src/train.py"
click node_ml_config "https://github.com/jagadeesh0004/oose/blob/main/HealthRiskML/src/config.py"
click node_sample_predict "https://github.com/jagadeesh0004/oose/blob/main/HealthRiskML/src/predict_sample.py"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_app,node_landing,node_login,node_patient_ui,node_doctor_ui,node_auth_api toneBlue
class node_account_views,node_account_data,node_account_serializers toneAmber
class node_doctor_views,node_doctor_data,node_doctor_serializers,node_appointment_views,node_appointment_data,node_appointment_serializers toneMint
class node_prediction_views,node_prediction_data,node_prediction_utils toneRose
class node_training,node_ml_config,node_sample_predict,node_visitor toneIndigo
```

## Components

### Web client

- [Route application](https://github.com/jagadeesh0004/oose/blob/main/frontend/src/App.jsx): `frontend/src/App.jsx`
- [Landing page](https://github.com/jagadeesh0004/oose/blob/main/frontend/src/pages/LandingPage.jsx): `frontend/src/pages/LandingPage.jsx`
- [Login page](https://github.com/jagadeesh0004/oose/blob/main/frontend/src/pages/LoginPage.jsx): `frontend/src/pages/LoginPage.jsx`
- [Patient dashboard](https://github.com/jagadeesh0004/oose/blob/main/frontend/src/pages/PatientDashboard.jsx): `frontend/src/pages/PatientDashboard.jsx`
- [Doctor dashboard](https://github.com/jagadeesh0004/oose/blob/main/frontend/src/pages/DoctorDashboard.jsx): `frontend/src/pages/DoctorDashboard.jsx`
- [Auth state helpers](https://github.com/jagadeesh0004/oose/blob/main/frontend/src/api/api.js): `frontend/src/api/api.js`

### Identity and profiles

- [Account endpoints](https://github.com/jagadeesh0004/oose/blob/main/Health_Predictor/health_predictor/accounts/views.py): `Health_Predictor/health_predictor/accounts/views.py`
- [User and profiles](https://github.com/jagadeesh0004/oose/blob/main/Health_Predictor/health_predictor/accounts/models.py): `Health_Predictor/health_predictor/accounts/models.py`
- [Account serializers](https://github.com/jagadeesh0004/oose/blob/main/Health_Predictor/health_predictor/accounts/serializers.py): `Health_Predictor/health_predictor/accounts/serializers.py`

### Doctor scheduling

- [Doctor endpoints](https://github.com/jagadeesh0004/oose/blob/main/Health_Predictor/health_predictor/doctors/views.py): `Health_Predictor/health_predictor/doctors/views.py`
- [Time slots](https://github.com/jagadeesh0004/oose/blob/main/Health_Predictor/health_predictor/doctors/models.py): `Health_Predictor/health_predictor/doctors/models.py`
- [Doctor serializers](https://github.com/jagadeesh0004/oose/blob/main/Health_Predictor/health_predictor/doctors/serializers.py): `Health_Predictor/health_predictor/doctors/serializers.py`
- [Appointment endpoints](https://github.com/jagadeesh0004/oose/blob/main/Health_Predictor/health_predictor/appointments/views.py): `Health_Predictor/health_predictor/appointments/views.py`
- [Appointments](https://github.com/jagadeesh0004/oose/blob/main/Health_Predictor/health_predictor/appointments/models.py): `Health_Predictor/health_predictor/appointments/models.py`
- [Appointment serializers](https://github.com/jagadeesh0004/oose/blob/main/Health_Predictor/health_predictor/appointments/serializers.py): `Health_Predictor/health_predictor/appointments/serializers.py`

### Risk predictions

- [Prediction endpoints](https://github.com/jagadeesh0004/oose/blob/main/Health_Predictor/health_predictor/predictions/views.py): `Health_Predictor/health_predictor/predictions/views.py`
- [Prediction records](https://github.com/jagadeesh0004/oose/blob/main/Health_Predictor/health_predictor/predictions/models.py): `Health_Predictor/health_predictor/predictions/models.py`
- [Prediction utilities](https://github.com/jagadeesh0004/oose/blob/main/Health_Predictor/health_predictor/predictions/utils.py): `Health_Predictor/health_predictor/predictions/utils.py`

### Risk model

- [Model training](https://github.com/jagadeesh0004/oose/blob/main/HealthRiskML/src/train.py): `HealthRiskML/src/train.py`
- [ML configuration](https://github.com/jagadeesh0004/oose/blob/main/HealthRiskML/src/config.py): `HealthRiskML/src/config.py`
- [Sample prediction](https://github.com/jagadeesh0004/oose/blob/main/HealthRiskML/src/predict_sample.py): `HealthRiskML/src/predict_sample.py`

### Other components

- **Patient or doctor**

## Connections

- Patient or doctor → Route application: opens portal
- Route application → Landing page: routes to (evidence: `frontend/src/App.jsx`)
- Route application → Login page: routes to (evidence: `frontend/src/App.jsx`)
- Route application → Patient dashboard: routes to (evidence: `frontend/src/App.jsx`)
- Route application → Doctor dashboard: routes to (evidence: `frontend/src/App.jsx`)
- Route application → Auth state helpers: reads auth state (evidence: `frontend/src/App.jsx`)
- Account endpoints → Account serializers: uses (evidence: `Health_Predictor/health_predictor/accounts/views.py`)
- Account endpoints → User and profiles: queries (evidence: `Health_Predictor/health_predictor/accounts/views.py`)
- Account serializers → User and profiles: serializes (evidence: `Health_Predictor/health_predictor/accounts/serializers.py`)
- Doctor endpoints → Time slots: manages slots (evidence: `Health_Predictor/health_predictor/doctors/views.py`)
- Doctor endpoints → User and profiles: loads doctor profile (evidence: `Health_Predictor/health_predictor/doctors/views.py`)
- Doctor endpoints → Doctor serializers: uses (evidence: `Health_Predictor/health_predictor/doctors/views.py`)
- Time slots → User and profiles: references profile (evidence: `Health_Predictor/health_predictor/doctors/models.py`)
- Doctor serializers → Time slots: serializes slots (evidence: `Health_Predictor/health_predictor/doctors/serializers.py`)
- Appointment endpoints → Appointment serializers: uses (evidence: `Health_Predictor/health_predictor/appointments/views.py`)
- Appointment endpoints → Appointments: books and queries (evidence: `Health_Predictor/health_predictor/appointments/views.py`)
- Appointment endpoints → Time slots: looks up slots (evidence: `Health_Predictor/health_predictor/appointments/views.py`)
- Appointment endpoints → Doctor serializers: uses slot serializer (evidence: `Health_Predictor/health_predictor/appointments/views.py`)
- Appointments → Time slots: references slot (evidence: `Health_Predictor/health_predictor/appointments/models.py`)
- Appointment serializers → Appointments: serializes (evidence: `Health_Predictor/health_predictor/appointments/serializers.py`)
- Prediction endpoints → Prediction records: queries records (evidence: `Health_Predictor/health_predictor/predictions/views.py`)
- Prediction endpoints → Prediction utilities: calls utilities (evidence: `Health_Predictor/health_predictor/predictions/views.py`)
- Prediction endpoints → User and profiles: loads doctor profile (evidence: `Health_Predictor/health_predictor/predictions/views.py`)
- Prediction endpoints → Prediction records: serializes records (evidence: `Health_Predictor/health_predictor/predictions/views.py`)
- Model training → ML configuration: loads config (evidence: `HealthRiskML/src/train.py`)
