Reports which expected source tables and columns are present and which ETL steps will be skipped. Mirror of
omop_etl.source_check.check_source and the omop-duckdb check-source command.
Usage
check_source(source_dir, source_format = NULL, raise_on_error = FALSE)
Arguments
- source_dir
Directory of <table>.csv / <table>.parquet files.
- source_format
"csv", "parquet" or NULL (either).
- raise_on_error
Stop with a source_contract_error naming each missing required table / column.
Value
A list: ok, tables (per table file, present, missing_required, missing_optional, feeds),
skipped (OMOP tables that will not be built) and errors.