Skip to contents

Entry point

One call that runs the whole validation pipeline and writes the report.

validate_cohort()
Validate a patient cohort for real-world-evidence use

Connection

Open and close a CDM connection with table validation.

cdm_connect()
Connect to an OMOP CDM database
cdm_disconnect()
Disconnect from a CDM database

Demo data

A small synthetic OMOP CDM in DuckDB for examples and trying the package offline.

example_cdm()
Create a small in-memory OMOP CDM for examples and demos

Validation modules

The four checks, callable individually.

run_concepts()
Module 1 - Concept Coverage
run_attrition()
Module 2 - Cohort Attrition Audit
run_density()
Module 3 - Temporal Data Density
run_covariates()
Module 4 - Covariate Feasibility

Reporting

Render the HTML report, write the JSON sidecar, and build the summary.

render_validation_report()
Render the validation report (HTML) and write the JSON sidecar
write_results_json()
Write the JSON sidecar (no rendering)
build_check_summary()
Build the traffic-light validation summary table
classify_status()
Classify a vector of module flags into a traffic-light status