Learn R Programming

Achilles (version 1.4)

exportToJson: exportToJson

Description

exportToJson Exports Achilles statistics into a JSON form for reports.

Usage

exportToJson(connectionDetails, cdmDatabaseSchema, resultsDatabaseSchema,
  outputPath = getwd(), reports = allReports, cdmVersion = "4",
  vocabDatabaseSchema = cdmDatabaseSchema)

Arguments

connectionDetails

An R object of type ConnectionDetail (details for the function that contains server info, database type, optionally username/password, port)

cdmDatabaseSchema

Name of the database schema that contains the OMOP CDM.

resultsDatabaseSchema

Name of the database schema that contains the Achilles analysis files. Default is cdmDatabaseSchema

outputPath

A folder location to save the JSON files. Default is current working folder

reports

A character vector listing the set of reports to generate. Default is all reports.

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'. See data(allReports) for a list of all report types

Value

none

Details

Creates individual files for each report found in Achilles.Web

Examples

Run this code
# NOT RUN {
  connectionDetails <- createConnectionDetails(dbms="sql server", server="yourserver")
  exportToJson(connectionDetails, cdmDatabaseSchema="cdm4_sim", outputPath="your/output/path")
# }

Run the code above in your browser using DataLab