UseCase_AddProblem - CMPUT301F18T10/MediTrack GitHub Wiki

Use Case Name: AddProblem

Use Case ID: 01.01

Participating Actors: Patient, MediTrack

Goal: Add a new problem

Trigger: User chooses to add a new problem

Precondition: The problem that the user wishes to create does not exist

Postcondition: The problem that the user wished to create exists

Basic Flow:
1. User chooses to add a new problem
2. MediTrack prompts user to enter a title, date, and a brief description
3. User fills title, date, and description
4. MediTrack adds a new problem and notify the user of its success

Exceptions:
4. Not all fields are fileed
4.1 MediTrack informs the user that all fields are required to add a new problem
4.2 Returns to step 2

Exceptions:
4. The problem with entered “title” exists
4.1 MediTrack informs the user that it cannot add a problem with the title of an existing problem
4.2 Returns to step 2

Constraints:
1. The maximum length for a title must be at least 30 characters
2. The maximum length for a description must be at least 300 characters

Related Artifacts:
US 01.01.01
US 01.01.02
US 01.01.03
US 08.01.01

⚠️ **GitHub.com Fallback** ⚠️