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 Appointments

3.3. Patient Medical Records

3.3.1. Add Patient Records: add pr

Add patient’s medical records to the database, to support the diagnosis and to justify the treatment.

Patient's records can only be added if the patient information exists in the database.
Format:
add pr /ic NRIC /sym SYMPTOMS /diag DIAGNOSIS /d DATE /t TIME

Example:

add pr /ic S9876543F /sym Cough /diag Fever /d 22/02/1992 /t 22:22

Expected output:

addPR

Enter y to confirm.

Expected output:

cfmAddPR

↑ Return to Top

3.3.2. List Patient Records: list pr

Displays all patient records for the patient using his/her NRIC. Patient’s records will be listed with their respective index which is needed for find pr, edit pr and delete pr commands.

Format:
list pr NRIC

Example:

list pr S9876543F

Expected output:

listPR

If the patient have no past medical records. The message below will be printed instead.

Expected output:

listPR not found

↑ Return to Top

3.3.3. Find Patient Records: find pr

Display detailed information for that particular patient’s visit using the NRIC and index of the patient’s records which can obtained from the list pr command.

Format:
find pr NRIC INDEX

Example:

find pr S9876543F 2

Expected output:

findPR

If no record is found with the given NRIC, the message below will be printed instead.

Expected output:

PR not found

↑ Return to Top

3.3.4. Edit Patient Records: edit pr

Edit patient’s past medical record using the index of the patient’s records which can obtained from the list pr command.

Format:
edit pr NRIC INDEX /sym<SYMPTOMS> 
                   /diag<DIAGNOSIS> 
                   /d<DATE> 
                   /t<TIME>
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 pr S9876543F 2 /t12:00

Expected output:

EditPR

If the record is not found with the given input. The message below will be printed instead.

Expected output:

prEmpty

↑ Return to Top

3.3.5. Delete Patient Records: delete pr

Delete patient’s medical records based on the given NRIC and the index of the patient’s records which can obtained from the list pr command.

Format:
delete pr NRIC INDEX

Example:

delete pr S9876543F 1

Expected output:

Delete PR

If the record is not found with the given input. The message below will be printed instead.

Expected output:

PR not found

↑ Return to Top