#5215 fixed alert issue for name duplicity check #5219
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Fixes #5215
Change summary
Mobile > In the vaccination module > Name duplicity check alert should be generated for new patient.
Check for local duplicity of patient when creating new.
If patient already exists with same lastName, firstName, and dateOfBirth then we need a confirmation modal.
Either we can cancel the duplicity or can create duplicate patient.
Testing
Steps to reproduce or otherwise test the changes of this PR:
Save
button will be enable to create new patient.Are you sure you want to duplicate this patient? A patient with name: {0} and date of birth: {1} already exist.
will be generated.Cancel
then nothing will be saved and page return to first tab of vaccination page.OK
then you are allowed to create a duplicate patient having same details as above.OK
, and entering all mandatory fields clickNext
button and process all step to create a patient and its related vaccination event.Dispensing
module too.Related areas to think about
If there are any general areas of the codebase your changes might have side affects on, mention them here