# arisradoi75/ihealth architecture

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

- Interactive diagram: https://gitdiagram.com/arisradoi75/ihealth
- Repository: https://github.com/arisradoi75/ihealth

## Overview

iHealth is a multi-tier IoT medical-monitoring system. The documented workflow is wearable sensor acquisition and validation, MQTT telemetry delivery to a cloud backend, and storage and presentation of patient data to mobile and web clients. The backend also supports JWT-secured REST access and threshold-based push alerts. The README is the only available evidence; component implementation paths and detailed call ownership are therefore unavailable.

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_edge["Edge monitoring"]
  node_wearable["Wearable sensors"]
  node_firmware["Acquisition and filtering"]
end

subgraph group_iot["IoT messaging"]
  node_mqtt["MQTT broker"]
end

subgraph group_cloud["Cloud services"]
  node_backend["Cloud backend"]
  node_auth["JWT security"]
  node_alerts["Threshold alerts"]
  node_fcm["Firebase messaging"]
end

subgraph group_data["Medical data"]
  node_medicaldb[("PostgreSQL records")]
end

subgraph group_clients["User applications"]
  node_web["Clinician dashboard"]
  node_mobile["Patient mobile app"]
end

node_patient(("Patient"))
node_clinician(("Clinician"))

node_wearable -->|"senses and samples"| node_firmware
node_firmware -->|"publishes telemetry"| node_mqtt
node_mqtt -->|"delivers telemetry"| node_backend
node_backend -->|"stores records"| node_medicaldb
node_web -->|"uses REST API"| node_backend
node_mobile -->|"uses REST API"| node_backend
node_backend -->|"secures access"| node_auth
node_backend -->|"evaluates thresholds"| node_alerts
node_alerts -->|"sends notifications"| node_fcm
node_patient -.->|"wears device"| node_wearable
node_patient -.->|"views monitoring"| node_mobile
node_clinician -.->|"reviews dashboard"| node_web

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_wearable,node_firmware toneBlue
class node_mqtt toneAmber
class node_backend,node_auth,node_alerts,node_fcm toneMint
class node_medicaldb toneRose
class node_web,node_mobile,node_patient,node_clinician toneIndigo
```

## Components

### Edge monitoring

- **Wearable sensors**
- **Acquisition and filtering**

### IoT messaging

- **MQTT broker**

### Cloud services

- **Cloud backend**
- **JWT security**
- **Threshold alerts**
- **Firebase messaging**

### Medical data

- **PostgreSQL records**

### User applications

- **Clinician dashboard**
- **Patient mobile app**

### Other components

- **Patient**
- **Clinician**

## Connections

- Wearable sensors → Acquisition and filtering: senses and samples (evidence: `README.md`)
- Acquisition and filtering → MQTT broker: publishes telemetry (evidence: `README.md`)
- MQTT broker → Cloud backend: delivers telemetry (evidence: `README.md`)
- Cloud backend → PostgreSQL records: stores records (evidence: `README.md`)
- Clinician dashboard → Cloud backend: uses REST API (evidence: `README.md`)
- Patient mobile app → Cloud backend: uses REST API (evidence: `README.md`)
- Cloud backend → JWT security: secures access (evidence: `README.md`)
- Cloud backend → Threshold alerts: evaluates thresholds (evidence: `README.md`)
- Threshold alerts → Firebase messaging: sends notifications (evidence: `README.md`)
- Patient → Wearable sensors: wears device
- Patient → Patient mobile app: views monitoring
- Clinician → Clinician dashboard: reviews dashboard
