Example of a Central Stratified randomization script
The following example illustrates a randomization rule for a Central Stratified (Type 2) randomization scheme. In this example, the stratification is based on the patient's weight, as entered in the Demographics form in Visit 1. Based on the patient's weight, the InForm application gets the next sequence number from either the CS_WT150 or the CS_WT275 randomization source list.
Function GetRndSourceList()
wt = Patient.GetValueRF("0.Visit1.DEM.DEM.0.WEIGHT", "", 0,0,0)
IF (wt > 90 AND wt <= 150) THEN
GetRndSourceList = "CS_WT150"
ELSEIF (wt > 150 AND wt < 275) THEN
GetRndSourceList = "CS_WT275"
ELSE
GetRndSourceList = ""
END IF
End Function
'set properties
Randomization.SiteID = Patient.GetSiteID
Randomization.Type = 2
Randomization.Source = GetRndSourceList
Randomization.PatientID = Patient.GetID
Randomization.Revision = 0
'randomize the patient and return result
SeqNum = Randomization.GetNextKit(KitInfo)
Result.Result= SeqNum + " / " + KitInfo
Using the InForm Architect application, create a context that attaches the rule to the DRUGKIT item in the DRUGKITSECTION section. If the rule is for a stratified randomization, specify the patient data items that it checks as dependent items for the rule.
Notes:
- Special configuration may be required if you are using the Central Stratified randomization type. For more information, see Setting up Central Stratified randomization.
- A randomization rule can have only one rule context.
- If any items you have specified as dependent items do not have data entered or have queries in Candidate or Opened state, the InForm application does not assign the randomization sequence number.