Load drug prescription records into the warehouse

load_medications(
  conn,
  prescriptions,
  administrations = NULL,
  overwrite = FALSE,
  transitive_closure_controls = transitive_closure_control(),
  silent = FALSE
)

Arguments

conn

a database connection

prescriptions

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

administrations

a data frame of drug administrations passing the validate_administrations() function

overwrite

if TRUE (the default), will overwrite existing medication tables

transitive_closure_controls

parameters controlling (see transitive_closure_control())

silent

if TRUE, the progress bar will be hidden. The default is FALSE.