forked from AY2324S2-CS2103T-T08-1/tp
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request AY2324S2-CS2103T-T08-1#122 from NatLeong/fix-comma…
…nd-results Fix command results
- Loading branch information
Showing
8 changed files
with
42 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,7 +14,6 @@ | |
import static seedu.address.logic.parser.CliSyntax.PREFIX_SEX; | ||
import static seedu.address.logic.parser.CliSyntax.PREFIX_STATUS; | ||
import static seedu.address.logic.parser.CliSyntax.PREFIX_SYMPTOM; | ||
import static seedu.address.logic.parser.CliSyntax.PREFIX_TAG; | ||
|
||
import seedu.address.commons.util.ToStringBuilder; | ||
import seedu.address.logic.Messages; | ||
|
@@ -28,8 +27,8 @@ | |
public class CreateCommand extends Command { | ||
public static final String COMMAND_WORD = "create"; | ||
|
||
public static final String MESSAGE_USAGE = COMMAND_WORD + ": Creates a patient to the Immunimate System. " | ||
+ "Parameters: " | ||
public static final String MESSAGE_USAGE = COMMAND_WORD + ": Creates a person in Immunimate. " | ||
+ "\nParameters: " | ||
+ PREFIX_NRIC + "NRIC " | ||
+ PREFIX_NAME + "NAME " | ||
+ PREFIX_PHONE + "PHONE " | ||
|
@@ -38,23 +37,19 @@ public class CreateCommand extends Command { | |
+ PREFIX_SEX + "SEX " | ||
+ PREFIX_STATUS + "STATUS " | ||
+ PREFIX_EMAIL + "EMAIL " | ||
+ "[" + PREFIX_TAG + "TAG]...\n" | ||
+ PREFIX_ALLERGIES + "ALLERGIES " | ||
+ PREFIX_BLOODTYPE + "BLOODTYPE " | ||
+ PREFIX_CONDITION + "CONDITION " | ||
+ PREFIX_SYMPTOM + "SYMPTOM " | ||
+ PREFIX_DIAGNOSIS + "DIAGNOSIS " | ||
+ "Example: " + COMMAND_WORD + " " | ||
+ "\nExample: " + COMMAND_WORD + " " | ||
+ PREFIX_NRIC + "S0123456A " | ||
+ PREFIX_NAME + "John Doe " | ||
+ PREFIX_PHONE + "98765432 " | ||
+ PREFIX_EMAIL + "[email protected] " | ||
+ PREFIX_ADDRESS + "311, Clementi Ave 2, #02-25 " | ||
+ PREFIX_DATEOFBIRTH + "1990-01-01 " | ||
+ PREFIX_SEX + "M " | ||
+ PREFIX_STATUS + "PENDING " | ||
+ PREFIX_TAG + "Long term medication " | ||
+ PREFIX_TAG + "High blood pressure "; | ||
+ PREFIX_STATUS + "PENDING "; | ||
|
||
public static final String MESSAGE_SUCCESS = "New patient added ->\n%1$s"; | ||
public static final String MESSAGE_DUPLICATE_PERSON = "This person already exists in the system"; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,10 +2,19 @@ | |
|
||
import static java.util.Objects.requireNonNull; | ||
import static seedu.address.logic.parser.CliSyntax.PREFIX_ADDRESS; | ||
import static seedu.address.logic.parser.CliSyntax.PREFIX_ALLERGIES; | ||
import static seedu.address.logic.parser.CliSyntax.PREFIX_BLOODTYPE; | ||
import static seedu.address.logic.parser.CliSyntax.PREFIX_CONDITION; | ||
import static seedu.address.logic.parser.CliSyntax.PREFIX_COUNTRY; | ||
import static seedu.address.logic.parser.CliSyntax.PREFIX_DATEOFADMISSION; | ||
import static seedu.address.logic.parser.CliSyntax.PREFIX_DATEOFBIRTH; | ||
import static seedu.address.logic.parser.CliSyntax.PREFIX_DIAGNOSIS; | ||
import static seedu.address.logic.parser.CliSyntax.PREFIX_EMAIL; | ||
import static seedu.address.logic.parser.CliSyntax.PREFIX_NAME; | ||
import static seedu.address.logic.parser.CliSyntax.PREFIX_PHONE; | ||
import static seedu.address.logic.parser.CliSyntax.PREFIX_TAG; | ||
import static seedu.address.logic.parser.CliSyntax.PREFIX_SEX; | ||
import static seedu.address.logic.parser.CliSyntax.PREFIX_STATUS; | ||
import static seedu.address.logic.parser.CliSyntax.PREFIX_SYMPTOM; | ||
import static seedu.address.model.Model.PREDICATE_SHOW_ALL_PERSONS; | ||
|
||
import java.util.Collections; | ||
|
@@ -53,10 +62,20 @@ public class UpdateCommand extends Command { | |
+ "Parameters: NRIC " | ||
+ "[" + PREFIX_NAME + "NAME] " | ||
+ "[" + PREFIX_PHONE + "PHONE] " | ||
+ "[" + PREFIX_EMAIL + "EMAIL] " | ||
+ "[" + PREFIX_ADDRESS + "ADDRESS] " | ||
+ "[" + PREFIX_TAG + "TAG]...\n" | ||
+ "Example: " + COMMAND_WORD + " S0123456A " | ||
+ "[" + PREFIX_DATEOFBIRTH + "DATEOFBIRTH] " | ||
+ "[" + PREFIX_SEX + "SEX] " | ||
+ "[" + PREFIX_STATUS + "STATUS] " | ||
+ "[" + PREFIX_EMAIL + "EMAIL] " | ||
+ "[" + PREFIX_COUNTRY + "COUNTRY] " | ||
+ "[" + PREFIX_ALLERGIES + "ALLERGIES] " | ||
+ "[" + PREFIX_BLOODTYPE + "BLOODTYPE] " | ||
+ "[" + PREFIX_EMAIL + "EMAIL] " | ||
+ "[" + PREFIX_CONDITION + "CONDITION] " | ||
+ "[" + PREFIX_DATEOFADMISSION + "DATEOFADMISSION] " | ||
+ "[" + PREFIX_DIAGNOSIS + "DIAGNOSIS] " | ||
+ "[" + PREFIX_SYMPTOM + "SYMPTOM] " | ||
+ "\nExample: " + COMMAND_WORD + " S0123456A " | ||
+ PREFIX_PHONE + "91234567 " | ||
+ PREFIX_EMAIL + "[email protected]"; | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters