CS2113-AY1819S1-T12-2 / HealthBook

Health Book - An address book app for health care professionals
https://cs2113-ay1819s1-t12-2.github.io/main/
MIT License
0 stars 5 forks source link

addhist hsds tag does not throw exception #158

Closed nus-pe-script closed 5 years ago

nus-pe-script commented 5 years ago

Describe the bug The UG does not specify what are valid tags after the HSDS

To Reproduce Steps to reproduce the behavior:

  1. enter "addhist 1 hsd/11-11-1991 hsa/iamsick hsc/place hsds/yes"
  2. it is displayed on the ab that is an invalid discharge status

Expected behavior invalid HSDS entered Screenshots image

Additional context Add any other context about the problem here.


Reported by: @bearperson1 Severity: Medium

[original: nusCS2113-AY1819S1/pe-1#308]

xShaivan commented 5 years ago

The invalid discharge status string in each entry has been removed. It has been replaced with a parse exception that shows an error message when an invalid discharge status is used. User guide has also been updated! Thanks for the feedback! This will all be available in v1.4.