Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug: Patient Registration Form Allows Negative Age Values #9791

Closed
harshitg927 opened this issue Jan 6, 2025 · 2 comments
Closed

Bug: Patient Registration Form Allows Negative Age Values #9791

harshitg927 opened this issue Jan 6, 2025 · 2 comments

Comments

@harshitg927
Copy link

harshitg927 commented Jan 6, 2025

Describe the bug
Add new patient form in search patients tab allows negative age values.

To Reproduce
Steps to reproduce the behavior:

  1. Navigate to the "Search Patients" section in the main navigation.
  2. Select the "Add New patient" button
  3. In the patient registration form, locate the Date of Birth field
  4. Enter a negative number in the Age field
  5. Observe that the system accepts negative age values without validation and the calculated year of birth is incorrectly computed based on the negative age.

Expected Behavior:

  1. The system should prevent users from entering negative values in the Age field.
  2. A proper validation message should be displayed when attempting to enter negative ages.

Screenshots
Image

Desktop (please complete the following information):

  • OS: Ubuntu 22.04 LTS
  • Browser: Brave
  • Version

Additional context
I have already solved this issue on my local machine.

@harshitg927
Copy link
Author

harshitg927 commented Jan 6, 2025

I have already solved this issue on my local machine, please assign me.

@rajku-dev
Copy link
Contributor

rajku-dev commented Jan 6, 2025

@harshitg927
Already solved in this PR👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants