# sannidhisriram-06/ai-patient-triage-system-on-azure-csa-case-study- architecture

> Architecture diagram of the GitHub repository sannidhisriram-06/ai-patient-triage-system-on-azure-csa-case-study-, 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/sannidhisriram-06/ai-patient-triage-system-on-azure-csa-case-study-
- Repository: https://github.com/sannidhisriram-06/ai-patient-triage-system-on-azure-csa-case-study-

## Overview

This is a Flask-based patient triage proof of concept whose main workflow accepts symptoms, requests a classification from Azure OpenAI, records the symptoms and result in Azure Table Storage, and renders the result. The README also documents Azure App Service as the hosting layer. The graph focuses on runtime behavior and documented managed-service boundaries; it does not treat deployment evidence files as runtime components.

Main entry points: [`app.py`](https://github.com/sannidhisriram-06/ai-patient-triage-system-on-azure-csa-case-study-/blob/main/app.py) (Flask application), [`index.html`](https://github.com/sannidhisriram-06/ai-patient-triage-system-on-azure-csa-case-study-/blob/main/index.html) (Symptom form)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_web["Web interface"]
  node_form["Symptom form<br/>[index.html]"]
  node_flask["Flask application<br/>[app.py]"]
end

subgraph group_triage["Triage workflow"]
  node_classification["Triage classification<br/>[app.py]"]
  node_audit["Audit logging<br/>[app.py]"]
end

subgraph group_cloud["Managed services"]
  node_appservice["Azure App Service"]
  node_openai["Azure OpenAI"]
  node_table[("Azure Table Storage")]
end

node_patient(("Patient"))

node_patient -->|"enters symptoms"| node_form
node_form -->|"submits form"| node_flask
node_flask -->|"renders page"| node_form
node_flask -->|"calls triage"| node_classification
node_classification -->|"requests classification"| node_openai
node_flask -->|"writes request and result"| node_audit
node_audit -->|"stores audit record"| node_table
node_flask -->|"renders result"| node_patient
node_appservice -->|"hosts application"| node_flask

click node_form "https://github.com/sannidhisriram-06/ai-patient-triage-system-on-azure-csa-case-study-/blob/main/index.html"
click node_flask "https://github.com/sannidhisriram-06/ai-patient-triage-system-on-azure-csa-case-study-/blob/main/app.py"
click node_classification "https://github.com/sannidhisriram-06/ai-patient-triage-system-on-azure-csa-case-study-/blob/main/app.py"
click node_audit "https://github.com/sannidhisriram-06/ai-patient-triage-system-on-azure-csa-case-study-/blob/main/app.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_form,node_flask toneBlue
class node_classification,node_audit toneAmber
class node_appservice,node_openai,node_table toneMint
class node_patient toneIndigo
```

## Components

### Web interface

- [Symptom form](https://github.com/sannidhisriram-06/ai-patient-triage-system-on-azure-csa-case-study-/blob/main/index.html): `index.html`
- [Flask application](https://github.com/sannidhisriram-06/ai-patient-triage-system-on-azure-csa-case-study-/blob/main/app.py): `app.py`

### Triage workflow

- [Triage classification](https://github.com/sannidhisriram-06/ai-patient-triage-system-on-azure-csa-case-study-/blob/main/app.py): `app.py`
- [Audit logging](https://github.com/sannidhisriram-06/ai-patient-triage-system-on-azure-csa-case-study-/blob/main/app.py): `app.py`

### Managed services

- **Azure App Service**
- **Azure OpenAI**
- **Azure Table Storage**

### Other components

- **Patient**

## Connections

- Patient → Symptom form: enters symptoms (evidence: `README.md`)
- Symptom form → Flask application: submits form (evidence: `README.md`)
- Flask application → Symptom form: renders page (evidence: `app.py`)
- Flask application → Triage classification: calls triage (evidence: `app.py`)
- Triage classification → Azure OpenAI: requests classification (evidence: `app.py`)
- Flask application → Audit logging: writes request and result (evidence: `app.py`)
- Audit logging → Azure Table Storage: stores audit record (evidence: `app.py`)
- Flask application → Patient: renders result (evidence: `app.py`)
- Azure App Service → Flask application: hosts application (evidence: `README.md`)
