Outputs a 5-column manifest:
person_id, person_source_value, visit_occurrence_id, visit_source_value, index_date
with strict row-order preservation.
Usage
export_companion_manifest(
source,
output_path = NULL,
con = NULL,
cohort_table = NULL,
person_col = NULL,
visit_col = NULL,
index_date_col = NULL,
person_source_col = NULL,
visit_source_col = NULL
)Arguments
- source
Input data frame, DuckDB connection, table name, or CSV/Parquet path.
- output_path
Optional path to write output CSV or Parquet file.
- con
Optional active DuckDB connection.
- cohort_table
Table name if source is a connection.
- person_col
Person ID column name in source.
- visit_col
Visit occurrence ID column name in source.
- index_date_col
Index date column name in source.
- person_source_col
Person source value column in source.
- visit_source_col
Visit source value column in source.
