Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The WhereClause class is used to define data selection criteria that are used for the selection and grouping of data for analysis.

Excerpt Include
ARSP:Class Diagram: WhereClause
ARSP:Class Diagram: WhereClause

There are 3 specializations of the WhereClause class:

  • The AnalysisSet class is used to define subject populations (i.e., criteria for the selection of subjects for inclusion in an analysis), as described in the AnalysisSet section.
  • The DataSubset class is used to define criteria for the selection of data records for inclusion in an analysis, as described in the DataSubset section.
  • The Group class, through used of its two specializations, AnalysisGroup and DataGroup, is used to define the criteria for grouping subject and data records (respectively) for analysis, as described in the DataGroupingFactor section.

Each instance of the WhereClause class (or any of its specializations) defines either:

  • A simple condition based on the value or values for single dataset variable or
  • A compound expression that either:
    • combines selection criteria, which are defined in other instances of the WhereClause class (or its specializations) or
    • negates the selection criteria defined in another single instance of the WhereClause class (or its specializations) .

Compound expressions can combine or negate simple conditions and other compound expressions.

In each instance of the WhereClause class,

  • The level attribute contains an integer that indicates the level at which the specified condition is being applied, with a value of "1" indicating the "top" level. The level attribute contains a value greater than 1 only in instances of the WhereClause class that are used to define sub-conditions within a compound expression.
  • The order attribute contains an integer to order this instance of the WhereClause class with respect to other other instance of the WhereClause at the same level.
    • When the value of the level attribute is greater than 1 (i.e., this instance of the WhereClause class defines one of the selection criteria being combined in a compound expression), the order attribute defines the order of this instance of the WhereClause class with respect to the other selection criteria with which it is being combined.
    • When the value of the level attribute is "1":
      • In instances of either of the specializations of the Group class, the order attribute is used to define the order of the group with respect to other groups in the grouping factor.
      • In all other situations, the order attribute should have a value of "1".

In an instance of the WhereClause class that defines a simple condition, the condition attribute contains an instance of the WhereClauseCondition class in which:

  • The dataset attribute contains the name of the dataset in which the condition is being applied.
  • The variable attribute contains the name of the variable (within the specified dataset) to which the condition applies.
  • The comparator attribute contains a value from the ConditionComparatorEnum enumeration ("EQ" for "equals", "LT" for less than, etc.) to indicate how values of the specified dataset variable are compared with the specified selection value(s).
  • The value attribute specifies the selection value, or values, for comparison with values in the specified dataset variable. If the value of the comparator attribute is "IN" or "NOTIN", there should be at least 2 values specified in the value attribute; otherwise there should be no more than 1 value specified in the value attribute. The value attribute may contain no value to define a condition based on a missing value. 
Example








SelectionGrouping
SubjectsanalysisSetsanalysisGroupings
DatadataSubsetsdataGroupings

...