# kavyaa2015/medical-appointment-no-show-prediction-dem architecture

> Architecture diagram of the GitHub repository kavyaa2015/medical-appointment-no-show-prediction-dem, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-11). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/kavyaa2015/medical-appointment-no-show-prediction-dem
- Repository: https://github.com/kavyaa2015/medical-appointment-no-show-prediction-dem

## Overview

CER’s application combines patient no-show risk scoring with appointment-demand forecasting. The user-facing workflow is a Streamlit dashboard: operators enter appointment and patient conditions, receive a risk result, and review forecasts and operational insights. Separately, the training pipeline prepares data, trains both model families, and produces model artifacts and evaluation reports. The excerpts show the main calls and artifact handling; README capabilities fill in documented but unsampled dashboard and forecasting details.

Main entry points: [`run_pipeline.py`](https://github.com/kavyaa2015/medical-appointment-no-show-prediction-dem/blob/main/run_pipeline.py) (Training pipeline), [`app.py`](https://github.com/kavyaa2015/medical-appointment-no-show-prediction-dem/blob/main/app.py) (Streamlit dashboard), [`src/classification.py`](https://github.com/kavyaa2015/medical-appointment-no-show-prediction-dem/blob/main/src/classification.py) (Risk scoring), [`src/forecasting.py`](https://github.com/kavyaa2015/medical-appointment-no-show-prediction-dem/blob/main/src/forecasting.py) (Demand forecasting)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_experience["Operations dashboard"]
  node_dashboard["Streamlit dashboard<br/>[app.py]"]
  node_input["Appointment inputs<br/>[app.py]"]
  node_insights["Operational insights"]
  node_riskresult["Risk result<br/>[app.py]"]
  node_forecastresult["Demand forecast<br/>[app.py]"]
end

subgraph group_preparation["Data preparation"]
  node_data["Cleaning and features<br/>[data.py]"]
  node_pipeline["Training pipeline<br/>[run_pipeline.py]"]
end

subgraph group_classification["No-show modeling"]
  node_classifier["Risk scoring<br/>[classification.py]"]
end

subgraph group_forecasting["Demand forecasting"]
  node_forecast["Demand forecasting<br/>[forecasting.py]"]
end

subgraph group_outputs["Model and reports"]
  node_clfartifact["No-show model"]
  node_forecastartifact["Forecast model"]
  node_utils["Reports and charts<br/>[utils.py]"]
  node_classificationreport["Classification report"]
  node_forecastreport["Forecast report"]
  node_featureimportance["Feature importances"]
end

node_operator(("Clinic operator"))

node_operator -->|"uses"| node_dashboard
node_dashboard -->|"collects"| node_input
node_dashboard -->|"loads and cleans"| node_data
node_dashboard -->|"requests prediction"| node_classifier
node_dashboard -->|"loads"| node_clfartifact
node_classifier -->|"engineers features"| node_data
node_classifier -->|"returns risk"| node_riskresult
node_dashboard -->|"requests forecast"| node_forecast
node_dashboard -->|"loads"| node_forecastartifact
node_forecast -->|"produces"| node_forecastresult
node_dashboard -->|"presents"| node_insights
node_pipeline -->|"prepares data"| node_data
node_pipeline -->|"trains models"| node_classifier
node_pipeline -->|"trains models"| node_forecast
node_pipeline -->|"saves model"| node_clfartifact
node_pipeline -.->|"saves model"| node_forecastartifact
node_pipeline -->|"generates reports"| node_utils
node_pipeline -->|"writes metrics"| node_classificationreport
node_pipeline -->|"writes metrics"| node_forecastreport
node_pipeline -->|"exports rankings"| node_featureimportance

click node_dashboard "https://github.com/kavyaa2015/medical-appointment-no-show-prediction-dem/blob/main/app.py"
click node_input "https://github.com/kavyaa2015/medical-appointment-no-show-prediction-dem/blob/main/app.py"
click node_insights "https://github.com/kavyaa2015/medical-appointment-no-show-prediction-dem/blob/main/outputs/business_insights.md"
click node_data "https://github.com/kavyaa2015/medical-appointment-no-show-prediction-dem/blob/main/src/data.py"
click node_classifier "https://github.com/kavyaa2015/medical-appointment-no-show-prediction-dem/blob/main/src/classification.py"
click node_clfartifact "https://github.com/kavyaa2015/medical-appointment-no-show-prediction-dem/blob/main/models/no_show_model.joblib"
click node_riskresult "https://github.com/kavyaa2015/medical-appointment-no-show-prediction-dem/blob/main/app.py"
click node_forecast "https://github.com/kavyaa2015/medical-appointment-no-show-prediction-dem/blob/main/src/forecasting.py"
click node_forecastartifact "https://github.com/kavyaa2015/medical-appointment-no-show-prediction-dem/blob/main/models/demand_forecast_model.joblib"
click node_forecastresult "https://github.com/kavyaa2015/medical-appointment-no-show-prediction-dem/blob/main/app.py"
click node_pipeline "https://github.com/kavyaa2015/medical-appointment-no-show-prediction-dem/blob/main/run_pipeline.py"
click node_utils "https://github.com/kavyaa2015/medical-appointment-no-show-prediction-dem/blob/main/src/utils.py"
click node_classificationreport "https://github.com/kavyaa2015/medical-appointment-no-show-prediction-dem/blob/main/outputs/classification_report.json"
click node_forecastreport "https://github.com/kavyaa2015/medical-appointment-no-show-prediction-dem/blob/main/outputs/forecasting_report.json"
click node_featureimportance "https://github.com/kavyaa2015/medical-appointment-no-show-prediction-dem/blob/main/outputs/feature_importances.csv"

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_dashboard,node_input,node_insights,node_riskresult,node_forecastresult toneBlue
class node_data,node_pipeline toneAmber
class node_classifier toneMint
class node_forecast toneRose
class node_clfartifact,node_forecastartifact,node_utils,node_classificationreport,node_forecastreport,node_featureimportance,node_operator toneIndigo
```

## Components

### Operations dashboard

- [Streamlit dashboard](https://github.com/kavyaa2015/medical-appointment-no-show-prediction-dem/blob/main/app.py): `app.py`
- [Appointment inputs](https://github.com/kavyaa2015/medical-appointment-no-show-prediction-dem/blob/main/app.py): `app.py`
- [Operational insights](https://github.com/kavyaa2015/medical-appointment-no-show-prediction-dem/blob/main/outputs/business_insights.md): `outputs/business_insights.md`
- [Risk result](https://github.com/kavyaa2015/medical-appointment-no-show-prediction-dem/blob/main/app.py): `app.py`
- [Demand forecast](https://github.com/kavyaa2015/medical-appointment-no-show-prediction-dem/blob/main/app.py): `app.py`

### Data preparation

- [Cleaning and features](https://github.com/kavyaa2015/medical-appointment-no-show-prediction-dem/blob/main/src/data.py): `src/data.py`
- [Training pipeline](https://github.com/kavyaa2015/medical-appointment-no-show-prediction-dem/blob/main/run_pipeline.py): `run_pipeline.py`

### No-show modeling

- [Risk scoring](https://github.com/kavyaa2015/medical-appointment-no-show-prediction-dem/blob/main/src/classification.py): `src/classification.py`

### Demand forecasting

- [Demand forecasting](https://github.com/kavyaa2015/medical-appointment-no-show-prediction-dem/blob/main/src/forecasting.py): `src/forecasting.py`

### Model and reports

- [No-show model](https://github.com/kavyaa2015/medical-appointment-no-show-prediction-dem/blob/main/models/no_show_model.joblib): `models/no_show_model.joblib`
- [Forecast model](https://github.com/kavyaa2015/medical-appointment-no-show-prediction-dem/blob/main/models/demand_forecast_model.joblib): `models/demand_forecast_model.joblib`
- [Reports and charts](https://github.com/kavyaa2015/medical-appointment-no-show-prediction-dem/blob/main/src/utils.py): `src/utils.py`
- [Classification report](https://github.com/kavyaa2015/medical-appointment-no-show-prediction-dem/blob/main/outputs/classification_report.json): `outputs/classification_report.json`
- [Forecast report](https://github.com/kavyaa2015/medical-appointment-no-show-prediction-dem/blob/main/outputs/forecasting_report.json): `outputs/forecasting_report.json`
- [Feature importances](https://github.com/kavyaa2015/medical-appointment-no-show-prediction-dem/blob/main/outputs/feature_importances.csv): `outputs/feature_importances.csv`

### Other components

- **Clinic operator**

## Connections

- Clinic operator → Streamlit dashboard: uses (evidence: `README.md`)
- Streamlit dashboard → Appointment inputs: collects (evidence: `app.py`)
- Streamlit dashboard → Cleaning and features: loads and cleans (evidence: `app.py`)
- Streamlit dashboard → Risk scoring: requests prediction (evidence: `app.py`)
- Streamlit dashboard → No-show model: loads (evidence: `app.py`)
- Risk scoring → Cleaning and features: engineers features (evidence: `src/classification.py`)
- Risk scoring → Risk result: returns risk (evidence: `src/classification.py`)
- Streamlit dashboard → Demand forecasting: requests forecast (evidence: `README.md`)
- Streamlit dashboard → Forecast model: loads (evidence: `app.py`)
- Demand forecasting → Demand forecast: produces (evidence: `src/forecasting.py`)
- Streamlit dashboard → Operational insights: presents (evidence: `README.md`)
- Training pipeline → Cleaning and features: prepares data (evidence: `run_pipeline.py`)
- Training pipeline → Risk scoring: trains models (evidence: `run_pipeline.py`)
- Training pipeline → Demand forecasting: trains models (evidence: `run_pipeline.py`)
- Training pipeline → No-show model: saves model (evidence: `run_pipeline.py`)
- Training pipeline → Forecast model: saves model
- Training pipeline → Reports and charts: generates reports (evidence: `run_pipeline.py`)
- Training pipeline → Classification report: writes metrics (evidence: `run_pipeline.py`)
- Training pipeline → Forecast report: writes metrics (evidence: `run_pipeline.py`)
- Training pipeline → Feature importances: exports rankings (evidence: `run_pipeline.py`)
