1. Help Center
  2. Study Configuration and Form Building

Randomization Configuration

Configuring one or more randomization schedules for a study

TrialKit is capable of randomizing study subjects to allocated groups for the purpose of assigning investigatory products accordingly without human intervention or bias. The allocations can additionally be used to drive conditional actions on which data points need to be collected for different subject groups.

Table of Contents

Define Randomization

This article describes how to define randomization prior to uploading the randomization list/schedule. First, open the page "Define Randomization" from the Study menu:

e6f7ce2d-4202-4692-b9dd-52099700dcae

In the table below, randomization has been configured and the form is available to create an additional one.

2022-09-26_9-17-47

1. Enter a name for the randomization - this will be a reference shown throughout the system and exported data.

2. Un-Blind Allocation to Site Users  - Leaving this box unchecked will blind all user roles by default so they do not see the allocation to which the subject was randomized.

3. Roles Blinded - Individual roles can be unblinded by unchecking the box next to that role (Checked role = Blinded role).

If a new role is created in the study, later on, the role will be assumed as blinded and automatically added to the list of blinded roles.

Any user role with access to view the randomization allocation report (separate permission) will be unblinded regardless of the randomization configuration blinding that user role.

Randomization blinding is supported by the system in the following areas:

  • Form save dialog indicating if randomization was successful
  • Subject information panel within the subject’s file
  • Ad-hoc reports in the report builder

For any fields in the forms which have been configured to populate randomization information or display based on a randomization group - it is the users' responsibility to blind accordingly. Blinded fields are enforced throughout the system, including in data exports and reports.

4. Return Subject Profile ID with Allocation - The system can optionally return a new Subject Profile ID with a new allocation. When a subject is successfully randomized, the system will pull the Subject Profile ID from the randomization schedule and overwrite the system-generated Subject Profile ID. If you want to save both the system-generated ID and the randomization ID from the schedule, see the next item below.

5. Return Allocation ID - This will provide an option for text fields in the Form Builder to define for populating the subject's Randomization ID into a CRF. This allows for maintaining the system-generated ID as the subject ID and still having reference to the randomization ID in the subject data.

6. Centralized (No Site Stratification) - Some studies may require that the pool of randomization allocations not be stratified by site. This removes the need for including the Site block in the randomization upload file.

7. Universal Sequence with Table Lookup - Used in conjunction with the Table Lookup option. Read more below on that.

8. Stratify By Site ID - If the randomization is not centralized, that means it is stratified by site.

By default, this site stratification will block subjects based on the sequence in which the sites randomize their first subject. In order to dictate specific site IDs for the randomization blocks, check this option.

9. Table Lookup (Not Randomization) - Used to bypass actual randomization and instead use the tool to apply a different subject ID format to stratified subjects, but where the subject ID is still in a universal sequence. 

10. Trigger Form - Select the form where the randomization will occur.

11. Trigger Visit - Select which visit where the randomization will occur.

12. Field - Randomization Form Fields  - Select which field(s) randomization is based. These need to be the same stratification fields in the uploaded file described below. 

13. Deploy Randomization Confirmation Emails.  Define which roles should receive randomization details and confirmation emails as subjects are randomized in the study.

Confirmation Emails are Un-blinding, so be sure the blinded roles (if applicable) are not selected here.

    

Creating and Importing Randomization Schema Files

TrialKit users are responsible for creating their own randomization schedules. This is usually done by a biostatistician supporting the study. Randomization files dictate how TrialKit will distribute randomization allocations over sites or the entire study, depending on how the randomization is defined. 

This section will explain the exact file format necessary to import a randomization file.  The file needs to be in a comma-separated (.csv) file format.  

The following figure displays the file layout of the file to be imported into TrialKit. 

Column Type Description
site_no
(Optional)
Integer

The site number. This will repeat for every allocation slot for a given site. When using central randomization, this column should be omitted from the Randomization Table.

The Site ID used in this column can either be sequential or correspond to specific site IDs within the system, depending on the randomization behavior desired.

sub_no Integer

The subject number is the sequence of subjects starting with 1 at each site.  It will restart for each new site in the table (if the randomization is site stratified). 

This sequence is used by the system to read down the table and is not related to the subject's actual ID within the EDC.

stratification 1 Integer

For each level of stratification, enter the coded stratification. For example, if 1= Male and 2= Female, then a series of 1’s and 2’s would fill this column for each subject for each site. The codes do not have to be in order but is preferred to have the codes in order.  For example, if the user is allocating 50 randomization slots per site, 25 males and 25 females, then the first 25 rows should be male while the next 25 rows should be female.

Each stratification level will get an additional column. If you are stratifying by gender and BMI group, then you would have two columns. Obviously, the more stratification levels you have, the more complex the randomization file.

stratification 2,3,4... Integer See above, additional stratification fields will have their own columns, these extra columns will not be here if the user defines the randomization to have 1 layer of stratification.
allocation Integer This is the coded allocation that is returned to the randomized subject. When a randomized form is saved, the system will look for the first slot available and claim that randomization allocation and assign it to the subject. For example, if a user has randomization that is stratified by Gender and BMI; the system will look for the first Gender and BMI group slot available within the subject’s site.
Subject profile ID (Optional) String

If the user chooses to have the system return the Subject Profile ID upon successful randomization, add a column here. This column should be omitted if the user is not returning the Subject Profile ID.

Randomization ID (Optional) String If there is a separate randomization ID that needs to be collected and populated within the subject data (as described in the defined randomization), it can be identified here in the last column. The system then uses this ID to populate within a subject form as defined in the Form Builder.

Unless marked "(Optional)" the column MUST BE part of the import.

Importing a Randomization File

To upload a randomization file, select the "Import Randomization File..." option from the Study Menu.

5f83264b-f16a-4554-9bd3-508749cfe420

Select which randomization schema to import into.

4b6f37ab-905c-4ecd-9027-797c94136714

After importing the file, a message will indicate if there were any errors in the file when applied to the defined schema.

Simple Example

The table below has 10 subjects and is 2-arm randomization. It is central randomization that returns no subject profile id and does no stratification (simply saving the randomization trigger form will allocate the subject).

Patient Randomization
1 0
2 1
3 1
4 0
5 0
6 1
7 0
8 1
9 1
10 0

More Complex Example

Randomizing based on Site ID blocks with dual stratification, using the coded values for the stratification variables (found in the form builder).

Site Patient Strat1 Strat2 Randomization 
1 1 1 1 0
1 2 1 2 1
1 3 1 1 1
1 4 1 2 0
1 5 1 1 0
2 1 1 2 1
2 2 1 1 0
2 3 1 2 1
2 4 1 1 1
2 5 1 2 0

Updating Randomization Schemas Mid-study

The randomization file can easily be updated if needed. Do this by exporting the existing schedule, modifying it as needed, and re-uploading it. The system will only update ‘slots’ that have not already been filled, so it's okay if filled slots are part of the file when it's re-imported. This helps the user in verifying the proper spread of allocations, even if some have already been used.

Randomization Conditions

For studies that use randomization, TrialKit allows study builders to dictate form logic according to where subjects are randomized. For example, each subject's randomization assignment can dictate if specific intervals, forms, or fields are displayed.

After defining randomization, the conditional action builder will display that randomization name as a constant. In the example shown here, a condition is being built on a field to hide the field if the subject is randomized into group 1. For group definitions, reference the randomization allocations.

Define User Permissions for Randomization

There are two application permissions needed for the role that will be setting up randomization.

Randomization Configuration

  1. Under the Study>Study Configuration menu click on the Role Security tab.

  2. Now select the role to which you want to grant access to randomization.

  3. Check the setting called "Grant Access to Randomization".

  4. Save Right (see below).

f1f5594d-4862-440e-a605-d4cc57042b7a

Randomization View

  1. Under the Study>Study Configuration menu click on the Role Security tab

  2. Now select the role you want to grant access to randomization to

  3. Check the settings for

    1. Grant Access to Randomization View

    2. Unallocate Subject

  4. Save Right (see below)

7e7ea8de-48c6-4d8d-bed5-8d842b5e8fcd

The ability to view randomization is considered unblinding. The person importing, viewing, and testing the schedule should be unblinded if the randomization requires blinding to most users.

View and Decode the Randomization Allocations

After randomization has been set up in a study, the allocation table can be viewed. With the appropriate permissions in Role Security, this page is found under the Subject menu:

2022-09-26_23-17-53

The following example shows the View Randomization Allocations interface that allows the user to:

1. Decode the randomization file.

2. Display all planned and assigned randomization allocations.

3. If there is more than one randomization schedule being used in a study, the dropdown at the top of the page allows for switching between those schedules.

2022-09-26_23-08-55

The Randomization Allocation data table on the View Randomization Allocations page, shown above, displays all planned and actual randomization allocations.

4. The user can see the randomization file that was uploaded by viewing the first five columns of the Randomization Allocation data table. Note: This particular randomization scheme is returning an Allocation ID.

5. The last three columns in the Randomization Allocation data table contain the actual allocations including the site, subject, and date of allocation.

When a user saves a form that was defined for particular randomization, the system will find the next available slot based on the site and stratification(s). The system then claims that slot by assigning the user’s site, subject, and date of allocation to that slot. The system also associates this randomization allocation with the subject's visit. This information can be used to enforce randomization arms using Conditional Actions.

The View Randomization Allocations page gives the user the ability to decode the randomization allocations. #1 above.  For each allocation that was imported for given randomization, the user can enter text to be displayed whenever this allocation is shown in TrialKit. To decode randomization, the user simply enters the text for each allocation and presses the "Save" button below the last allocation text box.  The decoded text will show in the Allocation column in the main data table.

The View Randomization Allocations page allows the user to view only randomizations that have been allocated. If a user has a large randomization table, the user can click the View Only Randomized Subjects link above the Randomization Allocation data table to view just those subjects that have been allocated. #3 above. The user can then toggle back to view all randomizations by clicking the View All Subjects link.

At any time, by selecting the Export link located above the Randomization Allocations data table, the user can export the entire randomization table to Excel. This gives the user a permanent archive of exactly how the randomizations were allocated for the duration of the study. It is also a method for updating the file, where additional randomization slots can be added to an existing schedule. Note, if editing or adding to a schedule, only empty slots can be modified.

Below are all the same functions accessed via the Mobile App:

2022-09-29_20-03-49

Unallocate a Subject

A user with the proper permissions to open the randomization table (shown above) can  individually clear existing subjects from the randomization slots they exist in. For Example, a study may have a withdrawal that requires that allocation be re-used by another subject, or accidental randomization was made.

This action is not audited by the system, so it should only be used with an understanding of its impact on the study.

The study permission to deallocate subjects is needed to perform this action.

On the Web Browser, it can be done via the Unallocate links in the randomization table.

On the Mobile App, it can also be done in the randomization table by swiping left on any row within the table. An “Unallocate” button will appear on the right side. Tap on the button to complete the action.

Removing Allocations Entirely

It’s usually advised to maintain the randomization schedule as it was designed and keep all slots, even if they aren’t needed anymore (e.g. a subject was randomized accidentally and the slot cannot be re-used). This can be done by filling the slot with a ‘placeholder’ subject and updating the subject’s ID to something that will not ever exist for a real subject, like “01-005ZZ” where “ZZ” is appended to the end of the ID. Then delete that subject. It will still fill the randomization slot and prevent a real subject from re-using it.

The alternative method is to unallocate the subject from the slot that needs to be removed and then update the randomization schedule by re-importing it (explained in the sections above).


Table Lookup

Use the randomization to0l for applying different formatted IDs based on variables in a specific form. 

This is not actual randomization and will not send randomization notification emails

A common use case would be for screening subjects, where only some subjects (the ones that passed screening) need a different formatted ID.

For example, screened subjects might get an ID like "037-001" when registered in the system, but if specified criteria (stratification) is met, the ID needs to have a different format like "037-20001". Then if the next subject does not meet any requirements, they end up with 037-002. So formats change but the sequence remains in line.

In this example the randomization file uploaded would look something like this:

Site Subject Stratification Allocation SubID
1 1 1 1 037-20
1 2 1 2 037-20
2 1 1 2 037-20
2 2 1 1 037-20