Some patients may just end up having the same name and birthdate by coincidence. Adding 2 John Doe patients with the same birthdate but different phone numbers is not possible in the program.
The command used is "p-add n/John Doe g/MALE bd/2018-12-27 bt/A+ p/99999999 e/johnd@example.com a/315, Clementi Ave 2, #02-25"
This is done to prevent duplicate patients.
For example,
Suppose we try to enter a patient that already exists with a changed phone number, this should not occur as the patient is already in the patient list.
Some patients may just end up having the same name and birthdate by coincidence. Adding 2 John Doe patients with the same birthdate but different phone numbers is not possible in the program.
The command used is "p-add n/John Doe g/MALE bd/2018-12-27 bt/A+ p/99999999 e/johnd@example.com a/315, Clementi Ave 2, #02-25"
[original: nus-cs2103-AY2021S1/pe-interim#4404]