Open nus-se-script opened 3 months ago
Although it might seem like an issue, /p
is a reserved keyword with respect to the command format as stated in the UG. The drug allergy can contain reserved prefix values but need to make sure that it is not preceded by the space at the start as that would be considered a prefix parameter according to the command format. Perhaps an escape character functionality can be implemented in the future releases to allow spaces beforehand. Thus, this can be considered an enhancement and can be seen as NotInScope
--
Steps to reproduce:
add ic/S1974944F n/John Doe p/91234567 e/johndoe@email.com g/M b/11-11-1990 d/Para p/cetamol | Penicillin i/Infectious Diseases
, which reads p/ as a prefix.Expected:
Para p/cetamol
.Actual:
Screenshots:
This is problematic as there are medicine that have similar drug names that uses the same prefix. You can consider supporting this for better convenience and usability for your users. One way you can do is by using a more specific prefix, or by having a warning rather than blocking it.
[original: nus-cs2103-AY2324S2/pe-interim#5071] [original labels: severity.Low type.FeatureFlaw]