UseCase_AddPatient - CMPUT301F18T10/MediTrack GitHub Wiki

Use Case Name: Add Patient

Use Case ID: 07.01

Participating Actors:Caregiver, MediTrack

Goal: Add a new patient to list of assigned patients

Trigger: User chooses to add a new patient

Precondition: The user is logged in as caregiver and arrived at the patients list screen. The user knows the username of the patient they wish to assign.

Postcondition: The patient is now added to the list of assigned patients for the caregiver.

Basic Flow:

  1. User chooses to add a patient by selecting the "+" floating button on the list of patients screen
  2. User is prompted by MediTrack to enter the username of the patient.
  3. User enters the username
  4. MediTrack adds the new patient and informs the user of success

Exceptions:
3. No such username exists in the database
3.1 MediTrack informs the user that no such patient exists
3.2 Returns to step 1

Exceptions:
3. The patient username already exists in the caregivers assigned patients list
3.1 MediTrack informs the user that the patient already exists
3.2 Returns to step 1

Includes: UC 01.01

Related Artifacts: US 07.01.01