# nanditha1707/1103_group04 architecture

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

- Interactive diagram: https://gitdiagram.com/nanditha1707/1103_group04
- Repository: https://github.com/nanditha1707/1103_group04

## Overview

This is a command-line patient intake and triage project. The visible entry point starts an interactive questionnaire; the sampled modules also implement AI-assisted clinical suggestions, route and queue decisions, and patient-record lookup and reporting. The README gives no capability details, and the excerpts do not show the runtime wiring among these modules, so those links are marked as unverified rather than presented as confirmed calls.

Main entry points: [`ai_manager.py`](https://github.com/nanditha1707/1103_group04/blob/main/ai_manager.py) (AI response and validation), [`logic_manager.py`](https://github.com/nanditha1707/1103_group04/blob/main/logic_manager.py) (Route and queue decisions), [`io_manager.py`](https://github.com/nanditha1707/1103_group04/blob/main/io_manager.py) (Questionnaire and validation), [`data_manager.py`](https://github.com/nanditha1707/1103_group04/blob/main/data_manager.py) (Patient records and reporting)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_intake["Patient intake"]
  node_entry["CLI entry point<br/>[main.py]"]
  node_questionnaire["Questionnaire and validation<br/>[io_manager.py]"]
end

subgraph group_clinical["Clinical support"]
  node_ai["AI response and validation<br/>[ai_manager.py]"]
  node_clinical_data["ICD-11 and HSA data"]
end

subgraph group_operations["Routing and records"]
  node_datasets["Dataset loading and cleaning<br/>[data_manager.py]"]
  node_routing["Route and queue decisions<br/>[logic_manager.py]"]
  node_records[("Patient records and reporting<br/>[data_manager.py]")]
end

node_patient(("Patient"))
node_providers{{"AI providers"}}

node_patient -->|"starts"| node_entry
node_entry -->|"runs"| node_questionnaire
node_patient -.->|"answers"| node_questionnaire
node_questionnaire -.->|"submits intake"| node_ai
node_ai -->|"requests suggestions"| node_providers
node_ai -->|"loads reference data"| node_clinical_data
node_datasets -.->|"loads and cleans"| node_clinical_data
node_ai -.->|"provides suggestions"| node_routing
node_routing -->|"reads queue history"| node_records
node_records -.->|"supplies queue history"| node_routing
node_routing -.->|"stores patient result"| node_records

click node_entry "https://github.com/nanditha1707/1103_group04/blob/main/main.py"
click node_questionnaire "https://github.com/nanditha1707/1103_group04/blob/main/io_manager.py"
click node_ai "https://github.com/nanditha1707/1103_group04/blob/main/ai_manager.py"
click node_clinical_data "https://github.com/nanditha1707/1103_group04/tree/main/datasets"
click node_datasets "https://github.com/nanditha1707/1103_group04/blob/main/data_manager.py"
click node_routing "https://github.com/nanditha1707/1103_group04/blob/main/logic_manager.py"
click node_records "https://github.com/nanditha1707/1103_group04/blob/main/data_manager.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_entry,node_questionnaire toneBlue
class node_ai,node_clinical_data toneAmber
class node_datasets,node_routing,node_records toneMint
class node_patient,node_providers toneIndigo
```

## Components

### Patient intake

- [CLI entry point](https://github.com/nanditha1707/1103_group04/blob/main/main.py): `main.py`
- [Questionnaire and validation](https://github.com/nanditha1707/1103_group04/blob/main/io_manager.py): `io_manager.py`

### Clinical support

- [AI response and validation](https://github.com/nanditha1707/1103_group04/blob/main/ai_manager.py): `ai_manager.py`
- [ICD-11 and HSA data](https://github.com/nanditha1707/1103_group04/tree/main/datasets): `datasets`

### Routing and records

- [Dataset loading and cleaning](https://github.com/nanditha1707/1103_group04/blob/main/data_manager.py): `data_manager.py`
- [Route and queue decisions](https://github.com/nanditha1707/1103_group04/blob/main/logic_manager.py): `logic_manager.py`
- [Patient records and reporting](https://github.com/nanditha1707/1103_group04/blob/main/data_manager.py): `data_manager.py`

### Other components

- **Patient**
- **AI providers**

## Connections

- Patient → CLI entry point: starts (evidence: `main.py`)
- CLI entry point → Questionnaire and validation: runs (evidence: `main.py`)
- Patient → Questionnaire and validation: answers
- Questionnaire and validation → AI response and validation: submits intake
- AI response and validation → AI providers: requests suggestions (evidence: `ai_manager.py`)
- AI response and validation → ICD-11 and HSA data: loads reference data (evidence: `ai_manager.py`)
- Dataset loading and cleaning → ICD-11 and HSA data: loads and cleans
- AI response and validation → Route and queue decisions: provides suggestions
- Route and queue decisions → Patient records and reporting: reads queue history (evidence: `logic_manager.py`)
- Patient records and reporting → Route and queue decisions: supplies queue history
- Route and queue decisions → Patient records and reporting: stores patient result
