detectCohortsByName: Detect the presence of string matched Cohort definitions.

View source: R/AutoGeneratedDefinitions.R

detectCohortsByNameR Documentation

Detect the presence of string matched Cohort definitions.

Description

Detect the presence of string matched Cohort definitions.

Usage

detectCohortsByName(pattern, negate = FALSE, baseUrl)

Arguments

pattern

A pattern to look for. See str_detect for details.

negate

If TRUE, return non-matching elements. See str_detect for details.

baseUrl

The base URL for the WebApi instance, for example: "http://server.org:80/WebAPI".

Details

Detect string matched Cohort definition names from the WebApi, and retrieve metadata definitions.

Value

FALSE if no matches. If matched - output from getCohortDefinitionsMetaData

Examples

## Not run: 
detectCohorts(pattern = "this text string to search in pattern",
              baseUrl = "http://server.org:80/WebAPI")

## End(Not run)

OHDSI/ROhdsiWebApi documentation built on March 15, 2023, 1:23 p.m.