existsCohortName: Check if Cohort definition name exists.

View source: R/AutoGeneratedDefinitions.R

existsCohortNameR Documentation

Check if Cohort definition name exists.

Description

Check if Cohort definition name exists.

Usage

existsCohortName(cohortName, baseUrl)

Arguments

cohortName

A string name for the Cohort to be checked.

baseUrl

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

Details

Check if a string name already exists in the WebApi as a Cohort definition name.

Value

If found, the function will return a tibble with details of the specification. If not found, FALSE will be returned.

Examples

## Not run: 
existsCohortName(cohortName = "this text string needs to be checked",
                 baseUrl = "http://server.org:80/WebAPI")

## End(Not run)

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