nus-cs2103-AY2021S1 / pe-dev-response

0 stars 0 forks source link

Not possible to have duplicate names with same birthday #4587

Open nus-pe-bot opened 3 years ago

nus-pe-bot commented 3 years ago

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"

image.png


[original: nus-cs2103-AY2021S1/pe-interim#4404]

soaza commented 3 years ago

Team's Response

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.

Duplicate status (if any):

--