Trial Design

Example: Increment Property
Summary This script increments the property “reqID” by 1 and defaults the value to 0 if the property does not exist. It runs the script when the “requestor...
Tue, Nov 8, 2022 at 3:05 PM
Example: Set QTBC
Summary This script uses the divide and sqrt commands to perform a calculation on rr and qt and then assigns the result to qtcb. qt is divided by the squar...
Tue, Nov 8, 2022 at 3:06 PM
Example: Set Rate
Summary This script uses the divide command to perform a calculation on the rr question and then assign the result to the rate question. The rate question ...
Tue, Nov 8, 2022 at 3:06 PM
Example: Set Screen Failure
Summary If the value of the ‘Will the patient enroll?’ question is no, then the Dynamic Status of the subject is set to screenFailure. This allows for the ...
Tue, Nov 8, 2022 at 3:06 PM
Example: Set Unscheduled Visit Code
Summary This script is written to determine if the import should import the data into the unscheduled visit. The visit code, as recorded by the lab in this...
Tue, Nov 8, 2022 at 3:07 PM
Example: Site Assign
Summary This script uses the “substr” command to pull the first 3 characters of the tool (site) and assigns it to the site  question. In this case, the fir...
Tue, Nov 8, 2022 at 3:07 PM
Example: Stop Before Start
Summary This script checks that the given start date and time occur before the given end date and time. An alert will fire if it does not. The script first...
Fri, Oct 7, 2022 at 11:15 AM
Example: TCV Calculation
Summary This script is written to calculate a total contract value based on several responses provided by the user. In this case, we have an original value...
Tue, Nov 8, 2022 at 3:08 PM
Example: To Upper Case
Summary This script capitalizes all of the letters in the target questions text field.  Note: Scripts cannot be used to upper case Partial Dates.  ...
Tue, Nov 8, 2022 at 3:09 PM
Example: Validate Date
Summary This script runs when target date questions of a study are saved on any form. In this case, the script is expecting a format of 2 digits, a hyphen,...
Tue, Nov 8, 2022 at 3:09 PM