Skip to content

Add input validation and heart rate alert in Record Vitals page

Habeeb Unissa requested to merge record-vitals-validation into develop

This MR enhances the Record Vitals page by introducing strict input validation and a dynamic health alert mechanism to improve data integrity and user experience. Changes Implemented 1️⃣ Numeric Input Validation The following fields now accept only positive integers: Pulse (bpm) Heart Rate (bpm) RBS (mg/dL) Height (cm) Weight (kg) Validation Improvements: Prevents alphabets Prevents special characters Prevents negative values Prevents decimals Prevents invalid form submission BP Field Format Enforcement For: BP Manual BP Digital Enhancements: Enforces strict systolic/diastolic format Allows only one / Accepts only numeric values before and after / Prevents invalid BP entries Example valid format:120/80 Heart Rate High Alert Displays a dynamic warning when Heart Rate > 100 bpm Shows inline alert message: Heart rate is high Warning disappears automatically when value ≤ 100 Informational only (does not block submission)imageimage

Edited by Habeeb Unissa

Merge request reports

Loading