powered by
High-level wrapper to generate and export a hybrid EHR dataset
generate_hybrid_ehr( n_patients = 500, n_sites = 3, covid_focused = TRUE, include_ct_links = FALSE, output_dir, seed = NULL, verbose = TRUE )
A list with:
The in-memory dataset list (as from generate_hybrid_ehr_dataset).
generate_hybrid_ehr_dataset
The output directory path where files were written.
A list containing:
Generated dataset object
Path to exported files
Number of unique patients.
Number of sites/hospitals to simulate.
Logical; if TRUE, use COVID-era encounter and lab patterns.
Logical; if TRUE, add CT timing variables and a CT severity score in the CT research view.
Directory for exported files.
Optional integer used to set the random seed for reproducibility.
Logical; if TRUE, print progress messages to the console.
# \donttest{ ehr <- generate_hybrid_ehr_dataset( n_patients = 10, seed = 123, verbose = FALSE ) export_hybrid_ehr_dataset( ehr, output_dir = tempdir(), verbose = FALSE ) # }
Run the code above in your browser using DataLab