# mohammedabdelrouf85/health-vibe architecture

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

- Interactive diagram: https://gitdiagram.com/mohammedabdelrouf85/health-vibe
- Repository: https://github.com/mohammedabdelrouf85/health-vibe

## Overview

HealthVibe AI is a respiratory-first clinical assessment and multi-specialty telehealth platform. The core journey runs from patient intake and AI risk triage to physician review and certified report delivery; the README also describes appointments, chronic-disease care, and clinic operations. Source excerpts show model feature extraction/classification and report generation, while several broader runtime connections are documented only at the capability level. Unsampled subsystems are represented by exact source paths, with uncertain links omitted.

Main entry points: [`app/modules/reports/reports-service.js`](https://github.com/mohammedabdelrouf85/health-vibe/blob/main/app/modules/reports/reports-service.js) (Certified reports), [`app/modules/assessment/assessment-service.js`](https://github.com/mohammedabdelrouf85/health-vibe/blob/main/app/modules/assessment/assessment-service.js) (Assessment intake), [`ml_models/feature_extractor.js`](https://github.com/mohammedabdelrouf85/health-vibe/blob/main/ml_models/feature_extractor.js) (Feature extraction), [`ml_models/respiratory_rf_classifier.js`](https://github.com/mohammedabdelrouf85/health-vibe/blob/main/ml_models/respiratory_rf_classifier.js) (Respiratory classifier)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_clinical["Clinical assessment"]
  node_intake["Assessment intake"]
  node_assessment_ui["Assessment UI<br/>[assessment-ui.js]"]
  node_clinical_spec["Respiratory clinical spec"]
  node_disease_care["Chronic disease care"]
end

subgraph group_care["Care delivery"]
  node_doctor_cockpit["Doctor review cockpit"]
  node_doctor_service["Doctor service<br/>[doctor-service.js]"]
  node_report_service["Certified reports<br/>[reports-service.js]"]
  node_report_ui["Reports UI<br/>[reports-ui.js]"]
  node_appointments["Appointments"]
  node_telehealth["Telehealth visits"]
end

subgraph group_platform["Platform services"]
  node_secure_links["Secure report links"]
  node_notifications["Notifications"]
end

subgraph group_governance["Safety and governance"]
  node_reviewer["Clinical reviewer governance"]
  node_disease_auth["Disease authorization"]
  node_audit[("Audit trail<br/>[audit-service.js]")]
  node_monitoring["Security monitoring"]
  node_incidents[("Incident register")]
end

subgraph group_ml["Model lifecycle"]
  node_feature["Feature extraction"]
  node_classifier["Respiratory classifier"]
  node_false_negative["Under-triage analysis"]
  node_metrics["Model metrics<br/>[metrics.js]"]
  node_model_repro["Model reproducibility"]
end

node_patient(("Patient"))
node_doctor(("Physician"))

node_patient -->|"provides intake"| node_assessment_ui
node_assessment_ui -.->|"submits answers"| node_intake
node_intake -.->|"normalizes input"| node_feature
node_feature -->|"builds feature vector"| node_classifier
node_classifier -.->|"returns risk result"| node_intake
node_clinical_spec -->|"defines thresholds"| node_reviewer
node_doctor -->|"reviews case"| node_doctor_cockpit
node_doctor_cockpit -.->|"records review"| node_doctor_service
node_doctor_service -.->|"issues report"| node_report_service
node_report_service -.->|"presents report"| node_report_ui
node_report_service -.->|"creates share link"| node_secure_links
node_appointments -.->|"schedules visit"| node_telehealth
node_disease_care -.->|"checks access"| node_disease_auth
node_disease_auth -->|"records denial"| node_audit
node_notifications -->|"uses secure links"| node_secure_links
node_monitoring -->|"reports incidents"| node_incidents
node_false_negative -->|"uses metrics"| node_metrics
node_model_repro -->|"extracts features"| node_feature
node_model_repro -->|"checks determinism"| node_classifier

click node_intake "https://github.com/mohammedabdelrouf85/health-vibe/blob/main/app/modules/assessment/assessment-service.js"
click node_assessment_ui "https://github.com/mohammedabdelrouf85/health-vibe/blob/main/app/modules/assessment/assessment-ui.js"
click node_clinical_spec "https://github.com/mohammedabdelrouf85/health-vibe/blob/main/backend/respiratory-clinical-spec-service.js"
click node_feature "https://github.com/mohammedabdelrouf85/health-vibe/blob/main/ml_models/feature_extractor.js"
click node_classifier "https://github.com/mohammedabdelrouf85/health-vibe/blob/main/ml_models/respiratory_rf_classifier.js"
click node_reviewer "https://github.com/mohammedabdelrouf85/health-vibe/blob/main/backend/clinical-reviewer-service.js"
click node_doctor_cockpit "https://github.com/mohammedabdelrouf85/health-vibe/blob/main/app/modules/doctor/doctor-review-cockpit.js"
click node_doctor_service "https://github.com/mohammedabdelrouf85/health-vibe/blob/main/app/modules/doctor/doctor-service.js"
click node_report_service "https://github.com/mohammedabdelrouf85/health-vibe/blob/main/app/modules/reports/reports-service.js"
click node_report_ui "https://github.com/mohammedabdelrouf85/health-vibe/blob/main/app/modules/reports/reports-ui.js"
click node_secure_links "https://github.com/mohammedabdelrouf85/health-vibe/blob/main/backend/secure-report-link-service.js"
click node_appointments "https://github.com/mohammedabdelrouf85/health-vibe/blob/main/backend/scheduling-service.js"
click node_telehealth "https://github.com/mohammedabdelrouf85/health-vibe/blob/main/backend/telehealth-video-service.js"
click node_notifications "https://github.com/mohammedabdelrouf85/health-vibe/blob/main/backend/notification-service.js"
click node_disease_care "https://github.com/mohammedabdelrouf85/health-vibe/blob/main/backend/diabetes-service.js"
click node_disease_auth "https://github.com/mohammedabdelrouf85/health-vibe/blob/main/backend/disease-authorization-service.js"
click node_audit "https://github.com/mohammedabdelrouf85/health-vibe/blob/main/backend/audit-service.js"
click node_monitoring "https://github.com/mohammedabdelrouf85/health-vibe/blob/main/backend/monitoring-service.js"
click node_incidents "https://github.com/mohammedabdelrouf85/health-vibe/blob/main/backend/incident-service.js"
click node_false_negative "https://github.com/mohammedabdelrouf85/health-vibe/blob/main/evaluation/false_negative_analyzer.js"
click node_metrics "https://github.com/mohammedabdelrouf85/health-vibe/blob/main/evaluation/metrics.js"
click node_model_repro "https://github.com/mohammedabdelrouf85/health-vibe/blob/main/ml_models/reproducibility_service.js"

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_intake,node_assessment_ui,node_clinical_spec,node_disease_care toneBlue
class node_doctor_cockpit,node_doctor_service,node_report_service,node_report_ui,node_appointments,node_telehealth toneAmber
class node_secure_links,node_notifications toneMint
class node_reviewer,node_disease_auth,node_audit,node_monitoring,node_incidents toneRose
class node_feature,node_classifier,node_false_negative,node_metrics,node_model_repro,node_patient,node_doctor toneIndigo
```

## Components

### Clinical assessment

- [Assessment intake](https://github.com/mohammedabdelrouf85/health-vibe/blob/main/app/modules/assessment/assessment-service.js): `app/modules/assessment/assessment-service.js`
- [Assessment UI](https://github.com/mohammedabdelrouf85/health-vibe/blob/main/app/modules/assessment/assessment-ui.js): `app/modules/assessment/assessment-ui.js`
- [Respiratory clinical spec](https://github.com/mohammedabdelrouf85/health-vibe/blob/main/backend/respiratory-clinical-spec-service.js): `backend/respiratory-clinical-spec-service.js`
- [Chronic disease care](https://github.com/mohammedabdelrouf85/health-vibe/blob/main/backend/diabetes-service.js): `backend/diabetes-service.js`

### Care delivery

- [Doctor review cockpit](https://github.com/mohammedabdelrouf85/health-vibe/blob/main/app/modules/doctor/doctor-review-cockpit.js): `app/modules/doctor/doctor-review-cockpit.js`
- [Doctor service](https://github.com/mohammedabdelrouf85/health-vibe/blob/main/app/modules/doctor/doctor-service.js): `app/modules/doctor/doctor-service.js`
- [Certified reports](https://github.com/mohammedabdelrouf85/health-vibe/blob/main/app/modules/reports/reports-service.js): `app/modules/reports/reports-service.js`
- [Reports UI](https://github.com/mohammedabdelrouf85/health-vibe/blob/main/app/modules/reports/reports-ui.js): `app/modules/reports/reports-ui.js`
- [Appointments](https://github.com/mohammedabdelrouf85/health-vibe/blob/main/backend/scheduling-service.js): `backend/scheduling-service.js`
- [Telehealth visits](https://github.com/mohammedabdelrouf85/health-vibe/blob/main/backend/telehealth-video-service.js): `backend/telehealth-video-service.js`

### Platform services

- [Secure report links](https://github.com/mohammedabdelrouf85/health-vibe/blob/main/backend/secure-report-link-service.js): `backend/secure-report-link-service.js`
- [Notifications](https://github.com/mohammedabdelrouf85/health-vibe/blob/main/backend/notification-service.js): `backend/notification-service.js`

### Safety and governance

- [Clinical reviewer governance](https://github.com/mohammedabdelrouf85/health-vibe/blob/main/backend/clinical-reviewer-service.js): `backend/clinical-reviewer-service.js`
- [Disease authorization](https://github.com/mohammedabdelrouf85/health-vibe/blob/main/backend/disease-authorization-service.js): `backend/disease-authorization-service.js`
- [Audit trail](https://github.com/mohammedabdelrouf85/health-vibe/blob/main/backend/audit-service.js): `backend/audit-service.js`
- [Security monitoring](https://github.com/mohammedabdelrouf85/health-vibe/blob/main/backend/monitoring-service.js): `backend/monitoring-service.js`
- [Incident register](https://github.com/mohammedabdelrouf85/health-vibe/blob/main/backend/incident-service.js): `backend/incident-service.js`

### Model lifecycle

- [Feature extraction](https://github.com/mohammedabdelrouf85/health-vibe/blob/main/ml_models/feature_extractor.js): `ml_models/feature_extractor.js`
- [Respiratory classifier](https://github.com/mohammedabdelrouf85/health-vibe/blob/main/ml_models/respiratory_rf_classifier.js): `ml_models/respiratory_rf_classifier.js`
- [Under-triage analysis](https://github.com/mohammedabdelrouf85/health-vibe/blob/main/evaluation/false_negative_analyzer.js): `evaluation/false_negative_analyzer.js`
- [Model metrics](https://github.com/mohammedabdelrouf85/health-vibe/blob/main/evaluation/metrics.js): `evaluation/metrics.js`
- [Model reproducibility](https://github.com/mohammedabdelrouf85/health-vibe/blob/main/ml_models/reproducibility_service.js): `ml_models/reproducibility_service.js`

### Other components

- **Patient**
- **Physician**

## Connections

- Patient → Assessment UI: provides intake (evidence: `README.md`)
- Assessment UI → Assessment intake: submits answers
- Assessment intake → Feature extraction: normalizes input
- Feature extraction → Respiratory classifier: builds feature vector (evidence: `ml_models/respiratory_rf_classifier.js`)
- Respiratory classifier → Assessment intake: returns risk result
- Respiratory clinical spec → Clinical reviewer governance: defines thresholds (evidence: `backend/clinical-reviewer-service.js`)
- Physician → Doctor review cockpit: reviews case (evidence: `README.md`)
- Doctor review cockpit → Doctor service: records review
- Doctor service → Certified reports: issues report
- Certified reports → Reports UI: presents report
- Certified reports → Secure report links: creates share link
- Appointments → Telehealth visits: schedules visit
- Chronic disease care → Disease authorization: checks access
- Disease authorization → Audit trail: records denial (evidence: `backend/disease-authorization-service.js`)
- Notifications → Secure report links: uses secure links (evidence: `backend/notification-service.js`)
- Security monitoring → Incident register: reports incidents (evidence: `backend/incident-service.js`)
- Under-triage analysis → Model metrics: uses metrics (evidence: `evaluation/false_negative_analyzer.js`)
- Model reproducibility → Feature extraction: extracts features (evidence: `ml_models/reproducibility_service.js`)
- Model reproducibility → Respiratory classifier: checks determinism (evidence: `ml_models/reproducibility_service.js`)
