Skip to content

Commit

Permalink
Merge pull request #138 from SeanChinJunKai/Branch-IncorrectCommandFo…
Browse files Browse the repository at this point in the history
…rmat

Fix command format inconsistencies in UG and Add and Edit Command
  • Loading branch information
Creationsv2 authored Mar 30, 2023
2 parents 486733d + f841523 commit 1c6e767
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions docs/UserGuide.md
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ Adds a person to the patient records.
<div markdown="span" class="alert alert-info">:information_source:**Note:** Do take note which patient details are
optional

Format: `add i/NRIC n/NAME dob/DATE OF BIRTH p/PHONE a/ADDRESS d/DRUG ALLERGIES g/GENDER ad/DOCTOR [e/EMAIL] [t/TAG]…​ [m/MEDICINE]…​`
Format: `add i/NRIC n/NAME dob/DATE OF BIRTH p/PHONE a/ADDRESS d/DRUGALLERGIES g/GENDER ad/DOCTOR [e/EMAIL] [t/TAG]…​ [m/MEDICINE]…​`

**Tip**:

Expand All @@ -157,7 +157,7 @@ Edits an existing patient in the patient records.
<div markdown="span" class="alert alert-info">:information_source:**Note:** Only include the prefixes for the specific
patient detail you would like to edit.

Format: `edit INDEX [i/NRIC] [n/NAME] [dob/DATE OF BIRTH] [p/PHONE] [e/EMAIL] [a/ADDRESS] [d/DRUGALLERGY] [g/GENDER] [ad/DOCTOR] [t/TAG]…​ [m/MEDICINE]…​`
Format: `edit INDEX [i/NRIC] [n/NAME] [dob/DATE OF BIRTH] [p/PHONE] [e/EMAIL] [a/ADDRESS] [d/DRUGALLERGIES] [g/GENDER] [ad/DOCTOR] [t/TAG]…​ [m/MEDICINE]…​`


* You can remove all the patient’s tags/medicine by typing t/ or m/ respectively, without specifying any tags/medicine
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/seedu/address/logic/commands/AddCommand.java
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public class AddCommand extends Command {
+ PREFIX_PHONE + "PHONE "
+ PREFIX_EMAIL + "EMAIL "
+ PREFIX_ADDRESS + "ADDRESS "
+ PREFIX_DRUG_ALLERGY + "DRUG ALLERGIES "
+ PREFIX_DRUG_ALLERGY + "DRUGALLERGIES "
+ PREFIX_GENDER + "GENDER "
+ PREFIX_DOCTOR + "DOCTOR "
+ "[" + PREFIX_TAG + "TAG]..."
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ public class EditCommand extends Command {
+ "[" + PREFIX_PHONE + "PHONE] "
+ "[" + PREFIX_EMAIL + "EMAIL] "
+ "[" + PREFIX_ADDRESS + "ADDRESS] "
+ "[" + PREFIX_DRUG_ALLERGY + "ADDRESS] "
+ "[" + PREFIX_DRUG_ALLERGY + "DRUGALLERGIES] "
+ "[" + PREFIX_GENDER + "GENDER] "
+ "[" + PREFIX_DOCTOR + "DOCTOR] "
+ "[" + PREFIX_TAG + "TAG]...\n"
Expand Down

0 comments on commit 1c6e767

Please sign in to comment.