From b9e1b04198eea3adf6b1f1040b059ccfe76dd308 Mon Sep 17 00:00:00 2001 From: Didymus Date: Mon, 8 Nov 2021 19:22:23 +0800 Subject: [PATCH] Add use cases for DG for medical entries and find --- docs/DeveloperGuide.md | 70 +++++++++++++++++++++++++++++++++++++++-- docs/team/didymental.md | 6 ++-- 2 files changed, 72 insertions(+), 4 deletions(-) diff --git a/docs/DeveloperGuide.md b/docs/DeveloperGuide.md index 2ad40d05462..3483fe4f223 100644 --- a/docs/DeveloperGuide.md +++ b/docs/DeveloperGuide.md @@ -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. @@ -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** diff --git a/docs/team/didymental.md b/docs/team/didymental.md index 471edab130c..a336f2b857d 100644 --- a/docs/team/didymental.md +++ b/docs/team/didymental.md @@ -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))