Example—Using the Randomize function
The randomization feature in the InForm application allows you to assign a drug kit to a subject based on a randomization scheme that has been chosen for a study. After randomization configuration is complete, one of the forms in the study contains a Drug Kit section. When a user clicks the Randomize button, the InForm application returns a drug kit number, along with associated information about the drug kit, in the Drug Kit section of the form.
For the randomization feature to work, you must create a randomization item. The randomization item must be on a form with at least one other item that will be completed before the treatment information can be populated. The following example illustrates creating study objects for randomization and using the Randomize function.
Example of creating study objects for randomization and using the Randomize function
Step |
Action |
Description |
---|---|---|
1 |
Create the following form on the Baseline study event. |
|
2 |
Create the following items on the frmRandomization form. |
|
3 |
Generate form layout. |
|
|
For example: |
|
4 |
Create a rule on itmRandTreatment. |
The rule expression for the Randomization function uses the following format: Randomize([listname], [randomization type]) Note: The value of [randomization type] can be one of the following (use the spacing that is specified):
See the following example for more details. |
A Simple Central randomization with one list called "SimpleList" uses the following expression.
Example of a Simple Central randomization with one list called "SimpleList"
Description |
Rule expression |
|
evaluate on Form Submission |
|
value = Randomize(“SimpleList”, “Simple Central”) |
The following action sets the value of the itmRandTreatment item to the Description and Sequence Number that is returned by the randomization process. |
always set this.Value = value.Description + “ “ + value.SequenceNumber |
The following action sets the value of the itmRandTreatment item to the Description that is returned by the randomization process. |
always set this.Value = value.Description |