Skip to content

Commit

Permalink
feat: add sickness enhancmenet
Browse files Browse the repository at this point in the history
  • Loading branch information
jayjay19630 committed Nov 12, 2024
1 parent 0b9dced commit f84cff1
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions docs/DeveloperGuide.md
Original file line number Diff line number Diff line change
Expand Up @@ -1130,11 +1130,17 @@ Team size: 5
* **Expected Output:** The result display box shows `Invalid time format. Please enter a valid time between 00:00 and 23:59.`

6. **Update patient name in appointment when patient's name is edited**
* **Flaw:** When users edit a `person` with an appointment, the appointment's patient name still refers to the old name.
* **Flaw:** When users edit a `person` with a new name, his/her appointments still refer to the old name.
* **Enhancement:** During the EditPersonCommand, also edit any appointments with this patient to point to the new Person object.
* **Sample Input:** Suppose there is a person indexed 1 named John. Enter `edit person 1 n/Jonathan`.
* **Sample Input:** Suppose there is a person indexed 1 named John. Execute `edit person 1 n/Jonathan`.
* **Expected Output:** Any appointments with John should now refer to Jonathan.

7. **You can only add appointments without sickness or medicine, but not edit them**
* **Flaw:** When users edit an `appointment` such that sickness or medicine is null, the GUI invalidates this input even though these fields are optional.
* **Enhancement:** Change input validation for sickness and medicine to allow for null values.
* **Sample Input:** `edit appt 1 s/ m/`
* **Expected Output:** Appointment indexed 1 should have sickness and medicine shown as null

<br>

--------------------------------------------------------------------------------------------------------------------
Expand Down

0 comments on commit f84cff1

Please sign in to comment.