User Guide
Do you prefer typing information than having to click on multiple things? DoctorWho is for you!
DoctorWho is a desktop app for managing patient information and appointments, 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, DoctorWho can get your patient management tasks done faster than traditional GUI apps.
Can DoctorWho help you?
Yes, if your clinic is still:
- Can DoctorWho help you?
- Quick start
- Command Summary
- Features
-
DoctorWho Operations:
- Adding a patient:
add - Listing all patients :
list - Editing a patient :
edit - Locating patients by name:
find - Deleting a patient :
delete - Adding an appointment :
apt - Listing appointments :
lsapt - Deleting an appointment :
dapt - Listing all appointments :
lsapt - Clearing all entries :
clear - Exiting the program :
exit
- Adding a patient:
- Storage:
- Known issues
- FAQ
- Glossary
Quick start
Don’t worry if you’re not tech-savvy — just follow these steps one by one and you’ll be up and running in no time!
-
First, make sure you have Java
17or above installed on your computer. Not sure if you have it? Open a terminal and typejava -version— if you see a version number of 17 or higher, you’re good to go!
Mac users: Check out this guide to get the exact JDK version you need. -
Next, download the latest
doctorwho.jarfile from here. You’ll find it under the Assets section of the latest release — just click ondoctorwho.jarto download it. -
Move the
doctorwho.jarfile to the folder where you’d like to store your patient data. We recommend creating a brand new empty folder for this (e.g. a folder namedDoctorWhoon your Desktop), so everything stays neat and tidy.
-
Now, let’s launch the app! Open a command terminal in your
DoctorWhofolder:-
Windows: Press
Win + R, typecmd, and hit Enter. - Mac/Linux: Search for Terminal in Spotlight or your app menu.
Then, navigate to your folder. For example, if you placed it on your Desktop in a folder called
DoctorWho, type:cd Desktop/DoctorWho- Finally, run the app with:
java -jar doctorwho.jar

-
Windows: Press
-
DoctorWho will launch with some sample data so you can explore right away — it should look something like this:

-
Type a command in the command box at the top and press Enter to run it. Here are a few to try out:
-
list— Lists all patients. -
add n/John Doe ic/S1234567D dob/01-04-2003 p/98765432 e/johnd@example.com a/John street, block 123, #01-01— Adds a patient namedJohn Doe. -
delete 3— Deletes the 3rd patient in the current list. -
apt 3 d/01-04-2026 09:00 dur/60 note/Follow-up for diabetes review— Schedules an appointment for the 3rd patient. -
lsapt d/12-03-2026— List appointments for 12th March 2026. -
dapt 3— Removes the appointment from the 3rd patient.
-
-
When you’re ready to explore more, check out the Features section for the full command details, or jump to the Command Summary for a quick cheatsheet!
Command Summary
Here is a quick reference list for the commands DoctorWho provides, more detailed information about all of the commands can be found in Features.
| Action | Format, Examples |
|---|---|
| Add |
add n/NAME ic/NRIC dob/DOB p/PHONE_NUMBER e/EMAIL a/ADDRESS [al/ALLERGY] [c/CONDITION]… e.g., add n/James Ho ic/S1234567D dob/01-04-2003 p/22224444 e/jamesho@example.com a/123, Clementi Rd, 1234665 al/dust c/allergic rhinitis
|
| List | list |
| Edit |
edit PATIENT_NUMBER [n/NAME] [ic/NRIC] [dob/DOB] [p/PHONE_NUMBER] [e/EMAIL] [a/ADDRESS] [al/ALLERGY] [c/CONDITION]…e.g., edit 2 n/James Lee e/jameslee@example.com
|
| Find |
find KEYWORD [MORE_KEYWORDS]e.g., find James Jake
|
| Delete |
delete PATIENT_NUMBERe.g., delete 3
|
| Add appointments |
apt PATIENT_NUMBER d/DATETIME dur/DURATION [note/NOTE]e.g., apt 2 d/01-04-2026 09:00 dur/60 note/Follow-up for diabetes review
|
| Delete appointments |
dapt PATIENT_NUMBERe.g., dapt 1
|
| List appointments |
lsapt [d/DATE]e.g., lsapt, lsapt d/14-03-2026
|
| Clear | clear |
| Help | help |
| Exit | exit |
Features
Notes about the command format:
-
Words in
UPPER_CASEare the parameters to be supplied by the user.
e.g. inadd n/NAME,NAMEis a parameter which can be used asadd n/John Doe. -
Items in square brackets are optional.
e.gn/NAME [al/ALLERGY]can be used asn/John Doe al/Aspirinor asn/John Doe. E.gn/NAME [c/CONDITION]can be used asn/Johnny c/High BPor asn/Johnny -
Items with
… after them can be used multiple times including zero times.
e.g.[al/ALLERGY]…can be used as ` ` (i.e. 0 times),al/Penicillin,al/Ibuprofen al/Aspirinetc.] -
Parameters can be in any order.
e.g. if the command specifiesn/NAME p/PHONE_NUMBER,p/PHONE_NUMBER n/NAMEis also acceptable. -
Extraneous parameters for commands that do not take in parameters (such as
help,list,exitandclear) 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.
Viewing help : help
Shows a message explaining how to access the help page.

Format: help
DoctorWho Operations:
Adding a patient: add
Adds a patient to DoctorWho.
Format: add n/NAME ic/NRIC dob/DOB p/PHONE_NUMBER e/EMAIL a/ADDRESS [al/ALLERGY] [c/CONDITION]…
Accepted name formats
DoctorWho currently accepts the following special characters in the patient’s name:
| Character | Valid example |
|---|---|
| Hyphens (-) | Mary-Jane |
| Apostrophes (‘) | O’Brien |
| Commas (,) | Henry, Tan |
However, there are other common special characters used in names that are not yet supported. These are some suggested replacements you can use if you encounter these special characters:
| Character | Invalid example | Suggested replacements (Valid) | Future support |
|---|---|---|---|
| Diacritics | Jäger | Jager | Not planned |
| Slash (/) | Ali s/o Ahmad | Ali so Ahmad Ali SO Ahmad |
Planned |
Examples:
add n/John Doe ic/S1234567D dob/01-04-2003 p/98765432 e/johnd@example.com a/John street, block 123, #01-01add n/Betsy Crowe ic/S2345678H dob/02-04-2003 e/bcrowe@example.com a/Newgate Prison p/1234567 al/Penicillin c/coldadd n/Tim Chal ic/S4567890C dob/03-04-2003 e/betsycrowe@example.com a/Newgate Prison p/1234567 al/Morphine
Listing all patients : list
Shows a list of all patients in DoctorWho.
Format: list
Editing a patient : edit
Edits an existing patient in DoctorWho.
Format: edit PATIENT_NUMBER [n/NAME] [ic/NRIC] [dob/DOB] [p/PHONE] [e/EMAIL] [a/ADDRESS] [al/ALLERGY] [c/CONDITION]…
- Edits the patient at the specified
PATIENT_NUMBER. The index refers to the index number shown in the displayed patient 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 conditions and allergies, the existing ones of the patient will be removed i.e adding is not cumulative.
- You can remove all the patient’s allergies or medical conditions by typing
al/orc/respectively, without specifying anything after it.
Examples:
-
edit 1 p/91234567 e/johndoe@example.comEdits the phone number and email address of the 1st patient to be91234567andjohndoe@example.comrespectively. -
edit 2 n/Betsy Crower al/ c/Edits the name of the 2nd patient to beBetsy Crowerand clears all existing allergies and medical conditions.
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
hanswill matchHans - The order of the keywords does not matter. e.g.
Hans Bowill matchBo Hans - Only the name is searched.
- Only full words will be matched e.g.
Hanwill not matchHans - Persons matching at least one keyword will be returned (i.e.
ORsearch). e.g.Hans Bowill returnHans Gruber,Bo Yang
Examples:
-
find JohnreturnsjohnandJohn Doe -
find alex davidreturnsAlex Yeoh,David Li
Deleting a patient : delete
Deletes the specified patient from DoctorWho.
Format: delete PATIENT_NUMBER
- Deletes the patient at the specified
PATIENT_NUMBER. - The PATIENT_NUMBER must be a positive integer 1, 2, 3, …
Examples:
-
listfollowed bydelete 2deletes the 2nd patient in DoctorWho. -
find Betsyfollowed bydelete 1deletes the 1st patient in the results of thefindcommand.
Adding an appointment : apt
Adds an appointment to the patient identified by the index number used in the displayed patient list. Supply the start date and time, duration and an optional note. Existing appointment will be overwritten by the new appointment.
Format: apt INDEX d/DATETIME dur/DURATION [note/NOTE]
- Creates and adds an appointment for the patient at the specified
INDEX. - The
INDEXmust be a positive integer 1, 2, 3, … - The date and time must be in the format
dd-MM-yyyy HH:mme.g,12-03-2026 14:00refers to 12th March 2026, 14:00. - The duration must be a positive integer in minutes.
- The note is optional.
Examples:
-
apt 1 d/12-03-2026 14:00 dur/30 note/Routine Checkupadds an appointment to the 1st patient, from the top, of the patient list, scheduled for 12th March 2026, at 14:00. A note will be indicated withNote | Routine Checkup
Listing appointments : lsapt
Lists appointments, optionally filtering by a specific appointment date. The appointments are shown in ascending date-time order.
Format: lsapt [d/DATE]
- Shows all appointments if no date is provided.
- If a date is provided, filters and shows appointments only for that specific date.
- The date must be in the format
dd-MM-yyyye.g,12-03-2026refers to 12th March 2026.
Examples:
-
lsapt d/12-03-2026lists appointments scheduled on 12th March 2026. -
lsaptlists all appointments for all patients.
Deleting an appointment : dapt
Deletes the appointment of the patient identified by the index number used in the displayed patient list.
Format: dapt PATIENT_INDEX
- Deletes the appointment for the patient at the specified
PATIENT_INDEX. - The
PATIENT_INDEXrefers to the index number shown in the displayed patient list. - The
PATIENT_INDEXmust be a positive integer 1, 2, 3, …
Examples:
-
listfollowed bydapt 1deletes the appointment for the 1st patient in the displayed patient list.
Listing all appointments : lsapt
Shows all appointments across all patients, sorted by date-time in ascending order, to give a daily schedule view.
Format: lsapt [d/DATE]
- Lists all scheduled appointments when no date is provided.
- If
d/DATEis provided, only appointments on that date will be shown, and listed from earliest to latest. -
DATEmust be in the formatdd-MM-yyyye.g.,14-03-2026refers to 14th March 2026.
Examples:
-
lsaptreturns all appointments across all patients, sorted by date-time ascending. -
lsapt d/14-03-2026returns all appointments on 14th March 2026.
Clearing all entries : clear
Clears all entries from DoctorWho.
Format: clear
Exiting the program : exit
Exits the program.
Format: exit
Storage:
Saving the data
DoctorWho data is saved in the hard disk automatically after any command that changes the data. There is no need to save manually.
Editing the data file
DoctorWho data is saved automatically as a JSON file [JAR file location]/data/DoctorWho.json. Advanced users are
welcome to update data directly by editing that data file.
Furthermore, certain edits can cause the DoctorWho to behave in unexpected ways (e.g., if a value entered is outside of 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 …
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.jsonfile created by the application before running the application again. -
If you minimize the Help Window and then run the
helpcommand (or use theHelpmenu, 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.
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 DoctorWho home folder.
Glossary
- Allergy: A hypersensitivity to a substance that causes the body to react with an immune response.
- CLI: Command Line Interface. A text-based interface where users interact with a program by typing commands.
- Command: An instruction given to a computer program to perform a specific task.
- GUI: Graphical User Interface. A visual-based interface where users interact with a program by interacting with windows, icons and menus.
- Index: A number that refers to the position of a patient in the displayed list.
- Java: The programming language used to implement this application.
- JSON: JavaScript Object Notation. A lightweight, text-based data interchange format, easily parsable by machines.
- Keyword: A word or a phrase that is used to search for a patient.
- Medical Condition: A health problem that requires ongoing management.
- NRIC: National Registration Identity Card. A unique identification number assigned to citizens and permanent residents.
- Parameters: Inputs provided to a command. A command may have zero or more parameters depending on its functionality.
- Patient: A person receiving medical care whose information and appointments are managed within DoctorWho.
- UTF-8: The standard for how Unicode numbers are translated into binary numbers to be stored in the computer.