dsqRun: Run a OMOP dictionary aggregate query

dsqRunR Documentation

Run a OMOP dictionary aggregate query

Description

Run one of the preset queries (previously retrieved with dsqShowQueries)

Usage

dsqRun(
  domain = NULL,
  query_name = NULL,
  input = NULL,
  db_connection = NULL,
  async = TRUE,
  datasources = NULL
)

Arguments

domain

a character, the query domain (ex. 'care_site')

query_name

the query name as it appears in the result of dsqShowQueries

input

a vector of input parameters, in the same order as they appear in the text of the query. Information is available in dsqShowQueries() for each case.

db_connection

a character, the name of the connection to the database. This must exist in the remote session(s) - it can be created with datashield.assign.resource(). If no db_connection is provided, the first connection found in the renote session (alphabetically) will be used.

async

same as in datashield.assign

datasources

same as in datashield.assign

Value

the query result


sib-swiss/dsQueryLibrary documentation built on Oct. 12, 2023, 10:05 a.m.