Murphy’s List is a desktop app for managing patient contact info for institutes providing palliative care, optimized for use via a Command Line Interface (CLI) while still having the benefits of a Graphical User Interface (GUI). If you can type fast, Murphy’s List can get your healthcare administrative tasks done faster than other traditional GUI apps.
Table of Contents
Quick start
-
Ensure you have Java
17
or above installed in your Computer. -
Download the latest
.jar
file from here. -
Copy the file to the folder you want to use as the home folder for your AddressBook.
-
Open a command terminal,
cd
into the folder you put the jar file in, and use thejava -jar addressbook.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/johnd@example.com i/S1234567A a/John street, block 123, #01-01
: Adds a patient profile of a patient namedJohn Doe
to the Address Book. -
delete S1231231D
: Deletes the patient profile of the patient withNRIC S1231231D
. -
clear
: Deletes all patient profiles in the database. -
exit
: Exits the app.
-
-
Refer to the Features below for details of each command.
Features
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.g.n/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 MUST be in order unless specified otherwise.
- Extraneous parameters for commands that do not take in parameters (such as
help
,list
,schedule
,exit
andclear
) will be ignored.
e.g. if the command specifieshelp 123
, it will be interpreted ashelp
.
- Extraneous parameters for commands that do not take in parameters (such as
-
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.
Viewing help : help
Displays a list of accepted commands.
Format: help
Adding a patient profile : add
Adds a patient profile to the database.
Format: add n/NAME p/PHONE_NUMBER e/EMAIL i/NRIC a/ADDRESS [t/TAG]…
Examples:
add n/John Doe p/98765432 e/johnd@example.com i/S1234567A a/John street, block 123, #01-01
add n/Betsy Crowe p/24681357 e/betsycrowe@example.com i/T1234567D a/Newgate Prison t/criminal t/friend
Adding a remark to a patient profile : remark
Adds a remark to a specified patient profile.
Format: remark NRIC r/REMARK
Examples:
remark S1234567A r/allergic to dogs
remark T1231231D r/keep away from flashing lights
Adding an appointment : appointment
Adds the appointment date (in format DD-MM-YYYY HH:MM) of a patient to the patient profile.
Format: appointment NRIC app/DD-MM-YYYY HH:MM
Listing all patient profiles : list
Shows a list of all patient profiles in the database.
Format: list
Listing profiles by schedule : schedule
Shows a list of all patient profiles in the database, sorted by appointment date.
Format: schedule
Editing a patient profile : edit
Edits the details of the patient identified by the index number used in the displayed patient profile list. Existing information will be overwritten by the input values
Format: edit NRIC [n/NAME] [p/PHONE] [e/EMAIL] [i/NRIC] [a/ADDRESS] [t/TAG]…
- Edits the patient profile with the specified
NRIC
. - 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 patient will be removed i.e. adding of tags is not cumulative.
- You can remove all the patient’s tags by typing
t/
without specifying any tags after it.
Examples:
-
edit S1234567A p/91234567 e/johndoe@example.com
Edits the phone number and email address of the patient withNRIC: S1234567A
to be91234567
andjohndoe@example.com
respectively. -
edit S9876543D n/Betsy Crower t/
Edits the name of the patient with specifiedNRIC: S9876543D
displayed to beBetsy Crower
and clears all existing tags.
Locating patients by name: find
Finds patients whose names contain any of the given keywords.
Format: find KEYWORD [MORE_KEYWORDS]
- The search is case-insensitive. e.g.
hans
will matchHans
- The order of the keywords does not matter. e.g.
Hans Bo
will matchBo Hans
- Only the name is searched.
- Only full words will be matched e.g.
Han
will not matchHans
- Profiles matching at least one keyword will be returned (i.e.
OR
search). e.g.Hans Bo
will returnHans Gruber
,Bo Yang
Examples:
-
find John
returnsjohn
andJohn Doe
-
find alex david
returnsAlex Yeoh
,David Li
Logging patient information : log
Logs information to a patient’s profile for tracking patient activity and condition.
Format: log NRIC DD-MM-YYYY HH:MM INFO
- Logs the information to the patient with the specified
NRIC
. - Date and time inputs refer to log date and time.
- Logged information must be non-empty.
- Note that when the View Window is opened when adding log entries, the window will not display the new log entries until the view command is executed by the user again.
Examples:
-
log S1234567A 25-12-2024 14:30 Patient has been discharged
logs the informationPatient has been discharged
to the patient withNRIC S1234567A
at25-12-2024 14:30
.
Viewing patient information : view
- Views full information of the patient with the specified
NRIC
not displayed on the Main Window (eg. Patient logs).
Format: view NRIC
Deleting a patient profile : delete
Deletes the specified patient profile from the database.
Format: delete NRIC
- Deletes the patient with the specified
NRIC
.
Examples:
-
delete S1234567A
deletes the patient profile of the patient withNRIC S1234567A
.
Sort list of patients: sort
Sorts the list of patients based on the specified criteria.
Format: sort [name | appointment]
Examples:
-
sort name
sorts the list of patients in alphabetical order by their names. -
sort appointment
sorts the list of patients by their upcoming appointment dates in chronological order.
Notes
- If the list is already sorted by the specified criteria, the command will maintain the current order.
- Sorting by
appointment
will only consider patients with scheduled appointments. Patients without appointments will appear at the end of the list.
Clearing all entries : clear
Clears all entries from the database.
Format: clear
Exiting the program : exit
Exits the program.
Format: exit
Saving the data
Murphy’s List data are saved in the hard disk automatically after any command that changes the data. There is no need to save manually.
Editing the data file
Murphy’s List data are saved automatically as a JSON file [JAR file location]/data/addressbook.json
. Advanced users are welcome to update data directly by editing that data file.
Furthermore, certain edits can cause the AddressBook to behave in unexpected ways (e.g., if a value entered is outside the acceptable range). Therefore, edit the data file only if you are confident that you can update it correctly.
Archiving data files [coming in v2.0]
Details coming soon …
FAQ
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 Murphy’s List home folder.
Q: What should I do if the application does not start?
A: Ensure you have Java 17
or above installed in your Computer. If the problem persists, contact the developers.
You can check your Java version by running java -version
in the command terminal.
Q: How do I recover data if I accidentally delete a patient profile?
A: Unfortunately, there is no built-in undo feature for deleted data. It is recommended to back up your data by making a copy of the data file periodically.
——————————————————————————————————————–
Known issues
-
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. -
If you minimize the Help Window and then run the
help
command (or use theHelp
menu, or the keyboard shortcutF1
) again, the original Help Window will remain minimized, and no new Help Window will appear. The remedy is to manually restore the minimized Help Window.
Command summary
Action | Format, Examples | |
---|---|---|
Add |
add n/NAME p/PHONE_NUMBER e/EMAIL i/NRIC a/ADDRESS [t/TAG]… e.g., add n/Betsy Crowe p/24681357 e/betsycrowe@example.com i/T1234567D a/Newgate Prison t/criminal t/friend
|
|
Add Remark |
remark NRIC r/REMARK e.g., remark S1231231D r/allergic to seafood
|
|
Add Appointment |
appointment NRIC app/DD-MM-YYYY HH:MM e.g., appointment S1234567A app/25-12-2024 14:30
|
|
Clear | clear |
|
Delete |
delete NRIC e.g., delete S1234567A
|
|
Edit |
edit NRIC [n/NAME] [p/PHONE] [e/EMAIL] [i/NRIC] [a/ADDRESS] [t/TAG]… e.g., edit 2 n/James Lee e/jameslee@example.com
|
|
Find |
find KEYWORD [MORE_KEYWORDS] e.g., find James Jake
|
|
List | list |
|
Schedule | schedule |
|
Log |
log NRIC DD-MM-YYYY HH:MM INFO(non-empty) e.g., log S1234567A 25-12-2024 14:30 Patient has been discharged
|
|
View | view |
|
Help | help |
|
Exit | exit |