D1. Specifications
User Stories
As Debby Dietician...
I want to quickly calculate nutritional needs based on patient age, length, and height so that I can spend more time interacting with my patients.I want to compare the nutrition amount in a recipe to the DRI so that I can easily identify missing nutrients or nutrients with values below 67%.I want to calculate expected weight and growth for a child, so that I can assess how far off they are from the target growth.I want to create accurate formula recipes, so that I can ensure children receive the right nutrition.I want to know the calorie content of a formula, so that I can evaluate whether it meets a child’s needs.I want a centralized database of formula information so I don’t have to look through multiple different sources.I want the database to stay up to date so I won’t try to use formulas that don’t exist anymore.I want to print out a formula plan without patient identifiers so the parents have clear instructions and the plan stays HIPAA compliant.I want to favorite formulas so I can quickly view the ones I use most often.I want to add multiple formulas into a single recipe so that I can create customized feeding plans.I want to view detailed formula information (name, manufacturer, protein source, key nutrients, key features), so that I can make informed clinical decisions. As Adam Administrator...
I want to review and validate data so I can make sure the database remains accurate and clean.I want to activate or deactivate formulas so dieticians only use formulas that are current and valid. Functional Requirements
Definite
General
Navigation bar with four options: Nutrient Needs Calculator (Growth and nutrient calculations), Formula Recipe Calculator (Nutrient calculations based on measurements), Formula Lookup Tool (Search database and create mixes), and Settings (User profile management)All user-specific data (credentials, mixes, nutrient calculations) is stored securely in a database.Only authorized users can access their own data.Users with admin access can enter data into the formula lookup table.Users receive alerts when formula ingredients or nutrients are updated in the system.Users receive alerts when formulas are deactivated for significant reasons, such as a safety recall. User Authentication
Users are presented with a login page upon visiting the website.Users can enter a username and password. If credentials match the database, the user is directed to the home page and shown their preferences.Invalid credentials trigger a pop-up: “Username or password does not match database.”Users can navigate to a sign-up page to create an account with email, username, and password. Upon submission, data is stored in the database and the user is redirected to the login page. Nutrient Needs Calculator
Users enter age, height, weight, length, and sex. Age selectable in years, months, or weeks. Height and length selectable in metric or imperial units. Sex selectable from dropdown: male or female.A “Calculate” button computes nutrients, ideal weight, and catch-up growth using predefined formulas.Results appear in boxes; the nutrients box is scrollable.A “Formula” button populates nutrient requirements into the formula section.A “Print” button generates a PDF of the results. Formula Recipe Calculator
Search a database of formulas and add-ins with autocomplete.Dropdown filter allows viewing all items, formulas, add-ins, or favorites.Clicking an item opens a popup to enter an amount in cups, teaspoons, tablespoons, or scoops (floats).“Add” button inserts the item into a Mix section and calculates nutrients from the database.Users can select the number of formula administrations per day (servings), adjusting nutrient totals accordingly. Users can also view the type of source the formula is and additional info (such as protein, carbohydrate, amino acid, partially hydrolyzed). “Save” triggers a warning if any nutrient is below 67%.“Print” generates a PDF including the formula, required nutrients, and nutrients in the mix.Admin Page: Provides database access to view, edit, or delete formulas/add-ins via a clean interface. User Settings
Users can update profile image, email, name, and password.A “Save” button updates the database with the new information. Perhaps
General
Session persistence to keep users logged in after closing the browser.Nutrient Needs Calculator: Graphical representation of growth measures (charts, progress bars).Highlight active navigation dynamically as the user scrolls.User Settings: Global preferences for notifications or measurement units. Formula Recipe Calculator
Display item images and nutritional information in search results.Allow users to favorite items or entire mixes, stored in a user-specific database.Add specific items from search results directly to mixes. Data Management
Data export/import for offline backup.Formulas and calculations are generated without caching patient data locally.Formula data can be added through webscraping. Improbable
Two-factor authentication for enhanced security.Formula Recipe Calculator: Integration with external APIs for real-time ingredient updates.Biometric login options.Real-time collaboration between users on mix creation. Non-Functional Requirements
Definite
The system should respond to searches/lookups and generate recipes within 5 seconds.The system and its usage should be well documented.The system should present a clear, simple interface.The system should be available with 99% uptime.The system should be able to recover from a disaster with minimal data loss.The system should be able to handle at least 10 concurrent users without any decrease in performance.The system should be a web application and accessible via web and mobile browser.The system will be accessed through a web user interface.The system should store all data in compliance with HIPAA regulations.The system should separate user roles with the appropriate authentication and authorization.The system should run in a secure hosting environment. Perhaps
The system may pre-load commonly accessed formulas to reduce lookup time.The system should be able to handle at least 500 concurrent users without any decrease in performance. Improbable
The system should be able to handle 2000 concurrent users without any decrease in performance.Interface
Figma Wireframe Link