# bhaveshkumar123/neonatal-cardiac-arrest-detection-system- architecture

> Architecture diagram of the GitHub repository bhaveshkumar123/neonatal-cardiac-arrest-detection-system-, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-09-28). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/bhaveshkumar123/neonatal-cardiac-arrest-detection-system-
- Repository: https://github.com/bhaveshkumar123/neonatal-cardiac-arrest-detection-system-

## Overview

This repository is a Streamlit neonatal monitoring prototype. Its principal workflow collects patient details and vital signs, calculates a threshold-based risk level, and displays the assessment and patient summary. The sampled app also provides manual seizure, jaundice, and fever flags. The README describes machine-learning prediction, live simulation, history, and PDF/CSV reporting, but their implementation files are absent from the supplied tree; those capabilities are not represented as wired runtime components.

Main entry points: [`src/app.py`](https://github.com/bhaveshkumar123/neonatal-cardiac-arrest-detection-system-/blob/main/src/app.py) (Streamlit Dashboard)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_interface["Dashboard"]
  node_dashboard["Streamlit Dashboard<br/>[app.py]"]
  node_vitals["Patient Inputs<br/>[app.py]"]
  node_results["Assessment Display<br/>[app.py]"]
  node_summary["Patient Summary<br/>[app.py]"]
end

subgraph group_assessment["Clinical Assessment"]
  node_risk["Threshold Risk<br/>[app.py]"]
  node_conditions["Condition Flags<br/>[app.py]"]
end

node_clinician(("Clinician"))

node_clinician -->|"uses"| node_dashboard
node_dashboard -->|"collects"| node_vitals
node_dashboard -->|"calculates"| node_risk
node_dashboard -->|"checks"| node_conditions
node_dashboard -->|"displays"| node_results
node_dashboard -->|"builds"| node_summary

click node_dashboard "https://github.com/bhaveshkumar123/neonatal-cardiac-arrest-detection-system-/blob/main/src/app.py"
click node_vitals "https://github.com/bhaveshkumar123/neonatal-cardiac-arrest-detection-system-/blob/main/src/app.py"
click node_risk "https://github.com/bhaveshkumar123/neonatal-cardiac-arrest-detection-system-/blob/main/src/app.py"
click node_conditions "https://github.com/bhaveshkumar123/neonatal-cardiac-arrest-detection-system-/blob/main/src/app.py"
click node_results "https://github.com/bhaveshkumar123/neonatal-cardiac-arrest-detection-system-/blob/main/src/app.py"
click node_summary "https://github.com/bhaveshkumar123/neonatal-cardiac-arrest-detection-system-/blob/main/src/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_dashboard,node_vitals,node_results,node_summary toneBlue
class node_risk,node_conditions toneAmber
class node_clinician toneIndigo
```

## Components

### Dashboard

- [Streamlit Dashboard](https://github.com/bhaveshkumar123/neonatal-cardiac-arrest-detection-system-/blob/main/src/app.py): `src/app.py`
- [Patient Inputs](https://github.com/bhaveshkumar123/neonatal-cardiac-arrest-detection-system-/blob/main/src/app.py): `src/app.py`
- [Assessment Display](https://github.com/bhaveshkumar123/neonatal-cardiac-arrest-detection-system-/blob/main/src/app.py): `src/app.py`
- [Patient Summary](https://github.com/bhaveshkumar123/neonatal-cardiac-arrest-detection-system-/blob/main/src/app.py): `src/app.py`

### Clinical Assessment

- [Threshold Risk](https://github.com/bhaveshkumar123/neonatal-cardiac-arrest-detection-system-/blob/main/src/app.py): `src/app.py`
- [Condition Flags](https://github.com/bhaveshkumar123/neonatal-cardiac-arrest-detection-system-/blob/main/src/app.py): `src/app.py`

### Other components

- **Clinician**

## Connections

- Clinician → Streamlit Dashboard: uses
- Streamlit Dashboard → Patient Inputs: collects
- Streamlit Dashboard → Threshold Risk: calculates
- Streamlit Dashboard → Condition Flags: checks
- Streamlit Dashboard → Assessment Display: displays
- Streamlit Dashboard → Patient Summary: builds
