Description Usage Arguments Details Value Examples
CatalogueExport
exports a set of descriptive statistics summary from the CDM, to be uploaded in the Database Catalogue.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | catalogueExport(
connectionDetails,
cdmDatabaseSchema,
resultsDatabaseSchema = cdmDatabaseSchema,
scratchDatabaseSchema = resultsDatabaseSchema,
vocabDatabaseSchema = cdmDatabaseSchema,
oracleTempSchema = resultsDatabaseSchema,
sourceName = "",
analysisIds = "",
createTable = TRUE,
smallCellCount = 5,
cdmVersion = "5",
createIndices = TRUE,
numThreads = 1,
tempPrefix = "tmpach",
dropScratchTables = TRUE,
sqlOnly = FALSE,
outputFolder = "output",
verboseMode = TRUE
)
|
connectionDetails |
An R object of type |
cdmDatabaseSchema |
Fully qualified name of database schema that contains OMOP CDM schema. On SQL Server, this should specifiy both the database and the schema, so for example, on SQL Server, 'cdm_instance.dbo'. |
resultsDatabaseSchema |
Fully qualified name of database schema that we can write final results to. Default is cdmDatabaseSchema. On SQL Server, this should specifiy both the database and the schema, so for example, on SQL Server, 'cdm_results.dbo'. |
scratchDatabaseSchema |
Fully qualified name of the database schema that will store all of the intermediate scratch tables, so for example, on SQL Server, 'cdm_scratch.dbo'. Must be accessible to/from the cdmDatabaseSchema and the resultsDatabaseSchema. Default is resultsDatabaseSchema. Making this "#" will run CatalogueExport in single-threaded mode and use temporary tables instead of permanent tables. |
vocabDatabaseSchema |
String name of database schema that contains OMOP Vocabulary. Default is cdmDatabaseSchema. On SQL Server, this should specifiy both the database and the schema, so for example 'results.dbo'. |
oracleTempSchema |
For Oracle only: the name of the database schema where you want all temporary tables to be managed. Requires create/insert permissions to this database. |
sourceName |
String name of the data source name. If blank, CDM_SOURCE table will be queried to try to obtain this. |
analysisIds |
(OPTIONAL) A vector containing the set of CatalogueExport analysisIds for which results will be generated.
If not specified, all analyses will be executed. Use |
createTable |
If true, new results tables will be created in the results schema. If not, the tables are assumed to already exist, and analysis results will be inserted (slower on MPP). |
smallCellCount |
To avoid patient identifiability, cells with small counts (<= smallCellCount) are deleted. Set to NULL if you don't want any deletions. |
cdmVersion |
Define the OMOP CDM version used: currently supports v5 and above. Use major release number or minor number only (e.g. 5, 5.3) |
createIndices |
Boolean to determine if indices should be created on the resulting CatalogueExport tables. Default= TRUE |
numThreads |
(OPTIONAL, multi-threaded mode) The number of threads to use to run CatalogueExport in parallel. Default is 1 thread. |
tempPrefix |
(OPTIONAL, multi-threaded mode) The prefix to use for the scratch CatalogueExport analyses tables. Default is "tmpach" |
dropScratchTables |
(OPTIONAL, multi-threaded mode) TRUE = drop the scratch tables (may take time depending on dbms), FALSE = leave them in place for later removal. |
sqlOnly |
Boolean to determine if CatalogueExport should be fully executed. TRUE = just generate SQL files, don't actually run, FALSE = run CatalogueExport |
outputFolder |
Path to store logs and SQL files |
verboseMode |
Boolean to determine if the console will show all execution steps. Default = TRUE |
CatalogueExport
exports a set of descriptive statistics summary from the CDM, to be uploaded in the Database Catalogue.
An object of type catalogueResults
containing details for connecting to the database containing the results
1 2 3 4 5 6 7 8 9 10 11 12 13 |
## Not run:
connectionDetails <- createConnectionDetails(dbms="sql server", server="some_server")
results <- achilles(connectionDetails = connectionDetails,
cdmDatabaseSchema = "cdm",
resultsDatabaseSchema="results",
scratchDatabaseSchema="scratch",
sourceName="Some Source",
cdmVersion = "5.3",
numThreads = 10,
outputFolder = "output")
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.