5 Create validation checks
Validation checks, also called edit checks, are programs designed to identify flawed data, or discrepancies (also called queries). Each one must check for a single problem and apply the same text, state, and action to each discrepancy created. Validation checks can test any combination of data that is contained in a single clinical data model. To run a validation check comparing data that originated in both InForm and a lab, create a transformation to put InForm and lab data in one clinical data model.
When you save the validation check, it creates a target table with columns corresponding to source table columns you select and a row for each discrepancy identified. Each time it runs it updates the table with new or changed data. The data in this table is displayed in the Validation Checks Listings page.
You specify whether or not a validation check automatically closes discrepancies it created when their underlying data item is updated to be valid.
- Create a validation check batch
- Validation checks
- Create a validation check
- Complete a validation check without a custom program
- Complete a validation check using a custom program
- Copy a validation check batch
- Copy a validation check
- Disable or enable a validation check
- Reorder validation checks within an ordered batch
- Install a validation check batch
- Run validation check batch and view run history
- View discrepancies created by a validation check
- Upgrade validation checks to synchronize with models
- View audited modifications to a validation check or batch
- FAQs
Create a validation check batch
Validation checks are executed in batches. Before you create a validation check you must create a batch for it. Use batches to group validation checks in logical ways:
-
Checks that have dependencies on each other so they must be executed in a particular order.
-
Standard checks kept together for reuse in many studies.
-
Checks on the same clinical data model that should all be triggered by the same event or scheduled for the same frequency.
Next: Create a validation check.
Parent topic: Create validation checks
Validation checks
This window shows any validation checks that have already been created for the selected validation check batch. To make any changes, check out the batch.
-
To create a new validation check, click the
Add icon. See Create a validation check.
-
To copy a validation check from another study, select Copy Checks from the Checks drop-down list. See Copy a validation check.
-
To modify an existing validation check, selecti it and click the
Modify icon. For an explanation of the fields, see Create a validation check or Complete a validation check using a custom program.
-
To delete a validation check, select it and click the
Delete icon.
Parent topic: Create validation checks
Create a validation check
Before you create a validation check, you must create a batch in which to execute it; see Create a validation check batch.
Next: Complete the validation check:
Parent topic: Create validation checks
Complete a validation check without a custom program
Prerequisites: Create a validation check batch and Create a validation check.
- Select columns to display in the validation checks listings page
- Select packages
- Add table aliases
- Specify validation check criteria
- Generate, test, view, and save source code
Parent topic: Create validation checks
Select columns to display in the validation checks listings page
Identify the columns you want to display in the Validation Check Listings page. Include any columns the validation check will operate on. The system creates a SELECT clause for the query based on these selections.
-
Continuing in the Add Validation Check window, in the Source pane, expand the node for the table or tables with data you want to display in the Validation Checks Listings page.
Note:
Tables and columns marked Not Used in the transformation are not displayed here, nor are uninstalled tables.
-
Select columns by moving them into the Selected Columns tab. You can work several ways:
-
Drag and drop selected columns or tables.
-
Select columns or tables and click the
Add to Select statement icon.
-
To write an expression that operates on multiple columns, add all columns in the expression to the same row:
-
Move one column into Selected Columns and highlight it there.
-
Select the additional columns and click the
Use in Expression arrow icon.
-
-
-
Select a Table Alias for each column used in an expression. If there is only one defined for the table, the system adds it automatically.
To add an alias, go to the Table Alias tab. See Add table aliases.
-
Enter the Column Header for Display. This header is displayed in the Validation Checks Listings page.
-
Expression: Add an expression, if needed, to change data display, for example, to mask blinded data, or to append a string to all values in the column, or to concatenate two column values in a single column. Either:
For example, to prefix ‘Test' before the SUBJID, write:
Select ‘Test'+SUBJID
.-
Enter free text.
Important:
-
If you reference a static package or function in free text, you must select it in the Selected Packages tab.
-
In free text, use just the column name, not the table.column format, unless you need to use an alias, as in a self-join. In that case the alias.column format is required.
-
-
Click the
Modify Expression icon; see Use the Expression Builder for details. You can edit code generated by the Expression Builder in this field afterward.
If you use the Expression Builder, you do not need to use the Select Packages tab.
Note:
If you select a column that contains masked data, write an expression for the column to display masking values.
Validation checks can evaluate real data that is masked and create a discrepancy on it.
Target table is blinded if source table supports table/column/cell/row level blinding. Since target tables are auto generated and they are not accessible in DMW other than see the data in listing. So, we cannot define row/column/cell level blinding on custom listing and VC's target table. Target table is authorized when authorize attribute is set for custom listing and VC.
-
-
Discrepant Table and Column: In the upper portion of the window, designate one data item as the one against which discrepancies are created. If the validation check logic processes two or more data items, select one of them.
Tip:
You must specify Selected Columns before you can specify the primary table or column.- In the Discrepant Table field, select the table that contains the discrepant data.
- In the Discrepant Column field, select the column that contains the discrepant data.
Parent topic: Complete a validation check without a custom program
Select packages
If you use free text to write an expression and the expression references a static package or function, you must select the package or function in the Select Packages tab.
- Use the Query By Example fields above the columns to search for the package.
- Select the package(s) you are using in the validation check.
- Click OK.
Next: Add table aliases.
Parent topic: Complete a validation check without a custom program
Add table aliases
Columns used in an expression must have a 3-character table alias.
Parent topic: Complete a validation check without a custom program
Specify validation check criteria
In the Criteria tab, specify the data condition the validation check is looking for. This becomes the WHERE clause.
Either:
- Enter the code directly in the Criteria pane.
- Click the
Add or Modify Criteria icon to open the Expression Builder. See Use the Expression Builder for details.
Important:
-
If you reference a static package or function in free text, you must select it in the Selected Packages tab.
-
In free text, use just the column name, not the table.column format, unless you need to use an alias, as in a self-join. In that case the alias.column format is required.
-
Parent topic: Complete a validation check without a custom program
Generate, test, view, and save source code
- Click Test. The system generates the code, runs the validation check and displays the records retrieved.
- To view the generated PL/SQL source code, click View Source. The button is inactive if the validation check uses a custom program.
- Click OK.
Parent topic: Complete a validation check without a custom program
Complete a validation check using a custom program
Prerequisites: Create a validation check batch and Create a validation check.
-
Continuing in the Add Validation Check window, select Create VC using a Custom Program.
-
Click the
Select a Program icon.
-
Use the Query By Example fields above the columns to search for the package.
-
Select the package.
-
Click OK.
-
-
In the Select Source Tables tab, move the tables that contain data you want to display, or that your program operates on, to the Select edTables box.
-
Discrepant Table and Column: In the upper portion of the window, designate one data item as the one against which discrepancies are created. If the validation check logic processes two or more data items, select one of them.
Tip:
You must specify Selected Columns before you can specify the primary table or column.
-
In the Discrepant Table field, select the table that contains the discrepant data.
-
In the Discrepant Column field, select the column that contains the discrepant data.
-
-
Click OK.
Parent topic: Create validation checks
Copy a validation check batch
You can copy a validation check batch from another study or from a different clinical data model in the same study. Disabled validation checks, if any, are included in the copy. No source tables are copied.
Tip:
Copy validation check batches after completing the transformation that writes to the model, so that the system can handle them appropriately.
Parent topic: Create validation checks
Copy a validation check
- Click the Study Configuration icon
at the top of any page and then click the Validation Checks tab.
- Select the batch into which you want to copy a validation check.
- Select Copy Checks from the Checks drop-down.
- Select the project (or other study category), then the study, then the model.
- Select the batch and validation check.
- Click OK.
Parent topic: Create validation checks
Reorder validation checks within an ordered batch
Note:
If a validation check has Enabled set to No, the system ignores its execution order number and does not run it.
Parent topic: Create validation checks
Install a validation check batch
After creating or modifying a validation check batch, you must install it to make it usable. See What happens during installation? for details.
Validation check batch installation fails if there are destructive changes in the model such as the removal of a column or table that the validation check reads. See Why does it say Upgrade Required? for details.
-
Click the Study Configuration icon
at the top of any page and then click the Validation Checks tab.
-
Select one or more validation check batches, then select one of the following from the Install drop-down list:
-
Install Batch upgrades all tables and programs and does not delete any data.
-
Full Install drops and replaces all tables and programs, deleting all data. Full installation is not available in the Production lifecycle.
Note:
The installation options are available only if all selected batches are installable:- The Version and the Installable Version must be the same.
- See Validation check batch installation requirements for details.
-
-
To see the updated job status in the Install Status field, click the
Refresh icon.
-
To see the log file:
-
Go to the Home page, Validation Checks tab.
-
From the Model drop-down list, select the source clinical data model.
-
In the VC Batch Name column, select the batch.
-
Click the icon in the Install Job Log column in the same row.
-
Parent topic: Create validation checks
Run validation check batch and view run history
Run a validation check batch
You must run validation checks as a batch.
Parent topic: Run validation check batch and view run history
View discrepancies created by a validation check
- Click the Data Management icon
at the top of any page to reach the Listings page.
- Select the source clinical data model.
- Select Validation Checks from the bottom of the left pane.
- Expand the node for the batch containing the validation check.
- Select the validation check.
Parent topic: Create validation checks
Upgrade validation checks to synchronize with models
If there have been metadata changes in a clinical data model—for example, an increase of column length—that affect a transformation or validation check, the system sets the transformation or validation check to Upgrade Required. You must run the upgrade job to synchronize the transformation or validation check with the model.
-
Select one or more batches and click the Upgrade Batch icon or reinstall the batch(es).
-
If columns or tables have been removed, mappings may be broken. You must fix these manually.
-
When you next install the batch(es), installation ends with a warning if a validation check refers to a table or column that no longer exists in the source model. You must do the synchronization manually.
Parent topic: Create validation checks
View audited modifications to a validation check or batch
To export the change records to Excel, click the Export to Excel button. A maximum of 1000 records can be exported. They will be the 1000 most recent records.
Parent topic: Create validation checks
FAQs
- Why can't I install my validation check batch?
- Why are some validation checks disabled?
- Do I have to check out the batch to disable a validation check?
- Why does it say Upgrade Required?
- Why isn't the transformation triggering my validation check batch job?
- Where are custom programs stored?
Parent topic: Create validation checks
Why can't I install my validation check batch?
It may be because the clinical data model is not installed. Install the model and try again.
Parent topic: FAQs
Why are some validation checks disabled?
Validation checks that read from a table or column marked Not Used are automatically disabled. If the table or column is later marked as Used, you must manually reenable the validation checks to run them.
A person may have manually disabled a validation check to prevent it from running.
To find out why a particular validation check is disabled, hover over the value in the Disabled Reason column.
Parent topic: FAQs
Do I have to check out the batch to disable a validation check?
No. You can disable or enable checks whether the validation check batch is checked in or out.
Parent topic: FAQs
Why does it say Upgrade Required?
If there have been metadata changes in the source clinical data model—for example, change of column length—that affect any validation check in a batch, the system sets the value of the Upgradable column to Required. Select the batch, then select Upgrade Batch from the Actions drop-down, then install the batch.
Parent topic: FAQs
Why isn't the transformation triggering my validation check batch job?
Set this up in two places:
- In the transformation that writes to the clinical data model that the validation check reads from, set Can Trigger to Yes in Add or Remove Source Models.
- In the validation check batch, select Can Be Triggered.
Parent topic: FAQs
Where are custom programs stored?
All custom programs for both validation checks and transformations are stored in the DMW_UTILS domain/namespace. Any other locations listed are subdomains inside that domain.
Parent topic: FAQs