MaternaTrack: Maternal Health Monitoring System in PHP
Maternal health monitoring in Philippine barangays still runs on paper logbooks, manual tallying, and memory. Health workers track dozens of pregnant patients across notebooks and spreadsheets, risk classifications get missed, follow-up visits slip through the cracks, and DOH reports take days to compile manually.
MaternaTrack is a complete maternal health monitoring system built with PHP and MySQL that replaces all of that. It automatically classifies patient risk levels, detects missed checkups, sends SMS alerts, computes pregnancy dates, and generates DOH-aligned reports. It’s designed specifically for Barangay Health Stations, Rural Health Units, lying-in clinics, and private midwife practices in the Philippines.
What Makes MaternaTrack Different
This isn’t a simple patient CRUD app. MaternaTrack acts on data. When a midwife records a prenatal visit, the system automatically recalculates the patient’s risk level based on vital signs, danger signs, and obstetric history. If a patient misses a scheduled checkup, the system flags it. If a birth plan milestone is approaching, it sends an SMS reminder. Every piece of data feeds into something actionable.
Complete Feature Breakdown
Patient Registry & Pregnancy Tracking
Every patient gets a full profile with demographics, obstetric history, and assigned healthcare staff. When you enter a patient’s Last Menstrual Period (LMP), MaternaTrack automatically calculates the Expected Date of Confinement (EDC), Age of Gestation (AOG), and current trimester. No manual counting on calendars.
Antenatal Care (ANC) Visit Recording
Each prenatal visit captures vital signs, supplements given, and danger signs observed. The system tracks visit schedules and flags patients who are overdue. This is where the automated risk engine kicks in.
Automated Risk Classification
After every visit, MaternaTrack classifies the patient into one of four risk levels: Low, Moderate, High, or Critical. This classification is based on clinical data, not guesswork. High-risk patients surface to the top of your dashboard so they get the attention they need.
Birth Plan Management
A guided checklist walks patients through birth preparation with SMS reminders at key milestones. No more patients showing up unprepared at 38 weeks.
Delivery & Postnatal Care
Birth outcomes are recorded with APGAR scores and delivery details. Postpartum care includes PHQ-2 depression screening, which is often skipped in manual systems but critical for maternal wellbeing.
Newborn Care
Vaccination schedules and Newborn Screening (NBS) tracking are built in. The system knows which vaccines are due and when, so nothing gets missed.
Referral System
When a patient needs to be referred to a higher-level facility, MaternaTrack generates printable referral slips with all relevant clinical data included. Referral status is tracked from submission to completion.
SMS Notifications
MaternaTrack sends automated SMS messages via the Semaphore API across 9 trigger types: appointment reminders, missed visit alerts, birth plan reminders, risk level changes, and more. This is especially valuable in rural areas where patients don’t have email.
8 DOH-Aligned Reports
Generate reports that align with Department of Health requirements. All reports export to both PDF and Excel, so you can submit them directly or do further analysis. What used to take days of manual tallying now takes seconds.
Seven User Roles
MaternaTrack uses granular role-based access control with seven levels:
Superadmin has full system access across all facilities. Admin manages a single facility’s settings, users, and data. Doctor has full clinical access to patient records and reports. Nurse records visits, vital signs, and manages patient care. Midwife handles prenatal visits, delivery records, and postnatal care. BHW (Barangay Health Worker) tracks patient follow-ups and community-level data. Patient gets a self-service portal with read-only access to their own records.
Every role has per-action, per-module permissions. A BHW can view patient lists but can’t edit clinical records. A nurse can record visits but can’t access financial reports. You control exactly who sees and does what.
Multi-Tenant Architecture
One MaternaTrack installation can serve multiple facilities with completely isolated data. A Rural Health Unit and its satellite Barangay Health Stations can all run on the same system without seeing each other’s records. Each tenant has its own settings and user base.
Security
Healthcare data demands serious security. MaternaTrack includes bcrypt password hashing, Google OAuth 2.0, two-factor authentication (TOTP), CSRF protection on all forms, session timeout management, login attempt throttling, XSS and SQL injection prevention, and a full audit trail that logs every change with JSON diffs showing exactly what was modified, by whom, and when.
Tech Stack
MaternaTrack runs on a standard PHP stack:
- PHP 8.1+ with a custom MVC framework
- MySQL 8.0+ for the database
- Tailwind CSS v4 for the frontend
- DOMPDF for PDF generation
- PhpSpreadsheet for Excel exports
- Semaphore API for SMS
- Google OAuth 2.0 and TOTP 2FA for authentication
- Mobile responsive design that works on phones, tablets, and desktops
- Dark/light mode toggle
Project Scale
MaternaTrack is a substantial system: 9,000+ lines of PHP, 20 controllers, 15 models, 70+ views, 233 routes, and full documentation covering installation, configuration, database schema, all 18 modules, security hardening, and a Laravel migration path if you want to scale up later.
Try the Live Demo
See MaternaTrack running with sample data before you buy:
Get MaternaTrack
MaternaTrack is available as a complete source code package with full documentation, database schema, and all migrations included.
Installation Overview
Getting MaternaTrack running requires PHP 8.1+, MySQL 8.0+, Composer, and Node.js. The setup process:
- Run
composer install --no-devandnpm install && npm run build - Create a MySQL database with utf8mb4 collation
- Import the base schema and all migration files (included in order)
- Edit the config files with your database credentials
- Create your first admin user and facility
- Point your browser to the public folder
It works on XAMPP for local development, cPanel shared hosting, or any VPS with Apache/Nginx. Full deployment instructions are included in the documentation.
Who Is This For?
MaternaTrack is built for Philippine healthcare facilities that manage maternal patients: Barangay Health Stations, Rural Health Units, lying-in clinics, municipal health offices, and private midwife practices. If you’re tracking pregnant patients on paper or spreadsheets and struggling with DOH reporting deadlines, MaternaTrack automates the work that eats up your time.
View the Live Demo → or Get the Source Code → and bring your maternal health monitoring into a real system.

Discussion
Leave a reply