Skip to content

Execute DQ on Extension with Long format thresholds - #682

Open
MaximMoinat wants to merge 13 commits into
developfrom
long-format-thresholds
Open

Execute DQ on Extension with Long format thresholds#682
MaximMoinat wants to merge 13 commits into
developfrom
long-format-thresholds

Conversation

@MaximMoinat

@MaximMoinat MaximMoinat commented Aug 14, 2026

Copy link
Copy Markdown
Collaborator

Adds function executeDqChecksOnExtension which takes check thresholds in long format and only executes on these tables/fields. See vignette for explanation and minimal usage example.

Name of the function to be decided. The defining feature is that you can specify the thresholds in a long format, which makes it easier to define for custom/extension tables.

While this is a stand-alone function that uses the DQD machinery, the following small changes to DQD were needed. Behaviour should have remained the same.

  • isForeignKey.sql refactored to allow checking against non-CDM tables. Foreign key tables were hardcoded.
  • runCheck.R refactoring to handle when check not found in threshold (in same logic as no rows found with enabled check)
  • testthat/setup.R moved test threshold files to the testthat folder and read these with test_path()

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant