Skip to contents

Executes vectorized pure-SQL OHDSI DQD checks (conformance, completeness, plausibility, and temporal logic) directly in DuckDB and optionally writes standard OHDSI DQD JSON.

Usage

run_dqd(
  con,
  output_json = NULL,
  check_levels = c("TABLE", "FIELD", "CONCEPT", "TEMPORAL"),
  cdm_version = "5.4"
)

Arguments

con

Active DuckDB DBI connection.

output_json

Optional file path to write standard OHDSI DQD JSON.

check_levels

Character vector of check categories: "TABLE", "FIELD", "CONCEPT", "TEMPORAL".

cdm_version

Character CDM version (default "5.4").

Value

A list with Metadata, Overview, and CheckResults.