Pelita Hati — Digital Posyandu
A hierarchical digital Posyandu management platform (SiPosyandu Jakarta) integrating regional administration, toddler growth tracking with WHO Z-Score calculations, immunization logs, Puskesmas referrals, SKDN reporting, and a read-only parent portal across six user roles.
- Role
- Independent Full-Stack Developer
- Timeline
- 2025
- Status
- Not Deployed
- Showcase
- Interactive Project Showcase (Figma)
- Stack
- Laravel 13
- PHP
- MySQL
- Tailwind CSS
- JavaScript
- Chart.js
- Vite
Interactive Project Showcase

Context
Community health posts (Posyandu) across Jakarta traditionally record toddler weighing, immunization histories, and attendance on paper KMS booklets and manual ledgers—making regional rollups slow and stunting follow-ups hard to coordinate.
Pelita Hati (SiPosyandu Jakarta) digitizes the complete Posyandu hierarchy—from city health office down to districts, sub-districts, Puskesmas clinics, Posyandu posts, and parents—inside a single Laravel 13 web platform.
Problem
Manual paper-based growth logging slows down monthly Posyandu sessions and increases calculation errors when classifying nutritional status or identifying stunting risks early.
Health offices and Puskesmas clinicians lack centralized visibility across regions, while parents have no self-service digital access to track their own child's growth and immunization history.
Solution
Built a six-role web platform with hierarchical regional data scoping (Kecamatan → Kelurahan → Posyandu / Puskesmas → Balita) and separate login paths for parents (/login) and field/government staff (/petugas/login).
Implemented dedicated Laravel domain services—GiziCalculator for automated WHO 2005 LMS Z-Score classification (BB/U, TB/U, BB/TB) and ReportGenerator for SKDN coverage, stunting monitoring, and Chart.js regional analytics.
My Contribution
Architected and developed the entire full-stack system independently—including 12 relational MySQL tables, six role-scoped route groups, authorization policies, WHO anthropometric calculation service, SKDN report engine, and Blade + Tailwind CSS v4 dashboards.
Structured strict regional and parental access boundaries so every role sees only the districts, Posyandu posts, clinics, or children within its authorized jurisdiction.
Key Features
Admin Kota (City Health Office)
auth · role:admin_kota · /admin-kota/*Top-level provincial oversight across all DKI Jakarta districts, sub-districts, Posyandu posts, and staff.
City-Wide Regional & User Governance
Full CRUD over Kecamatan, Kelurahan, Posyandu, Users (with active/inactive status toggle), Balita, and Growth Records across all regions.
Stunting & SKDN Executive Dashboard
Chart.js bar chart plotting stunting rates per kecamatan against a 20% intervention threshold line, 6-month visit trend line chart, and city-wide malnutrition priority lists.
Admin Kecamatan & Admin Kelurahan
auth · role:admin_kecamatan / admin_kelurahanScoped regional administration automatically restricted to each official's assigned kecamatan_id or kelurahan_id.
Scoped Wilayah & Staff Administration
Admin Kecamatan manages kelurahan, posyandu, and staff in its district; Admin Kelurahan manages posyandu and kader accounts within its sub-district.
Regional SKDN, Immunization & Schedule Monitoring
Tracks monthly SKDN coverage, immunization recaps, malnutrition cases, and 7-day upcoming Posyandu schedule reminders within each jurisdiction.
Nakes Puskesmas (Health Workers)
auth · role:nakes_puskesmas · /nakes/*Clinical staff focused on malnutrition referrals, Puskesmas immunizations, and medical follow-ups within their Puskesmas area.
Malnutrition Referral Workflow
Create, review, and update toddler referrals (Dirujuk → Diteruskan → Selesai) via NakesRujukanController with delete routes intentionally disabled for clinical audit preservation.
Clinical Immunization & Growth Logging
Record and update Puskesmas immunization entries (vaccine type, batch number, date, location), add growth checks, and monitor high-risk malnutrition cases.
Kader Posyandu (Field Volunteers)
auth · role:kader · /kader/*Frontline Posyandu operators scoped strictly to their assigned posyandu_id for monthly weighing sessions.
Attendance, Toddler CRUD & Growth Weighing
Manage Posyandu profile and toddler rosters, record monthly session attendance (Kehadiran), and input anthropometric measurements auto-scored by GiziCalculator.
Posyandu Immunization & SKDN Recap
Log immunizations administered during Posyandu sessions and track monthly Posyandu SKDN participation, attendance averages, and active malnutrition alerts.
Orangtua (Parents)
auth · role:orangtua · /orangtua/*Read-only family portal scoped exclusively to toddlers linked to the parent's user_id.
Self-Registration & Child Growth History
Parents register via /register and monitor linked children's profiles, Posyandu location, historical weight/height logs, and calculated nutritional status.
Immunization History & Profile Control
Review complete child immunization records and update personal contact details without write access to clinical records.
System Architecture
Pelita Hati uses a monolithic Laravel 13 MVC architecture backed by MySQL with hierarchical role-based route groups, Laravel authorization policies, and dedicated calculation and reporting services.
Client Interfaces
Regional Admins
Blade · Chart.js
Kota, Kec & Kel SKDN
Nakes Puskesmas
Blade · Referrals
Referrals & vaccines
Kader Posyandu
Blade · Field Entry
Growth & attendance
Parent Portal
Blade · Read-Only
Own child records
Application Core
Laravel 13 Application
CheckRole · Policies · GiziCalculator · ReportGenerator · DashboardController
6-role hierarchical RBAC, dual login portals (/login, /petugas/login), CSRF & validation
Data & External Services
MySQL Database
12 tables · regions · balitas · records
Wilayah hierarchy, clinical logs & audit_logs
Domain Services & Charts
GiziCalculator · ReportGenerator · Chart.js
WHO 2005 LMS Z-Score & SKDN rollups
Communication & Synchronization
Regional Admins Laravel 13
Authenticated HTTP · Chart.js JSON
Admin Kota, Kecamatan, and Kelurahan access regionally filtered dashboards, wilayah CRUD, and Chart.js stunting/visit visualizations.
Nakes Puskesmas Laravel 13
Authenticated HTTP · role:nakes_puskesmas
Manages malnutrition referrals (without delete route) and Puskesmas immunization/growth entries for toddlers in their Puskesmas scope.
Kader Posyandu Laravel 13
Authenticated HTTP · role:kader
Submits session attendance, toddler registrations, weighing inputs, and Posyandu immunizations scoped strictly to posyandu_id.
Parent Portal Laravel 13
Authenticated HTTP · role:orangtua
Reads linked child profiles, growth history, and immunization logs through read-only routes protected by Balita authorization policies.
Laravel 13 MySQL Database
Eloquent ORM · Scoped SQL Queries
Stores hierarchical wilayah tables, toddler clinical records (growth, immunization, vitamin, attendance, referrals), and audit_logs.
Laravel 13 Domain Services
In-Process PHP Services · Blade @json
PertumbuhanController invokes GiziCalculator on every save/update; DashboardController invokes ReportGenerator to compute SKDN and Chart.js datasets.
Architecture note: Pelita Hati is a standard server-rendered Laravel 13 application using synchronous HTTP request-response flows and MySQL queries (no WebSocket server or automated PDF export package). All dashboards and SKDN reports reflect live database state on page load.
Posyandu Service & Referral Workflow
Monthly Posyandu operations connect field weighing and immunization logging directly to automated nutritional classification, clinical referrals, regional SKDN dashboards, and parent visibility.
- 01
Role-Based Login
Parents sign in at /login and staff at /petugas/login; /dashboard redirects automatically to 1 of 6 role dashboards.
- 02
Wilayah & Toddler Setup
Admins maintain Kecamatan, Kelurahan, and Posyandu records; Kader/Admins register toddlers and link parent accounts.
- 03
Session Attendance
On Posyandu day, Kader records each toddler's attendance (Kehadiran) to feed monthly participation metrics.
- 04
Growth & Z-Score Check
Kader or Nakes inputs weight, height, and circumferences; GiziCalculator computes WHO 2005 LMS Z-Scores and nutritional status.
- 05
Immunization Logging
Kader or Nakes records vaccine type (HB-0 through Campak-Rubella), date, batch number, and administration site.
- 06
Referral Escalation
Malnutrition and stunting flags surface on Nakes dashboards for Puskesmas referral tracking (Dirujuk → Diteruskan → Selesai).
- 07
SKDN & Parent Review
ReportGenerator updates S/K/D/N coverage and stunting charts per region while parents review child records read-only.
Field Monitoring vs. Clinical Escalation Paths
Routine Posyandu Monitoring
Kader Posyandu · Orangtua- 01Kader checks upcoming Posyandu schedule and records toddler attendance for the current month.
- 02Kader enters anthropometric measurements; GiziCalculator classifies normal, kurang, lebih, gizi_buruk, or stunting.
- 03Any scheduled immunizations are logged with batch numbers and clinical notes.
- 04Updated history immediately appears in the linked Parent portal and Posyandu monthly SKDN totals.
Clinical Referral & Regional Oversight
Nakes Puskesmas · Regional Admins- 01Toddlers flagged with gizi_buruk (Z < -3) or stunting (TB/U < -2) appear in priority intervention lists.
- 02Nakes Puskesmas opens a referral record documenting complaint, nutritional status, and medical follow-up.
- 03Nakes tracks referral progression through Dirujuk → Diteruskan → Selesai without destructive delete permissions.
- 04Admin Kelurahan, Kecamatan, and Kota dashboards aggregate SKDN coverage and highlight districts above the 20% stunting threshold.
Results & Impact
- Implemented a six-role hierarchical Posyandu information system (Admin Kota, Admin Kecamatan, Admin Kelurahan, Nakes Puskesmas, Kader Posyandu, Orangtua) inside one Laravel 13 + MySQL codebase.
- Automated WHO 2005 LMS Z-Score computation (BB/U, TB/U, BB/TB) and five-tier nutritional status classification via GiziCalculator.
- Built multi-level SKDN reporting, 11-vaccine immunization tracking, Puskesmas malnutrition referral management, and Chart.js stunting/visit analytics via ReportGenerator.
- Delivered a 12-table relational schema with regional foreign-key scoping, Gate policies, and audit_logs tracking.
- Open-source codebase on GitHub (github.com/abnibsth/pelita-hati) accompanied by an Interactive Project Showcase in Figma.
Technical Decisions
Six-Role Hierarchical RBAC & Dual Login Entrypoints
Implemented custom CheckRole middleware aliased as role in bootstrap/app.php protecting six dedicated route prefixes (/admin-kota, /admin-kecamatan, /admin-kelurahan, /nakes, /kader, /orangtua) alongside Laravel Gate policies on toddler records.
Separated parent authentication (/login, /register) from staff authentication (/petugas/login) while sharing a unified AuthController and role-based /dashboard redirector.
12-Table Relational Wilayah & Clinical Schema
Modeled the administrative hierarchy cleanly in MySQL (kecamatans → kelurahans → posyandus → balitas, plus puskesmas per kecamatan) linked to clinical tables (pertumbuhan_records, imunisasi_records, vitamin_records, kehadirans, rujukans) and audit_logs.
Scoping foreign keys on users (kecamatan_id, kelurahan_id, posyandu_id, puskesmas_id) and balitas (user_id) enforces multi-tenant-style regional isolation at the query layer.
WHO 2005 LMS Anthropometric Service (GiziCalculator)
Encapsulated Z-Score math inside App\Services\GiziCalculator using the WHO 2005 Lambda-Mu-Sigma formula Z = [(X/M)^L - 1] / (L * S) across BB/U, TB/U, and BB/TB indices stratified by child gender and closest age/height reference points.
PertumbuhanController automatically runs GiziCalculator on both record creation and edits, storing rounded Z-Scores and derived status_gizi directly on pertumbuhan_records for fast dashboard querying.
Centralized SKDN & Health Analytics Engine (ReportGenerator)
Built App\Services\ReportGenerator to calculate standardized Posyandu SKDN indicators (Sasaran 0–59 months, Kunjungan, Diberi/weighed, Nutrisi/malnutrition, plus coverage percentage) across Posyandu, Kelurahan, and Kecamatan levels.
Exposed immunization breakdowns (11 standard vaccines from HB-0 to Campak-Rubella), latest-record nutritional distributions, and 12-month growth trend arrays consumed by Blade dashboards and Chart.js visualizations.
Server-Side Validation & Clinical Data Integrity
Enforced strict physiological bounds in PertumbuhanController (measurement date <= today, weight 0–50 kg, height 30–150 cm, optional head 20–80 cm and arm 5–50 cm circumferences) combined with Gate::authorize('update', $balita).
Protected referral records by excluding destroy from NakesRujukanController routes, restricted parent accounts strictly to read-only child endpoints, and included an audit_logs model/table to track sensitive changes.
Challenges & Learnings
Enforcing Strict Data Isolation Across Six Overlapping Roles
Multiple roles interact with the same Balita and Pertumbuhan models at different geographic scopes (city, district, sub-district, clinic, post, or single family). Combining role-prefixed route middleware with Gate policies and regional foreign-key scoping prevented cross-region data leaks while reusing shared controllers.
Keeping Nutritional Classification Consistent Across Edits & Dashboards
Calculating WHO Z-Scores ad-hoc in views would slow regional dashboards and risk inconsistent classifications. Computing and persisting z_score_bbu, z_score_tbu, z_score_bbtb, and status_gizi through GiziCalculator on every write kept city-wide aggregations fast and consistent.