Skip to content

Disable Vitals Submission When Required Fields Are Empty

Habeeb Unissa requested to merge record-vitals into develop

This MR adds validation to the Record Vitals page to prevent submission when any required vital measurement field is empty. This ensures that incomplete vital records are not submitted to the system.

🔧 Changes Implemented Disabled the Save Vitals button when any required vital field is empty. Added validation for the following required fields: BP Manual BP Digital Pulse Heart Rate RBS Height Weight The Notes field remains optional and does not block submission. The updateVitals API is triggered only when all required fields are filled.

Expected Behavior Users must fill all required vital measurements before submitting the form. The Save Vitals button remains disabled until all required fields contain values. Submission with incomplete required fields is prevented.

🎯 Benefits Prevents incomplete or invalid patient vital data from being recorded. Improves data integrity and reliability of patient records.

Affected Component RecordVitalsPage

🧪 Testing Existing tests were verified. Form behavior tested for: Disabled submission when fields are empty Successful submission when all required fields are filled.

image image image

Edited by Habeeb Unissa

Merge request reports

Loading