Skip to content

Commit

Permalink
Add use cases for DG for medical entries and find
Browse files Browse the repository at this point in the history
  • Loading branch information
didymental committed Nov 8, 2021
1 parent 3d19858 commit b9e1b04
Show file tree
Hide file tree
Showing 2 changed files with 72 additions and 4 deletions.
70 changes: 68 additions & 2 deletions docs/DeveloperGuide.md
Original file line number Diff line number Diff line change
Expand Up @@ -718,7 +718,7 @@ Priorities: High (must have) - `* * *`, Medium (nice to have) - `* *`, Low (unli

**Extensions**

* 1a. Necessary details of patient are absent (name, NRIC).
* 1a. Necessary details of patient are absent (name, address, phone number).

* 1a1. `Doc'it` shows an error message.

Expand Down Expand Up @@ -842,7 +842,73 @@ Priorities: High (must have) - `* * *`, Medium (nice to have) - `* *`, Low (unli

Use case ends.

**Use case: UC09 - Exit program**
**Use case: UC09 - Add a Medical Entry to Patient**

**MSS**

1. `Doc'it` displays all patients.
2. User requests to add a medical entry to a specified patient.
3. `Doc'it` adds the medical entry and records the date of entry.

Use case ends.

**Extensions**

* 2a. The given index is invalid.

* 2a1. `Doc'it` shows an error message.

Use case resumes at step 1.

**Use case: UC10 - Delete a Medical Entry from a Patient**

**MSS**

1. `Doc'it` displays all patients.
2. User requests to delete a specified medical entry from a specified patient.
3. `Doc'it` deletes the specified medical entry from the patient.

Use case ends.

**Extensions**

* 2a. The given index specifying the medical entry is invalid.

* 2a1. `Doc'it` shows an error message.

Use case resumes at step 1.

* 2b. The given index specifying the patient is invalid.

* 2b1. `Doc'it` shows an error message.

Use case resumes at step 1.

* 2c. The patient specified has an empty medical history.

* 2c1. `Doc'it` shows an error message.

Use case resumes at step 1.

**Use case: UC11 - Find patient**

**MSS**

1. `Doc'it` displays all patients.
2. User requests to find patients whose names or medical histories match the given set of keywords.
3. `Doc'it` lists a filtered list of patients that satisfy the keywords given by the user.

Use case ends.

**Extensions**

* 2a. No patient has a name or medical history that matches the user's keywords.

* 2a1. `Doc'it` shows an error message.

Use case resumes at step 1.

**Use case: UC12 - Exit program**

**MSS**

Expand Down
6 changes: 4 additions & 2 deletions docs/team/didymental.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,10 @@ Given below are my contributions to the project:
* Added implementation details of the `MedicalHistory` class, `Add Medical Entry` feature, `Delete Medical Entry` feature. [\#282](https://github.com/AY2122S1-CS2103-W14-1/tp/pull/282)
* Drew the UML class diagram which captures the associations between `MedicalHistory`, `MedicalEntry` and `Patient` classes. [\#304](https://github.com/AY2122S1-CS2103-W14-1/tp/pull/304)
* Drew the sequence and activity diagram which captures the associations between `Logic` and `Model` components for `AddMedicalEntry`, `DeleteMedicalEntry` features [\#282](https://github.com/AY2122S1-CS2103-W14-1/tp/pull/282), [\#304](https://github.com/AY2122S1-CS2103-W14-1/tp/pull/304), [\#321](https://github.com/AY2122S1-CS2103-W14-1/tp/pull/321)
* Wrote 8 use cases [\#38](https://github.com/AY2122S1-CS2103-W14-1/tp/pull/38)
* Added manual testing test cases for Adding a Patient, Deleting a Patient, Adding a Medical Entry, Deleting a Medical Entry from patient with non-empty medical history, Deleting a Medical Entry from patient with empty medical history [\#321](https://github.com/AY2122S1-CS2103-W14-1/tp/pull/321)
* Wrote 8 initial use cases [\#38](https://github.com/AY2122S1-CS2103-W14-1/tp/pull/38),
* Updated previous use cases and added 3 new use cases [\#38](https://github.com/AY2122S1-CS2103-W14-1/tp/pull/38), [\#321](https://github.com/AY2122S1-CS2103-W14-1/tp/pull/321)
* Added manual testing test cases for Adding a Patient, Deleting a Patient, Adding a Medical Entry, Deleting a Medical Entry from patient with non-empty medical history, Deleting a Medical Entry from patient with empty medical history [\#321](https://github.com/AY2122S1-CS2103-W14-1/tp/pull/321)
* Updated target user profile and value proposition. [\#321](https://github.com/AY2122S1-CS2103-W14-1/tp/pull/321)
- **Community**:
* PRs reviewed (with non-trivial review comments): [\#71](https://github.com/AY2122S1-CS2103-W14-1/tp/pull/71), [\#29](https://github.com/AY2122S1-CS2103-W14-1/tp/pull/29), [\#18](https://github.com/AY2122S1-CS2103-W14-1/tp/pull/18), [\#61](https://github.com/AY2122S1-CS2103-W14-1/tp/pull/61)
* Contributed to forum discussions (examples: [1](https://github.com/nus-cs2103-AY2122S1/forum/issues/237), [2](https://github.com/nus-cs2103-AY2122S1/forum/issues/306))
Expand Down

0 comments on commit b9e1b04

Please sign in to comment.