If the function is executed with parameter dbCreate=FALSE
(default),
a connection to the specified database is opened. Dependent of the type of
database (parameter dbType
), a login using specified user credentials
(parameters dbUser
and dbPwd
) may be done.
The database must contain a set of tables representing the SEND domains
compliant with SEND IG version 3.0 and/on 3.1.
If the function is executed with parameter dbCreate=TRUE
, an empty
database is created and opened. This is only supported for a SQLite database,
i.e. parameter dbType='sqlite'
. The SEND domain tables may then be
created by execution of the function dbCreateSchema
.
Besides the open database connection, a set of CDISC SEND controlled
terminology values are imported. If parameter ctFile
is specified with
a path to an Excel file containing a CDISC SEND ct version downloaded from
https://evs.nci.nih.gov/ftp1/CDISC/SEND/, the content
from this file is imported and used by some of the package's functions.
Else a set of CDISC SEND CT values which are included in the packages is
used by the package's functions. It's the newest CDISC SEND CT version at the
time of the build of the current version of the package which is included.