forked from AY2324S1-CS2103T-T12-4/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 AY2324S1-CS2103T-T12-4#23 from adammangzijun/Updat…
…e-Docs Update docs
- Loading branch information
Showing
6 changed files
with
107 additions
and
34 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
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 |
---|---|---|
|
@@ -119,22 +119,29 @@ Format: `view` | |
|
||
Shows the detailed information of the patient by clicking. | ||
|
||
### Editing a person : `edit` | ||
|
||
Edits an existing person in the address book. | ||
### Editing detail of a patient : `editdetail` | ||
|
||
Format: `edit INDEX [n/NAME] [p/PHONE] [e/EMAIL] [a/ADDRESS] [t/TAG]…` | ||
Edits an existing person in MedBook. | ||
|
||
Format: `editdetail [patient ID/detail field/updated patient details]` | ||
* Edits the person at the specified `patient ID`. The index refers to the index number shown in the displayed person list. The index **must be a positive integer** 1, 2, 3, … | ||
* The `detail field` must be provided. | ||
* Accepted `detail field` : **name**, **email**, **phone**, **gender**, **age**, **blood**, **allergy**. | ||
* Existing values in the `detail field` will be updated to the `updated patient details` input. | ||
* **Name**: Text (up to 256 characters) | ||
* **Email**: Valid email format | ||
* **Phone**: Number (up to 15 digits) | ||
* **Gender**: M/F | ||
* **Age**: Number (0-120) | ||
* **Blood Type**: One of [A+, A-, B+, B-, AB+, AB-, O+, O-] | ||
* **Allergies**: Text (up to 512 characters) | ||
|
||
* Edits the person at the specified `INDEX`. The index refers to the index number shown in the displayed person list. The index **must be a positive integer** 1, 2, 3, … | ||
* At least one of the optional fields must be provided. | ||
* Existing values will be updated to the input values. | ||
* When editing tags, the existing tags of the person will be removed i.e adding of tags is not cumulative. | ||
* You can remove all the person’s tags by typing `t/` without | ||
specifying any tags after it. | ||
|
||
Examples: | ||
* `edit 1 p/91234567 e/[email protected]` Edits the phone number and email address of the 1st person to be `91234567` and `[email protected]` respectively. | ||
* `edit 2 n/Betsy Crower t/` Edits the name of the 2nd person to be `Betsy Crower` and clears all existing tags. | ||
* `editdetail 1/email/[email protected]` Edits the email address of the 1st person to be `[email protected]`. | ||
* `editdetail 2/phone/92345678` Edits the name of the 2nd person to be `92345678`. | ||
* `editdetail 3/allergy/aspirin` Edits the allergy of the 3rd person to be `aspirin`. | ||
|
||
### Locating persons by name: `find` | ||
|
||
|
@@ -228,13 +235,13 @@ _Details coming soon ..._ | |
|
||
## Command summary | ||
|
||
Action | Format, Examples | ||
-----------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ||
**Add** | `add n/NAME p/PHONE_NUMBER e/EMAIL a/ADDRESS [t/TAG]…` <br> e.g., `add n/James Ho p/22224444 e/[email protected] a/123, Clementi Rd, 1234665 t/friend t/colleague` | ||
**Clear** | `clear` | ||
**Delete** | `delete [patientId]`<br> e.g., `delete 3` | ||
**Edit** | `edit INDEX [n/NAME] [p/PHONE_NUMBER] [e/EMAIL] [a/ADDRESS] [t/TAG]…`<br> e.g.,`edit 2 n/James Lee e/[email protected]` | ||
**Find** | `find KEYWORD [MORE_KEYWORDS]`<br> e.g., `find James Jake` | ||
**Pin** | `pin [patientId]`<br> e.g., `pin 2` | ||
**List** | `list` | ||
**Help** | `help` | ||
| Action | Format, Examples| | ||
|------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------| | ||
| **Add** | `add n/NAME p/PHONE_NUMBER e/EMAIL a/ADDRESS [t/TAG]…` <br> e.g., `add n/James Ho p/22224444 e/[email protected] a/123, Clementi Rd, 1234665 t/friend t/colleague`| | ||
| **List** | `list`| | ||
| **Edit** | `editdetail [patient ID/detail field/updated patient details]`<br> e.g.,`editdetail 1/email/[email protected]`| | ||
| **Find** | `find KEYWORD [MORE_KEYWORDS]`<br> e.g., `find James Jake`| | ||
| **Delete** | `delete [patientId]`<br> e.g., `delete 3`| | ||
| **Pin** | `pin [patientId]`<br> e.g., `pin 2`| | ||
| **Clear** | `clear`| | ||
| **exit** | `exit`| |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 |
---|---|---|
@@ -0,0 +1,20 @@ | ||
--- | ||
layout: default.md | ||
title: "Adam's Project Portfolio Page" | ||
--- | ||
|
||
### Project: MedBook | ||
|
||
Overview: To be added soon | ||
|
||
Contributions: To be added soon | ||
|
||
* **New Feature 1** | ||
|
||
* **New Feature 2** | ||
|
||
* **Project management** | ||
|
||
* **Documentation** | ||
|
||
* **Community** |
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