# revalino16/prevanta architecture

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

- Interactive diagram: https://gitdiagram.com/revalino16/prevanta
- Repository: https://github.com/revalino16/prevanta

## Overview

Prevanta is a role-based Posyandu child-growth tracking application. Kaders record measurements and care events; the application calculates height-for-age Z-scores and stores the results, which can then be reviewed by a bidan for verification and followed by parents through child records, growth charts, and health history. The tree also includes education and scheduling features for kader and parent users. The README is Laravel boilerplate, so it does not document product capabilities; unsampled route and view details are represented only where the source index supports them.

Main entry points: [`routes/web.php`](https://github.com/revalino16/prevanta/blob/main/routes/web.php) (Web routes), [`app/Models`](https://github.com/revalino16/prevanta/tree/main/app/Models) (Child health records), [`app/Http/Controllers/Kader/PengukuranController.php`](https://github.com/revalino16/prevanta/blob/main/app/Http/Controllers/Kader/PengukuranController.php) (Measurement entry), [`app/Http/Controllers/BalitaController.php`](https://github.com/revalino16/prevanta/blob/main/app/Http/Controllers/BalitaController.php) (Child records)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_access["Access and routing"]
  node_web_routes["Web routes<br/>[web.php]"]
  node_auth["Authentication<br/>[AuthController.php]"]
  node_role_guard["Role access<br/>[RoleMiddleware.php]"]
end

subgraph group_care["Child care records"]
  node_child_records["Child records"]
  node_measurement_entry["Measurement entry"]
  node_measurement_validation["Measurement validation"]
  node_growth_calculation["Growth calculation"]
  node_measurement_limits["Measurement limits"]
  node_child_health_data["Child health records"]
end

subgraph group_review["Growth review"]
  node_kms["Growth charts and history"]
  node_verification["Measurement verification"]
end

subgraph group_engagement["Family and community"]
  node_parent_child_views["Parent child records"]
  node_education["Health education"]
  node_parent_education["Parent education"]
  node_schedules["Posyandu schedules"]
  node_dashboard["Role dashboards"]
end

node_parents(("Parents"))
node_kaders(("Kaders"))
node_midwives(("Midwives"))

node_web_routes -->|"routes to"| node_auth
node_web_routes -->|"routes to"| node_child_records
node_web_routes -->|"routes to"| node_measurement_entry
node_web_routes -->|"routes to"| node_kms
node_web_routes -->|"routes to"| node_verification
node_web_routes -->|"routes to"| node_parent_child_views
node_web_routes -->|"routes to"| node_parent_education
node_web_routes -->|"routes to"| node_schedules
node_web_routes -->|"routes to"| node_dashboard
node_measurement_entry -->|"validates with"| node_measurement_validation
node_measurement_entry -->|"calculates score"| node_growth_calculation
node_measurement_entry -->|"loads limits"| node_measurement_limits
node_measurement_entry -->|"records measurements"| node_child_health_data
node_child_records -->|"manages children"| node_child_health_data
node_kms -->|"reads health history"| node_child_health_data
node_verification -->|"reviews measurements"| node_child_health_data
node_parent_child_views -->|"reads child records"| node_child_health_data
node_education -->|"uses child data"| node_child_health_data
node_parent_education -->|"loads parent data"| node_child_health_data
node_schedules -->|"stores schedules"| node_child_health_data
node_parents -.->|"uses web app"| node_web_routes
node_kaders -.->|"uses web app"| node_web_routes
node_midwives -.->|"uses web app"| node_web_routes
node_role_guard -.->|"guards routes"| node_web_routes

click node_web_routes "https://github.com/revalino16/prevanta/blob/main/routes/web.php"
click node_auth "https://github.com/revalino16/prevanta/blob/main/app/Http/Controllers/AuthController.php"
click node_role_guard "https://github.com/revalino16/prevanta/blob/main/app/Http/Middleware/RoleMiddleware.php"
click node_child_records "https://github.com/revalino16/prevanta/blob/main/app/Http/Controllers/BalitaController.php"
click node_measurement_entry "https://github.com/revalino16/prevanta/blob/main/app/Http/Controllers/Kader/PengukuranController.php"
click node_measurement_validation "https://github.com/revalino16/prevanta/blob/main/app/Http/Requests/StorePengukuranRequest.php"
click node_growth_calculation "https://github.com/revalino16/prevanta/blob/main/app/Support/HeightForAgeZScoreCalculator.php"
click node_measurement_limits "https://github.com/revalino16/prevanta/blob/main/app/Support/AnthropometricMeasurementLimits.php"
click node_child_health_data "https://github.com/revalino16/prevanta/tree/main/app/Models"
click node_kms "https://github.com/revalino16/prevanta/blob/main/app/Http/Controllers/BalitaKmsController.php"
click node_verification "https://github.com/revalino16/prevanta/blob/main/app/Http/Controllers/Bidan/VerifikasiController.php"
click node_parent_child_views "https://github.com/revalino16/prevanta/blob/main/app/Http/Controllers/OrangTua/AnakkuController.php"
click node_education "https://github.com/revalino16/prevanta/blob/main/app/Http/Controllers/Kader/EdukasiController.php"
click node_parent_education "https://github.com/revalino16/prevanta/blob/main/app/Http/Controllers/OrangTua/EdukasiController.php"
click node_schedules "https://github.com/revalino16/prevanta/blob/main/app/Http/Controllers/Kader/JadwalController.php"
click node_dashboard "https://github.com/revalino16/prevanta/blob/main/app/Http/Controllers/DashboardController.php"

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_web_routes,node_auth,node_role_guard toneBlue
class node_child_records,node_measurement_entry,node_measurement_validation,node_growth_calculation,node_measurement_limits,node_child_health_data toneAmber
class node_kms,node_verification toneMint
class node_parent_child_views,node_education,node_parent_education,node_schedules,node_dashboard toneRose
class node_parents,node_kaders,node_midwives toneIndigo
```

## Components

### Access and routing

- [Web routes](https://github.com/revalino16/prevanta/blob/main/routes/web.php): `routes/web.php`
- [Authentication](https://github.com/revalino16/prevanta/blob/main/app/Http/Controllers/AuthController.php): `app/Http/Controllers/AuthController.php`
- [Role access](https://github.com/revalino16/prevanta/blob/main/app/Http/Middleware/RoleMiddleware.php): `app/Http/Middleware/RoleMiddleware.php`

### Child care records

- [Child records](https://github.com/revalino16/prevanta/blob/main/app/Http/Controllers/BalitaController.php): `app/Http/Controllers/BalitaController.php`
- [Measurement entry](https://github.com/revalino16/prevanta/blob/main/app/Http/Controllers/Kader/PengukuranController.php): `app/Http/Controllers/Kader/PengukuranController.php`
- [Measurement validation](https://github.com/revalino16/prevanta/blob/main/app/Http/Requests/StorePengukuranRequest.php): `app/Http/Requests/StorePengukuranRequest.php`
- [Growth calculation](https://github.com/revalino16/prevanta/blob/main/app/Support/HeightForAgeZScoreCalculator.php): `app/Support/HeightForAgeZScoreCalculator.php`
- [Measurement limits](https://github.com/revalino16/prevanta/blob/main/app/Support/AnthropometricMeasurementLimits.php): `app/Support/AnthropometricMeasurementLimits.php`
- [Child health records](https://github.com/revalino16/prevanta/tree/main/app/Models): `app/Models`

### Growth review

- [Growth charts and history](https://github.com/revalino16/prevanta/blob/main/app/Http/Controllers/BalitaKmsController.php): `app/Http/Controllers/BalitaKmsController.php`
- [Measurement verification](https://github.com/revalino16/prevanta/blob/main/app/Http/Controllers/Bidan/VerifikasiController.php): `app/Http/Controllers/Bidan/VerifikasiController.php`

### Family and community

- [Parent child records](https://github.com/revalino16/prevanta/blob/main/app/Http/Controllers/OrangTua/AnakkuController.php): `app/Http/Controllers/OrangTua/AnakkuController.php`
- [Health education](https://github.com/revalino16/prevanta/blob/main/app/Http/Controllers/Kader/EdukasiController.php): `app/Http/Controllers/Kader/EdukasiController.php`
- [Parent education](https://github.com/revalino16/prevanta/blob/main/app/Http/Controllers/OrangTua/EdukasiController.php): `app/Http/Controllers/OrangTua/EdukasiController.php`
- [Posyandu schedules](https://github.com/revalino16/prevanta/blob/main/app/Http/Controllers/Kader/JadwalController.php): `app/Http/Controllers/Kader/JadwalController.php`
- [Role dashboards](https://github.com/revalino16/prevanta/blob/main/app/Http/Controllers/DashboardController.php): `app/Http/Controllers/DashboardController.php`

### Other components

- **Parents**
- **Kaders**
- **Midwives**

## Connections

- Web routes → Authentication: routes to (evidence: `routes/web.php`)
- Web routes → Child records: routes to (evidence: `routes/web.php`)
- Web routes → Measurement entry: routes to (evidence: `routes/web.php`)
- Web routes → Growth charts and history: routes to (evidence: `routes/web.php`)
- Web routes → Measurement verification: routes to (evidence: `routes/web.php`)
- Web routes → Parent child records: routes to (evidence: `routes/web.php`)
- Web routes → Parent education: routes to (evidence: `routes/web.php`)
- Web routes → Posyandu schedules: routes to (evidence: `routes/web.php`)
- Web routes → Role dashboards: routes to (evidence: `routes/web.php`)
- Measurement entry → Measurement validation: validates with (evidence: `app/Http/Controllers/Kader/PengukuranController.php`)
- Measurement entry → Growth calculation: calculates score (evidence: `app/Http/Controllers/Kader/PengukuranController.php`)
- Measurement entry → Measurement limits: loads limits (evidence: `app/Http/Controllers/Kader/PengukuranController.php`)
- Measurement entry → Child health records: records measurements (evidence: `app/Http/Controllers/Kader/PengukuranController.php`)
- Child records → Child health records: manages children (evidence: `app/Http/Controllers/BalitaController.php`)
- Growth charts and history → Child health records: reads health history (evidence: `app/Http/Controllers/BalitaKmsController.php`)
- Measurement verification → Child health records: reviews measurements (evidence: `app/Http/Controllers/Bidan/VerifikasiController.php`)
- Parent child records → Child health records: reads child records (evidence: `app/Http/Controllers/OrangTua/AnakkuController.php`)
- Health education → Child health records: uses child data (evidence: `app/Http/Controllers/Kader/EdukasiController.php`)
- Parent education → Child health records: loads parent data (evidence: `app/Http/Controllers/OrangTua/EdukasiController.php`)
- Posyandu schedules → Child health records: stores schedules (evidence: `app/Http/Controllers/Kader/JadwalController.php`)
- Parents → Web routes: uses web app
- Kaders → Web routes: uses web app
- Midwives → Web routes: uses web app
- Role access → Web routes: guards routes
