Skip to content

Fixed Vitals Check Age Restriction & Book Number Verification Debounce Issue

chava rahul requested to merge vital/age-and-bookno-issue into develop

Description: This PR fixes two key issues in the Vitals Check module:

Age Restriction – Added validation to enforce a minimum age of 18 during vitals check. If the patient’s age is below 18, submission is blocked and an error message is shown.

Book Number Verification – Removed unnecessary debounce calls. Verification now happens only when the user has finished entering the complete book number (via Enter key or blur), preventing redundant API calls.

Type of Change:

Bug Fix

Testing:

Tested on desktop

Tested on mobile

Screenshots (if applicable): image

Checklist:

Code follows project style guidelines

Self-review completed

No console errors

TypeScript types are correct

Merge request reports

Loading