This template allows you to configure an action that site staff can use to analyze participant data and display outputs that inform decision-making during the study.
Prerequisites
- Ensure that you have a criteria check event created. See the Creating a New Event section on the Managing Events page for more information.
- Ensure that all survey names, schedule names, event names, group type names, and group name fields are named correctly.
- Ensure that the survey and schedule are already created.
Create Criteria Check Rule
Note: The system will prevent you from creating a new criteria check rule if no check events are available. Each check event can only be used in one criteria check rule.
Complete the following steps to create a criteria check rule:
- In eCOA Studio, open the Rules tab.
- Select Create Rule.
- Select Criteria Check and select Select Template.
- Enter a Name for the rule. For example: Rule_1
- Enter a Description. For example, Rule_1. The description helps other Studio users identify what the rule is when they see it in the Rules tab.
- Example: This rule enables sites to check the average value of select survey answers and see the submission datetime of the surveys associated with the answers.
- Select the event name of the check event you want to use to trigger the check. For example, hads_check.
- Optionally, enter the Preconditions using references or variables to define the conditions you want to be evaluated as TRUE before the criteria check can be run. See Creating a Reference and Creating a Variable on the Understanding Rules page for more information.
- Example: You can use STAT1 and STAT2 variables to require that two successful submissions of the HADS survey have been received from a participant before a site user can run the check. The following expression would return TRUE if the HADS survey has had two submissions with compliant statuses.
- Variable definitions:
STAT1: $survey.hads.[*].[*].[-1].StatusSTAT2: $survey.hads.[*].[*].[-2].Status
- Expression:
(STAT1 = "COMPLIANT") && (STAT2 = "COMPLIANT")
- If you want the system to display a message to users when the preconditions are not met, enter the message in the Missing Preconditions field. For example:
This participant must submit at least two HADS survey responses. - Select whether the rule should protect restricted data.
- Add the criteria you want to include in the check:
- Enter the Criteria Name.
- If you only want the criteria to be hidden from site staff, select Hide from Site Users.
- Enter the Display Label.
- Enter the Display Expression.
- Select Save.
- To add more criteria, select Add > Criteria, and repeat the steps above. You can also drag criteria to change their order in the list.
- To group criteria in eCOA and Study Home, select Add > Section. Enter a Section Title and select Save. You can drag the Section Title or Criteria to change it’s position in the list.
- Criteria Name: Criteria_1
Display Label:The average answer for Question one across two instances was:
Display Expression:Average(Value(ANS1INST1), Value(ANS1INST2)) - Criteria Name: Criteria_2
Display Label:Average answer is above the threshold:
Expression:If(Average(Value(ANS1INST1), Value(ANS1INST2))>50,true,false) - Criteria Name: Criteria_3
Display Label:The datetime for the submission of the most recent instance of the HADS was:
Display Expression:$survey.hads.[*].[*].[-1].datetime - Criteria Name: Criteria_4
Display Label:The datetime for the submission of the second most recent instance of the HADS was:
Display Expression:$survey.hads.[*].[*].[-2].datetime
- Criteria Name: Criteria_1
Note: When building a study that includes non-English-speaking site users, using Template Tokens within expressions displays results in the site user’s language. To copy and paste the text for the token, in the Rule Tools, select the Template Tokens tab, and select the Copy Variable Name button (
) next to the token you want to use. The text is copied to your clipboard. You can position your pointer where you want that value to be in the expression and press CTRL+V to paste it there.
- To make events available or trigger an FTP export based on criteria check results, add them as Conditional Actions:
- Enter an Action Expression that evaluates as a boolean. The configured Conditional Actions will run if the Action Expression evaluates to TRUE. You can reference survey data or criteria results from the criteria you created above, and you can also use survey identifiers in the expression. See the following examples:
@criteria.Criteria_2.result < 50, for this action, the selected event will become available if the average value of ANS1 from the last two survey instances is less than 50.@criteria.Criteria_3.result < $survey.hads.[*].[epro-activated].[-1].datetime, for this action the criteria results are compared against a different survey data set.
- From the Add Action list, select the actions you want the rule to trigger: Make Events Available or Trigger FTP Export.
- Trigger FTP Export: See Using FTP Connections to Export Data for more information on how to connect the FTP export to this rule. Note the event name in the Trigger FTP Export box. The Triggered Rule Export will become available after the rule has been approved in a major or minor collection version.
- Make Events Available: To make an event available as part of a conditional action, select the event name from the Select Events list. Each event can only have one associated criteria check rule. See Managing Events for more information.
Note: Events must have When Criteria Check Is Passed selected from the Available When list to show up in the Select Events list for the Criteria Check rule. After an event has been used in a rule, it is removed from the Select Events list.
- Select Save.
Saving a Rule
Draft template changes are automatically saved as you make updates. If you sign out and back in, when you access the templates, you can continue working on your draft. If you choose to create a new draft before manually saving an in-progress draft, your changes will be lost.
You can save a rule by selecting the Save button.
Editing a Rule
You can edit a rule when the collection is in a Draft state.
Complete the following steps to edit a rule:
- Open the collection, select the Rules tab, and select the Edit Rule icon (
) next to the rules you want to edit. - Make any changes you want to see, and select Save. Your changes are saved.
Deleting a Rule
You can only delete rules that have not been included in an approved collection. Once a rule is deleted, it cannot be recovered.
Complete the following steps to delete a rule:
- Open the collection, select the Rules tab, and select the Delete Rule icon (
) next to the rule you want to delete. A confirmation box opens. - Select Delete. The rule is deleted.