Old New field In Patient Registration Page
Description:
Implemented auto-detection of Old/New patients during registration.
Added logic to check the database for existing patient records based on Registration ID (or other unique identifiers).
If a record is found → patient is marked as Old, else marked as New.
Updated the registration workflow to display patient status clearly on the screen.
Removed manual “Old/New” input field to reduce errors and dependency on volunteers.
Ensures consistent data, prevents duplicate entries, and improves patient tracking across multiple camps.
Type of Change:
-
Bug Fix -
Feature Development -
Documentation
Testing:
-
Tested on desktop -
Tested on mobile -
Tested in different browsers
Screenshots (if applicable):
Add screenshots for UI changes.

Video Demo
Add a link to the demo of the PR
If you have used AI create this PR, please also record video of yourself explaining the changes.
Link to code walkthrough
Checklist:
-
Code follows project style guidelines -
Self-review completed -
No console errors -
JavaScript types are correct