# samuelihimbazwe/android-system-healthscreening architecture

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

- Interactive diagram: https://gitdiagram.com/samuelihimbazwe/android-system-healthscreening
- Repository: https://github.com/samuelihimbazwe/android-system-healthscreening

## Overview

Health Screening is an Android app for school health workers and administrators to manage student records and screenings locally. The main workflow is to add or find a student, enter first or follow-up health measurements, then review screening progress and manage referrals; users can also export reports and back up data. The README identifies the UI, repository/database, and export responsibilities, but no runtime source was sampled, so internal call relationships are not asserted.

Main entry points: [`app/src/main/java/com/example/healthscreening/ui/MainActivity.java`](https://github.com/samuelihimbazwe/android-system-healthscreening/blob/main/app/src/main/java/com/example/healthscreening/ui/MainActivity.java) (App navigation), [`app/src/main/java/com/example/healthscreening/ui/ScreeningFragment.java`](https://github.com/samuelihimbazwe/android-system-healthscreening/blob/main/app/src/main/java/com/example/healthscreening/ui/ScreeningFragment.java) (Screening entry), [`app/src/main/java/com/example/healthscreening/ui/ExcelExportActivity.java`](https://github.com/samuelihimbazwe/android-system-healthscreening/blob/main/app/src/main/java/com/example/healthscreening/ui/ExcelExportActivity.java) (Excel export screen), [`app/src/main/java/com/example/healthscreening/ui/ReferralsFragment.java`](https://github.com/samuelihimbazwe/android-system-healthscreening/blob/main/app/src/main/java/com/example/healthscreening/ui/ReferralsFragment.java) (Referral management)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_navigation["App navigation"]
  node_app["App navigation<br/>[MainActivity.java]"]
  node_dashboard["Dashboard statistics"]
end

subgraph group_screenings["Student screenings"]
  node_screening["Screening entry"]
  node_first_screening["First screening"]
  node_followup["Follow-up screening"]
  node_screening_history["Screening history"]
end

subgraph group_records["Records and referrals"]
  node_students["Student records"]
  node_student_detail["Student details"]
  node_student_repo["Student repository"]
  node_referrals["Referral management"]
  node_referral_repo["Referral repository"]
  node_database[("Local SQLite")]
end

subgraph group_operations["Reports and settings"]
  node_settings["Settings"]
  node_backup["Backup and restore"]
  node_export_screen["Excel export screen"]
  node_exporter["Report exporter"]
end

node_worker(("Health worker"))

node_worker -->|"opens app"| node_app
node_app -->|"navigates to"| node_students
node_app -->|"navigates to"| node_screening
node_app -->|"navigates to"| node_dashboard
node_app -->|"navigates to"| node_referrals
node_app -->|"navigates to"| node_settings
node_worker -->|"adds student"| node_student_detail
node_screening -->|"starts screening"| node_first_screening
node_screening -->|"starts follow-up"| node_followup
node_worker -->|"manages referrals"| node_referrals
node_worker -->|"requests report"| node_export_screen
node_export_screen -->|"generates Excel"| node_exporter

click node_app "https://github.com/samuelihimbazwe/android-system-healthscreening/blob/main/app/src/main/java/com/example/healthscreening/ui/MainActivity.java"
click node_students "https://github.com/samuelihimbazwe/android-system-healthscreening/blob/main/app/src/main/java/com/example/healthscreening/ui/StudentsFragment.java"
click node_student_detail "https://github.com/samuelihimbazwe/android-system-healthscreening/blob/main/app/src/main/java/com/example/healthscreening/ui/StudentDetailActivity.java"
click node_student_repo "https://github.com/samuelihimbazwe/android-system-healthscreening/blob/main/app/src/main/java/com/example/healthscreening/data/StudentRepository.java"
click node_screening "https://github.com/samuelihimbazwe/android-system-healthscreening/blob/main/app/src/main/java/com/example/healthscreening/ui/ScreeningFragment.java"
click node_first_screening "https://github.com/samuelihimbazwe/android-system-healthscreening/blob/main/app/src/main/java/com/example/healthscreening/ui/FirstScreeningActivity.java"
click node_followup "https://github.com/samuelihimbazwe/android-system-healthscreening/blob/main/app/src/main/java/com/example/healthscreening/ui/FollowUpScreeningActivity.java"
click node_screening_history "https://github.com/samuelihimbazwe/android-system-healthscreening/blob/main/app/src/main/java/com/example/healthscreening/ui/ScreeningHistoryAdapter.java"
click node_dashboard "https://github.com/samuelihimbazwe/android-system-healthscreening/blob/main/app/src/main/java/com/example/healthscreening/ui/DashboardFragment.java"
click node_referrals "https://github.com/samuelihimbazwe/android-system-healthscreening/blob/main/app/src/main/java/com/example/healthscreening/ui/ReferralsFragment.java"
click node_referral_repo "https://github.com/samuelihimbazwe/android-system-healthscreening/blob/main/app/src/main/java/com/example/healthscreening/data/ReferralRepository.java"
click node_database "https://github.com/samuelihimbazwe/android-system-healthscreening/blob/main/app/src/main/java/com/example/healthscreening/data/DatabaseHelper.java"
click node_settings "https://github.com/samuelihimbazwe/android-system-healthscreening/blob/main/app/src/main/java/com/example/healthscreening/ui/SettingsFragment.java"
click node_backup "https://github.com/samuelihimbazwe/android-system-healthscreening/blob/main/app/src/main/java/com/example/healthscreening/ui/BackupRestoreFragment.java"
click node_export_screen "https://github.com/samuelihimbazwe/android-system-healthscreening/blob/main/app/src/main/java/com/example/healthscreening/ui/ExcelExportActivity.java"
click node_exporter "https://github.com/samuelihimbazwe/android-system-healthscreening/blob/main/app/src/main/java/com/example/healthscreening/data/ReportExporter.java"

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_app,node_dashboard toneBlue
class node_screening,node_first_screening,node_followup,node_screening_history toneAmber
class node_students,node_student_detail,node_student_repo,node_referrals,node_referral_repo,node_database toneMint
class node_settings,node_backup,node_export_screen,node_exporter,node_worker toneRose
```

## Components

### App navigation

- [App navigation](https://github.com/samuelihimbazwe/android-system-healthscreening/blob/main/app/src/main/java/com/example/healthscreening/ui/MainActivity.java): `app/src/main/java/com/example/healthscreening/ui/MainActivity.java`
- [Dashboard statistics](https://github.com/samuelihimbazwe/android-system-healthscreening/blob/main/app/src/main/java/com/example/healthscreening/ui/DashboardFragment.java): `app/src/main/java/com/example/healthscreening/ui/DashboardFragment.java`

### Student screenings

- [Screening entry](https://github.com/samuelihimbazwe/android-system-healthscreening/blob/main/app/src/main/java/com/example/healthscreening/ui/ScreeningFragment.java): `app/src/main/java/com/example/healthscreening/ui/ScreeningFragment.java`
- [First screening](https://github.com/samuelihimbazwe/android-system-healthscreening/blob/main/app/src/main/java/com/example/healthscreening/ui/FirstScreeningActivity.java): `app/src/main/java/com/example/healthscreening/ui/FirstScreeningActivity.java`
- [Follow-up screening](https://github.com/samuelihimbazwe/android-system-healthscreening/blob/main/app/src/main/java/com/example/healthscreening/ui/FollowUpScreeningActivity.java): `app/src/main/java/com/example/healthscreening/ui/FollowUpScreeningActivity.java`
- [Screening history](https://github.com/samuelihimbazwe/android-system-healthscreening/blob/main/app/src/main/java/com/example/healthscreening/ui/ScreeningHistoryAdapter.java): `app/src/main/java/com/example/healthscreening/ui/ScreeningHistoryAdapter.java`

### Records and referrals

- [Student records](https://github.com/samuelihimbazwe/android-system-healthscreening/blob/main/app/src/main/java/com/example/healthscreening/ui/StudentsFragment.java): `app/src/main/java/com/example/healthscreening/ui/StudentsFragment.java`
- [Student details](https://github.com/samuelihimbazwe/android-system-healthscreening/blob/main/app/src/main/java/com/example/healthscreening/ui/StudentDetailActivity.java): `app/src/main/java/com/example/healthscreening/ui/StudentDetailActivity.java`
- [Student repository](https://github.com/samuelihimbazwe/android-system-healthscreening/blob/main/app/src/main/java/com/example/healthscreening/data/StudentRepository.java): `app/src/main/java/com/example/healthscreening/data/StudentRepository.java`
- [Referral management](https://github.com/samuelihimbazwe/android-system-healthscreening/blob/main/app/src/main/java/com/example/healthscreening/ui/ReferralsFragment.java): `app/src/main/java/com/example/healthscreening/ui/ReferralsFragment.java`
- [Referral repository](https://github.com/samuelihimbazwe/android-system-healthscreening/blob/main/app/src/main/java/com/example/healthscreening/data/ReferralRepository.java): `app/src/main/java/com/example/healthscreening/data/ReferralRepository.java`
- [Local SQLite](https://github.com/samuelihimbazwe/android-system-healthscreening/blob/main/app/src/main/java/com/example/healthscreening/data/DatabaseHelper.java): `app/src/main/java/com/example/healthscreening/data/DatabaseHelper.java`

### Reports and settings

- [Settings](https://github.com/samuelihimbazwe/android-system-healthscreening/blob/main/app/src/main/java/com/example/healthscreening/ui/SettingsFragment.java): `app/src/main/java/com/example/healthscreening/ui/SettingsFragment.java`
- [Backup and restore](https://github.com/samuelihimbazwe/android-system-healthscreening/blob/main/app/src/main/java/com/example/healthscreening/ui/BackupRestoreFragment.java): `app/src/main/java/com/example/healthscreening/ui/BackupRestoreFragment.java`
- [Excel export screen](https://github.com/samuelihimbazwe/android-system-healthscreening/blob/main/app/src/main/java/com/example/healthscreening/ui/ExcelExportActivity.java): `app/src/main/java/com/example/healthscreening/ui/ExcelExportActivity.java`
- [Report exporter](https://github.com/samuelihimbazwe/android-system-healthscreening/blob/main/app/src/main/java/com/example/healthscreening/data/ReportExporter.java): `app/src/main/java/com/example/healthscreening/data/ReportExporter.java`

### Other components

- **Health worker**

## Connections

- Health worker → App navigation: opens app (evidence: `README.md`)
- App navigation → Student records: navigates to (evidence: `README.md`)
- App navigation → Screening entry: navigates to (evidence: `README.md`)
- App navigation → Dashboard statistics: navigates to (evidence: `README.md`)
- App navigation → Referral management: navigates to (evidence: `README.md`)
- App navigation → Settings: navigates to (evidence: `README.md`)
- Health worker → Student details: adds student (evidence: `README.md`)
- Screening entry → First screening: starts screening (evidence: `README.md`)
- Screening entry → Follow-up screening: starts follow-up (evidence: `README.md`)
- Health worker → Referral management: manages referrals (evidence: `README.md`)
- Health worker → Excel export screen: requests report (evidence: `README.md`)
- Excel export screen → Report exporter: generates Excel (evidence: `README.md`)
