nus-cs2103-AY2324S2 / pe-dev-response

0 stars 0 forks source link

FIND Feature does not account for the way diseases are inputted #4557

Open nus-se-script opened 2 months ago

nus-se-script commented 2 months ago

Steps to reproduce:

Expected:

Actual:

Screenshots:

image.png

image.png


[original: nus-cs2103-AY2324S2/pe-interim#3901] [original labels: type.FunctionalityBug severity.Medium]

raysonchia commented 2 months ago

Team's Response

Thanks for pointing this out. There are multiple bugs in this bug report:

The result you encountered has little to do with the functionality of the find command but rather the drug allergy validation which has been acknowledged in issue #5249. According to the user guide, the result to not return the patient with drug allergy Penicillin|paracetamol with find d/paracetamol is the desired outcome.

The find behaviour that it only returns matching full words has been documented in the UG: SCR-20240422-poga.png Thus, not performing a substring search is the correct behaviour. This is somewhat a limitation, but a choice had to be made between convenience and efficiency, and the team chose to prioritise efficiency. Furthermore, this situation is only possible as the user has not followed the drug allergy format suggested in the user guide, example commands and sample data where when entering multiple drug allergies, they should be separated with | and spaces.

Drug allergy entry in UG: SCR-20240422-qdsg.png SCR-20240422-qedn.png

As this is an issue caused by an error in user entry and not the functionality of find, we will be rejecting this bug.

Duplicate status (if any):

--