Load drug prescription records into the warehouse
load_medications(
conn,
prescriptions,
administrations = NULL,
overwrite = FALSE,
transitive_closure_controls = transitive_closure_control(),
silent = FALSE
)
a database connection
a data frame of prescriptions passing the
validate_prescriptions()
function. Note: if variables
therapy_id
or combination_id
are provided, they will be preserved
as they are instead of being populated by Ramses
a data frame of drug administrations passing the
validate_administrations()
function
if TRUE
(the default), will overwrite existing
medication tables
parameters controlling (see
transitive_closure_control()
)
if TRUE
, the progress bar will be hidden. The default is
FALSE
.