0% found this document useful (0 votes)
40 views

Use Case Analysis Document - Nutrition Tracker - GRP A - Updated

The user can manually input food details including name, quantity, and measurement unit. The system calculates the nutrition information and adds it to the user's intake map. The user can also scan a product barcode or image to get nutrition data, and has the option to add items to a virtual pantry. Further, the user can view their daily or monthly intake map with cumulative nutrition totals, set nutritional goals, and generate reports on intake and goal progress.

Uploaded by

Rabia
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
40 views

Use Case Analysis Document - Nutrition Tracker - GRP A - Updated

The user can manually input food details including name, quantity, and measurement unit. The system calculates the nutrition information and adds it to the user's intake map. The user can also scan a product barcode or image to get nutrition data, and has the option to add items to a virtual pantry. Further, the user can view their daily or monthly intake map with cumulative nutrition totals, set nutritional goals, and generate reports on intake and goal progress.

Uploaded by

Rabia
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 8

Use Case Name: Input Food Manually ID: UC - 1 Priority: High

Actor: User
Description: The user manually inputs information about the food they consumed, including
the name of the food, quantity, and measurement details. The system
processes this information to provide a detailed breakdown of nutrition,
including calories, protein, carbohydrates, cholesterol, etc.
Trigger: User selects the option to input food manually.
Type: User Goal
Preconditions: None
Major : Information for
1- User enters the name of the food.
2- User enters the quantity consumed.
3- User selects the measurement unit (e.g.,
grams, ounces, cups).
4- The system calculates and displays the
nutrition information based on the provided
inputs.
Postconditions: The user's food consumption information is added to their intake map, and
the system updates the overall nutrition data accordingly.

Exceptions: E1: Invalid input data (e.g., negative quantity, non-numeric values).
- The system displays an error message and prompts the user to
correct the input.

Summary
Input Sourc Output Destinatio
Food Name, User Nutrition Display (Intake Map)
Quantity, Information
Measurement Unit (Calories, Protein,
Carbohydrates,
Use Case Name: Scan Product ID: UC - 2 Priority: High
Actor: User
Description: The user utilizes the AI-powered product scanning feature to scan the
product's barcode or image. The system recognizes and classifies the product
to provide detailed nutrition information.
Trigger: User selects the option to scan a product.
Type: User Goal
Preconditions: The user has access to the device's camera or can upload an image of
the product.
Major Steps : Information for
1- User selects the scanning option. Steps:
2- The system activates the camera or allows the user
to upload an image.
3- The AI identifies the product using
barcode/image recognition.
4- The system retrieves nutrition data for the
recognized product.

Postconditions: The nutrition information for the scanned product is displayed to the user,
and they have the option to add it to their virtual pantry or intake map.

Exceptions: E1 Product not recognized or not in the database.


 The system informs the user that the product was not recognized,
and they may need to input the details manually.

Summary
Input Sourc Output Destinatio
Product Barcode/Image User Nutrition Display (Intake Map)
Information
(Calories, Protein,
Carbohydrates,
Use Case Name: View Nutrition ID: UC - 3 Priority: Medi
um
Actor: User
Description: The user views the detailed breakdown of nutrition for a specific food item
they have either input manually or scanned using the app.

Trigger: User selects the option to view nutrition details.


Type: User Goal
Preconditions: The user has added food to the app, either manually or by scanning.
Major Steps : Information for
1- User selects the food item from the list.
2- The system displays the nutrition information
for the selected item.

Postconditions: None

Exceptions: None

Summary
Input Sourc Output Destinatio
Food Selection User Nutrition Display
Information (Nutrition
(Calories, Protein, Details)
Carbohydrates,
Use Case Name: Add to Virtual Pantry ID: UC - 4 Priority: Medium

Actor: User
Description: The user has the option to add a food item to their virtual pantry for easy access
and faster identification in the future.

Trigger: User selects the option to add a food item to the virtual pantry.
Type: User Goal
Preconditions: The user has input food manually or scanned a product.
Major Steps : Information for
1- User selects the food item they want to add
to the virtual pantry.
2- The system saves the selected food item to
the user's virtual pantry.

Postconditions: The selected food item is added to the user's virtual pantry for future reference.

Exceptions: None

Summary
Input Sourc Output Destinatio
Food Selection User Added Food Item Virtual Pantry
Use Case Name: View Intake Map ID: UC - 5 Priority: Low
Actor: User
Description: The user can view their daily or monthly intake map, which shows the
cumulative nutrition information for all the food items they have
consumed.
Trigger: User selects the option to view their intake map.
Type: User Goal
Preconditions: The user has added at least one food item to their intake map
Major Steps : Information for
1- User selects the desired time period (daily
or monthly).
2- The system displays the intake map with
aggregated nutrition data for the
selected period.
Postconditions: The user can see their intake map with the cumulative nutrition information.

Exceptions: None

Summary
Input Sourc Output Destinatio
Time Period User Intake Map Display (Intake Map)
(Daily/Monthly) (Cumulative Nutrition
Selection Information)
Use Case Name: Set Goals ID: UC - 6 Priority: Mediu
Actor: User m
Description: The user can set their daily or monthly nutritional goals based on their
dietary requirements or fitness objectives.

Trigger: User selects the option to set nutritional goals.


Type: User Goal
Preconditions: None
Major Steps : Information for
1- User selects the type of goal they want
to set (e.g., daily calorie intake, protein
target).
2- User enters the desired value for
the selected goal.
3- The system saves the user's
nutritional goals.
Postconditions: The user's nutritional goals are set and stored in the system.

Exceptions: None

Summary
Input Sourc Output Destinatio
Goal Type, Goal Value User Saved Nutritional Goals System
(Nutritional Goals)
Use Case Name: View Intake Map ID: UC - 7 Priority: Low
Actor: User
Description: The user can generate comprehensive reports that provide an overview of
their nutrition and progress towards meeting their goals.

Trigger: User selects the option to generate reports.


Type: User Goal
Preconditions: The user has set nutritional goals and has consumed food items.

Major Steps : Information for


1- User selects the type of report they want Steps:
to generate (e.g., daily intake summary,
progress towards goals).
2- The system compiles the relevant data
and generates the report.
3- The report is presented to the user
for viewing or download.

Postconditions: The user can access and review the generated nutrition reports

Exceptions: None

Summary
Input Sourc Output Destinatio
Report Type User Generated Report Display (Report)
or Download
Use Case Name: Send Message/Add Comment ID: UC - 8 Priority: Medium
Actor: Admin
Description: The admin can send direct messages to users or add comments/notes
that are visible to the user.

Trigger: Admin selects the option to send a message or add a comment.


Type: System Functionality
Preconditions:  Admin is logged into the system
 Admin has access to user profiles
Major Steps : Information for
1- Admin selects the user they want to message/comment Steps:
on.
2- Admin enters the message text or comment notes.
3- The system associates the message/comment with the
user's profile.
4- The user can view the message/comment on their
profile

Postconditions: The message/comment is visible to the user on their profile. Also, record of the
message/comment is stored in system.

Exceptions: E1 System error prevents message/comment from being added.


 Admin is notified the message/comment failed to be added.

Summary
Input Sourc Output Destinatio
Admin Message/Comment User profile
Target user associated with user
Message/Comment text profile.

You might also like