Load episodes of care records into the warehouse

load_inpatient_episodes(
  conn,
  patients_data,
  episodes_data,
  wards_data = NULL,
  overwrite = TRUE
)

Arguments

conn

a database connection

patients_data

a data frame validated with validate_inpatient_episodes()

episodes_data

a data frame validated with validate_inpatient_episodes()

wards_data

a data frame validated with validate_inpatient_episodes()

overwrite

if TRUE (the default), will overwrite any existing inpatient_episodes database table