layout | title | pageNav |
---|---|---|
default.md |
User Guide |
3 |
Medbook is a desktop app for managing patient details and medical records, optimized for use via a Line Interface (CLI) while still having the benefits of a Graphical User Interface (GUI). If you can type fast, MedBook can get your contact management tasks done faster than traditional GUI apps.
-
Ensure you have Java
11
or above installed in your Computer. -
Download the latest
medbook.jar
from here. -
Copy the file to the folder you want to use as the home folder for your MedBook.
-
Open a command terminal,
cd
into the folder you put the jar file in, and use thejava -jar medbook.jar
command to run the application.
A GUI similar to the below should appear in a few seconds. Note how the app contains some sample data.
-
Type the command in the command box and press Enter to execute it. e.g. typing
help
and pressing Enter will open the help window.
Some example commands you can try:-
list
: Lists all contacts. -
add n/John Doe p/98765432 e/[email protected] a/John street, block 123, #01-01
: Adds a contact namedJohn Doe
to the MedBook. -
delete 3
: Deletes the 3rd contact shown in the current list. -
clear
: Deletes all contacts. -
exit
: Exits the app.
-
-
Refer to the Features below for details of each command.
Notes about the command format:
-
Words in
UPPER_CASE
are the parameters to be supplied by the user.
e.g. inadd n/NAME
,NAME
is a parameter which can be used asadd n/John Doe
. -
Items in square brackets are optional.
e.gn/NAME [t/TAG]
can be used asn/John Doe t/friend
or asn/John Doe
. -
Items with
…
after them can be used multiple times including zero times.
e.g.[t/TAG]…
can be used ast/friend
,t/friend t/family
etc. -
Parameters can be in any order.
e.g. if the command specifiesn/NAME p/PHONE_NUMBER
,p/PHONE_NUMBER n/NAME
is also acceptable. -
Extraneous parameters for commands that do not take in parameters (such as
help
,list
,exit
andclear
) will be ignored.
e.g. if the command specifieshelp 123
, it will be interpreted ashelp
. -
If you are using a PDF version of this document, be careful when copying and pasting commands that span multiple lines as space characters surrounding line-breaks may be omitted when copied over to the application.
Shows a message explaning how to access the help page.
Format: help
Adds a patient's contact and medical details.
Command Format: addpatient [name/email/phone/gender/age/blood type/allergies]
Examples:
addpatient John Doe/[email protected]/12345678/M/26/AB+/Penicillin
Expected Outputs on Success
- GUI: Contact details added to the respective patient's record.
- Message: Patient details added successfully.
Expected Output on Failure
- Message: Failed to add details. Please check the command format and try again.
Adds a new patient's medical records to the app.
Command Format: addrecord [id/date/condition(s)]
Examples:
addrecord 3/18-09-2023 1800/Fever
Expected outputs on success:
- GUI: A new entry appearing in the patient list.
- Messages: "Patient record added successfully."
Expected outputs on failure:
- Messages: "Failed to add patient record. Please check the command format and try again."
- Messages: “Failed to add patient record. The patient does not exist”
Shows a list of all patients in the Medbook.
Format: list
Shows the detailed information of the patient by clicking.
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 theupdated 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)
Examples:
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 be92345678
.editdetail 3/allergy/aspirin
Edits the allergy of the 3rd person to beaspirin
.
In MedBook, the Search functionality streamlines the process of finding patients based on specific keywords. Simply enter the keyword, and MedBook will display a list of patients matching your search criteria. If no matches are found, the system will provide feedback, allowing you to refine your search for better results.
Format: search [Keyword]
- The search is case-insensitive. e.g
Penicillin
will matchpenicillin
- A patient's name and details will be searched.
- Persons matching at least one keyword will be returned (i.e.
OR
search). e.g.arm fracture
will returnburnt arm
,leg fracture
Examples:
search Penicillin
returnsPenicillin
Deletes the specified patient from the medbook.
Format: delete [patientId]
- Deletes the patient at the specified
patientId
. - The patientId refers to the unique patient id shown in the displayed patient list.
- The id must be a positive integer 1, 2, 3, …
Examples:
delete 2
deletes the patient with the id of2
in the medbook.
Pins the specified patient to the top of the patient list.
Format: pin [patientId]
- Pins the patient at the specified
patientId
to the top of the patient list. - The pinned patient will always be visible on screen at the top of the patient list.
- The patientId refers to the unique patient id shown in the displayed patient list.
- The id must be a positive integer 1, 2, 3, …
Examples:
pin 2
pin the patient with the id of2
in the medbook to the top of the patient list.
Clears all entries from the medbook.
Format: clear
Exits the program.
Format: exit
MedBook data are saved in the hard disk automatically after any command that changes the data. There is no need to save manually.
MedBook data are saved automatically as a JSON file [JAR file location]/data/medbook.json
. Advanced users are welcome to update data directly by editing that data file.
Caution: If your changes to the data file makes its format invalid, MedBook will discard all data and start with an empty data file at the next run. Hence, it is recommended to take a backup of the file before editing it.
Details coming soon ...
Q: How do I transfer my data to another Computer?
A: Install the app in the other computer and overwrite the empty data file it creates with the file that contains the data of your previous MedBook home folder.
- When using multiple screens, if you move the application to a secondary screen, and later switch to using only the primary screen, the GUI will open off-screen. The remedy is to delete the
preferences.json
file created by the application before running the application again.
Action | Format, Examples |
---|---|
Add | add n/NAME p/PHONE_NUMBER e/EMAIL a/ADDRESS [t/TAG]… 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] e.g., editdetail 1/email/[email protected] |
search | search KEYWORDS] e.g., find James Jake |
Delete | delete [patientId] e.g., delete 3 |
Pin | pin [patientId] e.g., pin 2 |
Clear | clear |
exit | exit |