cc_from_list: Create a clinical dictionary object using a list of options....

View source: R/core.R

cc_from_listR Documentation

Create a clinical dictionary object using a list of options. This is used by subsequent functions to direct building and querying.

Description

The preferred approach is to use cc_from_file as this is more secure.

Usage

cc_from_list(dict_type, options)

Arguments

dict_type

Clinical concept dictionary type. Currently supported are NHSReadV2, NHSReadV3, NHSICD10 and NHSSnomedCT

options

List of options to use to create a clinical dictionary object

Global options (* specifies required options) type - specifies the database management system being used. Currently supported are mysql and sqlite [default]) dbname* - when mysql this specifies the database name; when sqlite specifies the location of the database file

user - database user pass - database password host - database host (default localhost) port - database port (default 3306)

See Also

cc_from_file

Examples

## Not run: 
dict<-cc_from_list(list(type="sqlite",dbname=paste0(tempdir(),"/sqlitedb.sqlite")))

#clinical dictionary object then passed to other functions
...

## End(Not run)


rcfgroup/clinconcept documentation built on Nov. 12, 2022, 2:40 a.m.