R/database.R
load_inpatient_microbiology.Rd
Load microbiology cultures and susceptibilities into the warehouse
load_inpatient_microbiology(
conn,
specimens,
isolates,
susceptibilities,
overwrite = TRUE
)
a database connection
a data frame with one row per specimen sent
to laboratory and
validated with validate_microbiology()
a data frame with one row per microorganism
isolated from the laboratory specimen and
validated with validate_microbiology()
a data frame with one row per susceptibility
validated with validate_microbiology()
if TRUE
(the default), will overwrite any existing
microbiology database table