Contents

 
Rule expressions
About the rule expression language
Components of the rule expression language
Mappings in rules
Conversion to different units in rules
Rules with multiple conditions
Dynamic prompts in the Expression workspace
Selecting a rule model object from a dynamic expression prompt
Rule templates
Creating, modifying, and deleting a rule template
Default rule templates
_CheckTextLength
_DateTimeRangeCheck
_FutureDateCheck
_PartialCompletenessCheck
_RangeCheck
_RangeCheckInclusive
ValidBPCheck
Data
Data tab
Using data in rules and rule templates
Icons used on the Data tab
Rule model properties for study events, forms, and sections
[Name of review stage]
[Name of review state]
CurrentIndex
Count
HasData
IsDeleted
RelatedData[]
ReviewStates
Rule model properties for items
[Alias or code of codelist item]
[Name of codelist]
AllObjects[]
AllValues[]
Completed
CurrentAllObjectsIndex
CurrentAllValuesIndex
CurrentObjectsIndex
CurrentValuesIndex
Empty
EnteredUnit
EnteredValue
Objects[]
Selected[]
Value
Value[]
ValueLabel
Values[]
Rule model properties for DateTime items
Year
YearEmpty
YearUnknown
Month
MonthEmpty
MonthUnknown
Day
DayEmpty
DayUnknown
Hour
HourEmpty
HourUnknown
Minute
MinuteEmpty
MinuteUnknown
Second
SecondEmpty
SecondUnknown
Methods for repeating study objects
[] [Indexer]
Current()
Examples�Using the Current() method and IsValueInArray function
Current(Integer)
GetValue
Methods for non-repeating study objects
GetReviewStates
HasReviewStates
HasState(Integer)
Example�Methods for non-repeating study objects
Functions
Functions tab of the Rule Wizard
Functions in rules and rule templates
Including a function in a rule expression
Viewing and editing a function
Deleting a function
About predefined functions
Date time processing
Exceptions
Predefined functions in the system library
_CalculateBMI
_CalculateBSA
_CalculateDateTime
_CalculateWaistHipRatio
_CheckPatientInitials
_CompareDates
_CompareDatesWithRange
_Count
_Count(String, Array, Boolean)
_Count(Date, Array)
_Count(Integer, Array)
_Count(Float, Array)
_GetCurrentDate
_GetDateDifference
GetScreeningNumber
GetSiteLocale
GetSiteMnemonic
GetSiteTime
GetTrialName
GetUserName
GetSubjectNumber
_IsValueGreaterThanArray
_IsValueGreaterThanArray (PFDateTime, Array)
_IsValueGreaterThanArray (Float, Array)
_IsValueGreaterThanArray (Integer, Array)
_IsValueGreaterThanOrEqualToArray
_IsValueGreaterThanOrEqualToArray (PFDateTime, Array)
_IsValueGreaterThanOrEqualToArray (Float, Array)
_IsValueGreaterThanOrEqualToArray (Integer, Array)
_IsValueInArray
_IsValueInArray (PFDateTime, Array)
_IsValueInArray (Float, Array)
_IsValueInArray (Integer, Array)
_IsValueInArray (Text, Array)
_IsValueLessThanArray
_IsValueLessThanArray (PFDateTime, Array)
_IsValueLessThanArray (Float, Array)
_IsValueLessThanArray (Integer, Array)
_IsValueLessThanOrEqualToArray
_IsValueLessThanOrEqualToArray (PFDateTime, Array)
_IsValueLessThanOrEqualToArray (Float, Array)
_IsValueLessThanOrEqualToArray (Integer, Array)
_NormalizeDate
_NormalizeDate (PFDateTime, PFDateTime)
_NormalizeDate (PFDateTime, PFDateTime, PFDateTime)
_NormalizeDateToMax
_NormalizeDateToMax(Date)
_NormalizeDateToMax(Array)
Randomize
Example�Using the Randomize function
_SaveToDb(String, String)
About user-defined functions
Function definition requirements
Recommendations for creating user-defined functions
Creating a user-defined function
Importing a user-defined function
Attributes of user-defined functions
DesignerFunctionClassification
DesignerFunction
DesignerParameter
Signing user-defined function assemblies
Securing user-defined functions
Sample function definition code
Constants
Constants tab of the Rule Wizard
Using constants in rules and rule templates
Predefined constants in the System Library
Creating a constant
Deleting a constant
Data mappings
Data Mappings tab
Using data mappings in rules and rule templates
Icons used on the Data Mappings tab
Rule model properties for data series
Count
Values[]
Variables[]
Empty
Value
Methods for data sets
StudyEvent(StudyEvents)
StudyEvent(StudyEvents,Integer)
Form(Forms)
Form(Forms,Integer)
Section(Sections)
Section(Sections,Integer)
Item(Items)
[NameOfCustomDataDimension]
Examples�Data set methods in rule expressions
CurrentStudyEvent()
Additional study objects in the Data Mappings tab
Study events
Forms
Sections
Items
Methods, operators, and literals
Methods
Math methods
Abs
Ceiling
DivRem
Exp
Floor
IEEERemainder
Log
Log10
Max
Min
Pow
Round
Sqrt
Truncate
Examples�Math methods in rule expressions
Methods for study objects
Data set methods
Operators and literals
Frequently used operators
Frequently used literals
Sample expressions for data-entry rules
Sample expressions that use operators
Sample data-entry rule that uses the Data tab
Sample data-entry rule that uses rule model properties
Sample data-entry rules that use methods
Sample data-entry rule that uses constants
Sample data-entry rules that use functions
Sample calculation rules
Sample data-entry rules that use mappings
Option descriptions
Rule expressions
New Rule Template dialog box�Option descriptions
Rule Templates tab�Option descriptions
Functions
Functions tab on the Study and Library Information Explorer bars
Functions tab�Option descriptions
Edit Function dialog box�Option descriptions
Constants
Constants tab on the Study and Library Information Explorer bars
Constants tab�Option descriptions
New Constant dialog box�Option descriptions