Quantity Tracking enables Lab Analysts to track the quantity of product that needs to be stored and how much needs to be pulled from storage at each Timepoint throughout the duration of a study. In order to configure this feature for use, an Admin must complete the following steps:
- Navigate to Admin > Configuration > Objects > Lab Sample Definition and select the Fields tab.
- Select Storage Condition.
- Click Edit.
- In the Options section, check the Display in default lists and hovercards box.
- Click Save.
- Return to Admin > Configuration > Objects > Lab Sample Definition > Fields and select Storage Orientation. Repeat steps 3-5 for this field. This ensures that these values are displayed on the Collect Action record (related to Spec Data) when a user hovers over the Sample Definition field.
- Navigate to Admin > Configuration > Object Lifecycles and make modifications to the following lifecycles:
- Spec Data:
- On the Effective state, configure an Entry Action to trigger the Update Inventory action. Make sure that this action is only configured for Spec Data object type Stability Study Spec Data. The system allows configuration for other object types, but the action cannot execute for those types and will fail silently without error.
- Lab Study:
- On the Completed state, add an Entry Action to set
completed__v=true
- On the New state, add an Entry Action to set
completed__v=true
- On the Timepoints Complete state, add an Entry Action to set
completed__v=true
- On the Completed state, add an Entry Action to set
- Lab Study Timepoint:
- On the Cancelled state, add an Entry Action to set
cancelled__v=true
- Remove the Create Record event action.
- On the Cancelled state, add an Entry Action to set
- Lab Sample: On the Unreceived state, ensure that the Pull Sample action uses the standard workflow
lab_sample_pull__v
- Spec Data:
- Navigate to Admin > Configuration > Objects > Lab Study and complete the following steps:
- On the Actions tab:
- On the Layouts tab:
- Add the Inventory Summary Related Object Section and select the Prevent Record Creation Creation Option.
- Add the Inventory Related Object Section and select the Prevent Record Creation Creation Option.
- Assign the following fields to the Stability object type on the Lab Sample object:
- Sample Definition
- Sample Plan
- Spec Execution
- Unit of Measure
- Planned Quantity
- Study
- Study Timepoint
- Time Stored
- Time Stored Units
- Inventory Record
- Sample Instructions
- Label Definition
- Label Quantity
- Quantity
- Due Date
- Manually Added
- Mode of Creation
- Spec Data
- Spec Data Sample Action
- Navigate to Objects > Spec Data and complete the following steps:
- On the Actions tab:
- Navigate to Object Lifecycles > Spec Data Lifecycle and complete the following steps:
- On the Effective state, add the following Entry Action: If Spec Data Type equals Stability, Update Inventory.
- On the Draft state, add the Create Collect Sample Actions User Action.
- Return to Objects > Spec Data and complete the following steps:
- On the Layouts tab:
- Select Stability Spec Data Detail Page and add a section for Spec Data Sample Action using the following VQL criteria:
object_type__vr.api_name__v = 'spec_data_collect_action__v' (Apply on creation=true)
- Select Stability Spec Data Detail Page and add a section for Spec Data Sample Action using the following VQL criteria:
- On the Layouts tab:
- Navigate to Objects > Lab Study > Actions and set the Activate Refresh Inventory action to Active.
- Navigate to Object Lifecycles > Lab Study and add Activate Refresh Inventory as a User Action to the New and In Progress states.
- Add Use Quantity Tracking and Use Draft Spec Data to the page layouts for the Lab Study Design and Lab Study objects.
- Add a Layout Rule to hide the Inventory and Inventory Summaries fields if the Use Quantity Tracking field equals false.