From 5521adb6cd5695b75eeadd842fc550e694bdca2d Mon Sep 17 00:00:00 2001 From: Alexander Setyawan Date: Wed, 10 Apr 2024 01:47:09 +0800 Subject: [PATCH] Fix cluster command error message and some of user guide --- docs/UserGuide.md | 8 ++++---- .../java/seedu/address/logic/commands/ClusterCommand.java | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/docs/UserGuide.md b/docs/UserGuide.md index efdbeb4c86c..62f0210bc6f 100644 --- a/docs/UserGuide.md +++ b/docs/UserGuide.md @@ -163,7 +163,7 @@ Format: `find con/[CONDITION], [CONDITION], [CONDITION], ...` * Only the condition is searched. * Partial words will be matched e.g. `Cov` will match `Covid` * Patients matching at least one keyword will be returned (i.e. `OR` search). - e.g. `Covid Dengue` will return patients with address containing `Covid` or `Dengue`. + e.g. `Covid Dengue` will return patients with address containing `Covid` or `Dengue` * Conditions must be separated by commas, and whitespaces before and after each condition will be ignored Examples: @@ -213,7 +213,7 @@ Example: ### Cluster finding : `cluster` -Finds cluster in location specified. +Provided an integer, location, and illness, returns whether or not the number of people unwell with that illness (diagnosis in profile) in that area is at least that integer, and lists those people. Format: `cluster [CLUSTER SIZE] a/[LOCATION] d/[DIAGNOSIS]` @@ -224,7 +224,7 @@ Format: `cluster [CLUSTER SIZE] a/[LOCATION] d/[DIAGNOSIS]` * Partial words will be matched e.g. `Clem` will match `Clementi`, `deng` will match `dengue` Example: -* `cluster 3 a/Serangoon d/dengue` finds dengue clusters of at least 3 patients in the Serangoon vicinity. +* `cluster 3 a/Serangoon d/dengue` finds dengue clusters of at least 3 in locations with the substring "Serangoon" ### Clearing all entries : `clear` @@ -287,7 +287,7 @@ Furthermore, certain edits can cause ImmuniMate to behave in unexpected ways (e. | **Delete Information** | `deleteinfo `
e.g., `deleteinfo S1234567A e/` | | **Add Visit** | `addvisit ic/ dov/ sym/ d/ st/`
e.g., `addvisit ic/S1234567A dov/2024-01-01 sym/Cough d/Covid st/UNWELL` | | **Check** | `check `
e.g., `check S1234567A` | -| **Find Cluster** | `cluster a/ d/diagnosis`
e.g. `cluster a/Serangoon d/dengue` | +| **Find Cluster** | `cluster a/ d/diagnosis`
e.g. `cluster 3 a/Serangoon d/dengue` | | **Clear** | `clear` | | **List** | `list` | | **Help** | `help` | diff --git a/src/main/java/seedu/address/logic/commands/ClusterCommand.java b/src/main/java/seedu/address/logic/commands/ClusterCommand.java index 6e50c5b5f2a..2580af6c5e2 100644 --- a/src/main/java/seedu/address/logic/commands/ClusterCommand.java +++ b/src/main/java/seedu/address/logic/commands/ClusterCommand.java @@ -18,7 +18,7 @@ public class ClusterCommand extends Command { public static final String COMMAND_WORD = "cluster"; public static final String MESSAGE_USAGE = COMMAND_WORD + ":\nDetects if there is a cluster of the size given," - + " at the location given, of the disease given, and shows the details of all there with the disease." + + " at the location given, of the disease given, and shows the details of all there with the disease " + "by the respective NRIC in the displayed person list. " + "Existing values will be overwritten by the input values.\n" + "Parameters: [CLUSTER SIZE] "