getTemporalData {Achilles} | R Documentation |
getTemporalData
Description
getTemporalData
Retrieve specific monthly analyses data to support temporal
characterization.
Usage
getTemporalData(
connectionDetails,
cdmDatabaseSchema,
resultsDatabaseSchema,
analysisIds = NULL,
conceptId = NULL
)
Arguments
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'. |
analysisIds |
(OPTIONAL) A vector containing the set of Achilles analysisIds for
which results will be returned. The following are supported:
|
conceptId |
(OPTIONAL) A SNOMED concept_id from the |
Details
getTemporalData
Assumes achilles
has been run.
Currently supported Achilles monthly analyses are: 202 - Visit Occurrence 402 - Condition occurrence 602 - Procedure Occurrence 702 - Drug Exposure 802 - Observation 1802 - Measurement 2102 - Device
Value
A data frame of query results from DatabaseConnector
Examples
## Not run:
pneumonia <- 255848
monthlyResults <- getTemporalData(connectionDetails = connectionDetails,
cdmDatabaseSchema = "cdm",
resultsDatabaseSchema = "results", conceptId = pneumonia)
## End(Not run)