tp

View project on GitHub

HappyPills - User Guide

By: Team CS2113T-T12-2 Since March 2020 License: MIT

Table of Content

← Back to Main
→ Go to Medical Records

3.2. General Patient Information

HappyPills can help users to manage their patients’ information easily.

3.2.1. Add Patient: add patient

This feature allows you to add more patients into the existing patients’ list.

HappyPills will prompt you if there are any missing fields. Instead of having to type the whole command again, you will only need to fill in the couple of fields you missed. You can also add a new patient with the specified parameters in any order.

Format:
add patient /ic NRIC /n NAME /p PHONE_NUMBER /dob DOB /b BLOOD_TYPE /a[ALLERGIES] /rm[REMARKS]

Example:

add patient /ic S9876543F /n Eve /dob 22/05/1999 /b O-

Expected output:

MissingInput

HappyPills will prompt you for any missing inputs that are necessary.

Enter /p 91265432 to add the missing field.

Expected output:

CheckConfirmAdd

Entering n will abort the command and HappyPills will not save the patients' information.

Enter y to confirm.

Expected output:

SuccessfulAdd

↑ Return to Top

3.2.2. Edit Patient: edit patient

Edit information of the patient with the specified NRIC.

Format:
edit patient NRIC /n<NAME> 
                  /p<PHONE_NUMBER> 
                  /dob<DOB> 
                  /b<BLOOD_TYPE> 
                  /a<ALLERGIES> 
                  /rm<REMARKS>
You can only edit one field at a time. Those fields that can be edited are in <>. There should no spaces between the tag and the edited information.

Example:

edit patient S9876543F /p99112233

Expected output:

editPatientOutput

NRIC cannot be edited because it is used to uniquely identify the patient.

↑ Return to Top

3.2.3. Delete Patient: delete patient

Delete a patient as specified by the NRIC.

Format:
delete patient NRIC

Example:

delete patient S1234567F

Expected output:

confirmDelete

HappyPills will prompt for confirmation before deleting patient in the patient list.

Enter y to confirm.

Expected output:

SuccessfulDelete

Upon successful deletion, patient's information will not be able to be retrieved again.

↑ Return to Top

3.2.4. List All Patients: list patient

Displays all the patients in the patient list.

Format:
list patient

Expected output:

ListPatient

↑ Return to Top

3.2.5. Retrieve a Patient’s Information: get patient

Retrieve details of the patient with the specified NRIC.

Format:
get patient NRIC

Example:

get patient T9999999N

Expected output:

getpatient

↑ Return to Top