Current()

Characteristic Description

Icon


Icon for methods

Availability

Repeating study events, repeating forms, and repeating sections.

Return type and description

Returns the current instance of the repeating study object.

Syntax

NameOfStudyObject.Current( )

Parameters

No parameters.

Example

If form RefName is ConMed:

ConMed.Current( )

For more information, see Examples--Using the Current() method and IsValueInArray function.

Best practices for rules

  • To create a rule that uses a repeating study object's current instance to determine if the conditions of the rule are satisfied, you need to determine whether all instances or a single instance of the repeating study object should be considered in the rule logic.
  • If the rule logic considers more than one instance of the repeating study object, Oracle recommends that you use an array of the repeating study object, using the IsValueInArray function. In the expression, Oracle recommends checking whether the array has any values before using it for comparison.
  • The target of the rule action must be a child study object of the study object referenced by the Current() method. In addition, validation considers the lowest level of Current() that you use. For example, for Visit1 and Form1:
    • The following expression is valid only if you apply the rule to a child study object of Visit1.

      this.Visit1.Current().Form1.I1 == 1

    • The following expression is valid only if you apply the rule to a child study object of Section1.

      this.Visit1.Current().Form1.Current().Section1.Current()I1 == 1

    • The following expression is valid only if you apply the rule to a child study object of Form1.

      this.Visit1.Current().Form1.Current().I1 == 1

For more information, see: