I have the following requirement, can you help me write agile user stories?
Description
The purpose of this page is to describe the functionality of the ‘Add Product’ page. This is the initial page where a new product information is entered and added to the existing product listing.
The Product Definition has two phases. Each phase is described and detailed in its own separate section below. The phases are:
Section 1- Add Phase (Feedlot, Enterprise/Company)
1.1- Add Product Definition
- 1 Add Product Definition
This blank product form (Product Definition) is generated when user clicks on 'Add Product' button.
When adding a new product, the product drop down list is disabled.
1.1.1 ALL LEVELS (Feedlot, Company and Enterprise)
Requirements
Title = Products Definition
Sub-title = All levels (Feedlot, Company and Enterprise).
Label: Product Code *
Type: Text
REQUIRED FIELD.
Must be UNIQUE to the product.
Character Maximum of 15.
Validation Message “Username cannot be greater than 15 characters” input stops after 15 characters
If not unique show system standard error message that reads ‘Code must be unique’.
Label: Description *
Type: Text
REQUIRED FIELD.
User defined description of the product.
Validation message = Description is required
Label: Product Type *
Type: Single Select Dropdown
REQUIRED FIELD.
This is for grouping products into like categories and biological equivalence.
Validation message = Product Type is required
Label: Manufacturer *
Type: Text
REQUIRED FIELD.
This is the name of the business / company that makes the product.
Validation message = Manufacturer is required
Label: Unit *
Type: Single Select Dropdown
REQUIRED FIELD.
Choice between Milliliter (ml), Liter (L) or Unit.
There is no “blank” choice.
Validation message = Unit is required
Label: DIN/NDC *
Type: Number
REQUIRED FIELD.
Max value is 13 digits
This is the Drug Identification Number/ National Drug Code. It is a unique identifier for the product.
Validation message = DIN/NDC is required
Label: External Code
Type: Text
This field is used to integrate with 3rd party systems.
Inventory Details
Label: Minimum Quantity in Inventory
Type: Number
This field represents the minimum quantity for inventory purposes.
The figure should be a whole number and not decimal.
Label: Maximum Quantity in Inventory
Type: Number
This field represents the maximum quantity for inventory purposes.
The figure should be a whole number and not decimal.
Pricing Details
Label: Pricing Method
Type: Single Select Dropdown
Choice between Cost plus % OR Cost plus fixed price.
Cost Plus Percentage:
a. The cost of the product is the base value for calculating the selling price.
b. The percentage markup will be added to the base cost to determine the final selling price.
c. The percentage markup must be a positive value.
d. The percentage markup should be entered as a whole number or a decimal (Ex, 25%).
e. Min value= 0% and Max= 100%
f. When this option is selected, the system should prompt the user to enter the percentage markup.
Cost Plus Fixed Price:
a. The cost of the product is the base value for calculating the selling price.
b. A fixed price markup will be added to the base cost to determine the final selling price.
c. The fixed price markup must be a positive value.
d. The fixed price markup should be entered as a whole number or a decimal (Ex. 20.0000).
e. 4 decimal places are required
f. When this option is selected, the system should prompt the user to enter the fixed price markup.
Label: Post Treatment Interval
Type: Number
This field represents the Post treatment interval (PTI) which refers to the length of time between consecutive treatments with a particular product.
The figure should be a whole number and not decimal.
Label: Allow Reconcile
Type: Checkbox
Default to ‘checked’ for new custom fields.
If the checkbox is ACTIVE, the product will be available for selection during reconciliation.
Label: Dosage *
Type: Single Select Dropdown
REQUIRED FIELD.
Choice between CWT (weight based-'hundredweight') OR per HEAD.
There is no “blank” choice.
Validation message = Dosage is required
Product Detail
An active product must have at least one route selected.
Label: Add Routes *
Type: Button
REQUIRED FIELD.
These are routes for administering treatments.
When a user clicks the ‘add routes’ button, the following options are displayed: Base of Ear (BE), Ear (EA), Intramuscular (IM), Intranasal (IN), Intravenous (IV), Oral (OR), Subcutaneous (SQ), Topical (TO) or Not Applicable (NA).
When a route is selected, the ‘add route details’ modal pops up. Once all the field are completed and ‘add route’ button is clicked, a row is displayed on the grid/table per route of administration selected..
A route can only be selected once.
At least one route must be selected for an active product.
Product Detail Grid:
The product detail grid will have 8 columns: Effective From, Effective To, Dosage, Quantity, Unit, Round To, Tolerance and Withdrawal Days.
Requirements
Column: Effective From
Type: Date
Source: Product Details Record → Effective From
Description: This is a unique identity to a product.
Format: M dd, yyyy (ex: Nov 16, 2022).
Date can be either be present or future.
Effective From Date can NOT BE BLANK / null when adding a new product (Validation message standard pop up “Effective From Date must be entered for a product”).
Effective From Date must be AT LEAST one day in the future compared to previous rows effective from date. (which would then set its Effective To do the same day).
Column: Effective To
Type: Date
Source: Product Details Record → Effective To
Description: This is a unique identity to a product.
Format: M dd, yyyy (ex: Nov 16, 2022).
CALCULATED COLUMN (user does not directly enter this).
Calculated value / column rules are the following:
For the ‘current’ route details, this field is always blank, indicating the date range is forever.
When a new route details is made on the row below, the effective to date is system set to the day before the new / next row’s Effective From date. (For example, if you make a route details row that starts on Nov 15th, then the Effective To date on the row above will change from blank to Nov 14th).
Column: Dosage
Type: Text
Source: Product Details Record → Dosage
Description: This is the dosage of the product. Choices are CWT (weight based) or per HEAD.
Column: Quantity
Type: Number
Source: Product Details Record → Quantity
Description: This is the recommended quantity (whole number) that can be administered as written on the product label.
Column: Unit
Type: Number
Source: Product Details Record → Unit
Description: This is the unit of measurement (whole number) for the recommended quantity of the product.
Column: Round To
Type: Number
Source: Product Details Record → Round To
Description: This is to round up the actual dosage to 'ml'
Column: Tolerance %
Type: Number
Source: Product Details Record → Tolerance
Description: Is the allowed difference in dosage.
Column: Administration Location
Type: Text
Source: Product Details Record → Administration Location
Description: This is the location where products are administered. The options are Left side, Right side and Neutral
Column: Withdrawal Days
Type: Date
Source: Product Details Record → Withdrawal Days
Description: Is the period of time from when a drug is administered to when the drug concentration falls below the tolerance.
Total Withdrawal days= (Default Withdrawal days + Withdrawal offset)
Display Format = Total withdrawal days (Default withdrawal days) Ex. 14 (10 default).
Label: Add (located below the route grid)
Type: Button
When user clicks the ‘Add’ button, a new blank ‘add route details’ modal is displayed.
Adds an editable row to the route grid.
Label: Activate/Inactivate Route (located below the route grid)
Type: Button
When user clicks the ‘Inactivate Route’ button, that particular route grid/table is disabled.
When user clicks the ‘Activate Route’ button, that particular route grid/table is enabled.
Actions/Buttons- Add Product
Label: Cancel
Type: Button
Cancels any change and closes modal.
Navigates user back to Product Management → Overview page.
Label: Add Product
Type: Button
When user clicks the ‘add product’ button, the new product is created and automatically added to the product list.
Toaster message for success = Product added successfully.
Once the product is added, mapping and pricing tabs becomes active.
Add Product button is disabled until all validation is met.
Authorization Table
Role: N/A