Validation Correction Checks
validation_checks.Rd
Validation correction tests to be run on data before and after validation to test expectations.
Details
As part of the OH cleaning pipelines, raw data is converted to 'semi-clean' data through a process of upserting records from an external Validation Log. To ensure these corrections were made as expected, some checks are performed in this function.
If no existing log exists > no changes are make to data
Same variables
same Rows
No unequal values
If log exists but no changes are recommended > no changes to data.
Same variables
same Rows
No unequal values
Log exists and changes recommended > number of changes are same as log
Same variables
same Rows
Number of changing records in data match records in log
Correct fields and records are being updated
Checks before and after variables and rows are the same
Checks the variable names and row indexes are the same in the logs and the changed data.