Skip to content

Commit 9a6fb1c

Browse files
authored
Merge pull request AY2324S2-CS2103T-T08-1#264 from laney0808/fix-icon
Update DG
2 parents 2847c12 + ed99738 commit 9a6fb1c

File tree

1 file changed

+22
-2
lines changed

1 file changed

+22
-2
lines changed

docs/DeveloperGuide.md

Lines changed: 22 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -488,16 +488,17 @@ Priorities: High (must have) - `* * *`, Medium (nice to have) - `* *`, Low (unli
488488
| `*` | Healthcare Worker | hide private contact details | minimize chance of someone else seeing them by accident |
489489
| `*` | Healthcare Worker | be able to resolve duplicate information | correct wrong inputs |
490490
| `*` | Healthcare Worker | see the close contacts of a patient | see the links between infected patients |
491+
491492
### Use cases
492493

493494
(For all use cases below, the **IMS** is the `ImmuniMate system` and the **Healthcare worker** is the `user`, unless specified otherwise)
494495

495496
**Use Case: UC01 - Create Patient Profile**
496497

497498
- **Actor:** Healthcare Worker
498-
- **Description:** Healthcare worker creates a new patient profile in the ImmuniMate Address Book System.
499+
- **Description:** Healthcare worker creates a new patient profile in the IMS.
499500
- **Preconditions:** Healthcare worker has logged into the system.
500-
- **Guarantees:** New patient profile is successfully created in the ImmuniMate Address Book System.
501+
- **Guarantees:** New patient profile is successfully created in the IMS.
501502
- **MSS:**
502503
1. Healthcare worker choose to create a new patient profile.
503504
2. IMS requests the necessary details for the new patient profile (name, NRIC, date of birth, sex, phone number, address, email, country of nationality, date of admission, blood type, allergies).
@@ -624,6 +625,8 @@ Priorities: High (must have) - `* * *`, Medium (nice to have) - `* *`, Low (unli
624625
- 2a2. Healthcare worker enters new NRIC.
625626
- Steps 2a1-2a2 are repeated until the data entered are correct or Healthcare worker cancels the action. Use case resumes from step 3.
626627

628+
---
629+
627630
**Use Case: UC06 - Delete Patient Information**
628631

629632
- **Actor:** Healthcare Worker
@@ -914,6 +917,7 @@ testers are expected to do more *exploratory* testing.
914917
1. The person with NRIC `S1234567A` is already created in the system with a `create` command.
915918
1. Test case: `update S1234567A a/35 Bishan Road, #10-40 con/myopia ic/S1234568A`<br>
916919
Expected: The person's address is updated to `35 Bishan Road, #10-40` and condition is updated to `myopia`. The NRIC is not updated.
920+
917921
### Finding a person
918922

919923
1. Finding a person by name, condition or address
@@ -952,6 +956,22 @@ testers are expected to do more *exploratory* testing.
952956
Expected: The person's name is not deleted. The result panel shows an error message, indicating that the name field cannot be deleted.
953957

954958
### Adding a person's visit
959+
1. Adding a person's visit while all persons are being shown
960+
1. Prerequisites:
961+
1. List all persons using the `list` command. Multiple persons in the list.
962+
1. The person with NRIC `S1234567A` is already created in the system with a `create` command.
963+
1. The person with NRIC `S9876543N` does not exist in the system.
964+
1. The visit with date `2021-09-01` and with NRIC `S1234567A` is already created in the system.
965+
1. The visit with date `2021-09-03` and with NRIC `S9876543N` does not exist in the system.
966+
1. Test case: `addvisit S1234567A d/2021-09-03 dia/fever sym/cough st/PENDING`<br>
967+
Expected: The person's visit is added to the system. The result panel shows the details of the added visit.
968+
1. Test case: `addvisit S9876543N d/2021-09-03 dia/fever sym/cough st/PENDING`<br>
969+
Expected: The person's visit is not added. The result panel shows an error message, indicating that the person does not exist in the system.
970+
1. Test case: `addvisit S1234567A d/2021-09-01 dia/fever sym/cough st/PENDING`<br>
971+
Expected: The person's visit is not added. The result panel shows an error message, indicating that the visit already exists in the system.
972+
1. Other incorrect addvisit commands to try: `addvisit`, `addvisit 0`, `...` (where the input for NRIC field does not follow format for NRIC)<br>
973+
Expected: Similar to previous. The result panel shows an error message, indicating that the command format is invalid.
974+
955975

956976
### Checking a person's visit history
957977
1. Checking a person while all persons are being shown.

0 commit comments

Comments
 (0)