You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: resources/schema/rule/Operations.md
+10-5Lines changed: 10 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1013,7 +1013,7 @@ Operations:
1013
1013
1014
1014
### record_count
1015
1015
1016
-
If no filter or group is provided, returns the number of records in the dataset. If filter is provided, returns the number of records in the dataset that contain the value(s) in the corresponding column(s) provided in the filter. If group is provided, returns the number of rows matching each unique set of the grouping variables. These can be static column name(s) or can be derived from other operations like get_dataset_filtered_variables.
1016
+
If no filter or group is provided, returns the number of records in the dataset. If filter is provided, returns the number of records in the dataset that contain the value(s) in the corresponding column(s) provided in the filter. Filter can have a wildcard `&` that when added to the end of the filter value will look for all instances of that prefix (see 4th example below). If group is provided, returns the number of rows matching each unique set of the grouping variables. These can be static column name(s) or can be derived from other operations like get_dataset_filtered_variables.
1017
1017
1018
1018
If both filter and group are provided, returns the number of records in the dataset that contain the value(s) in the corresponding column(s) provided in the filter that also match each unique set of the grouping variables.
1019
1019
@@ -1058,7 +1058,7 @@ Example: return the number of records where QNAM starts with "RACE" (matches RAC
1058
1058
- operation: record_count
1059
1059
id: $race_records_in_dataset
1060
1060
filter:
1061
-
QNAM: "RACE%"
1061
+
QNAM: "RACE&"
1062
1062
group:
1063
1063
- "USUBJID"
1064
1064
```
@@ -1291,7 +1291,7 @@ Match Datasets:
1291
1291
1292
1292
### variable_exists
1293
1293
1294
-
Flag an error if MIDS is in the dataset currently being evaluated and the TM domain is not present in the study
1294
+
Operation operates only on original submission datasets regardless of rule type. Flags an error if a column exists is in the submission dataset currently being evaluated.
1295
1295
1296
1296
Rule Type: Domain Presence Check
1297
1297
@@ -1312,13 +1312,18 @@ Operations:
1312
1312
### variable_is_null
1313
1313
1314
1314
Returns true if a variable is missing from the dataset or if all values within the variable are null or empty string. This operation first checks if the target variable exists in the dataset, and if it does exist, evaluates whether all its values are null or empty.
1315
-
The operation can work with both direct variable names and define metadata references (variables starting with "define_variable").
1315
+
The operation supports two sources via the `source` parameter:
1316
+
1317
+
- **`submission`** : checks against the raw submission dataset
1318
+
- **`evaluation`** (default): checks against the evaluation dataset built based on the rule type
1316
1319
1317
1320
```yaml
1321
+
# Dataset level check - is this variable entirely null/missing from the source data?
0 commit comments