getCohortData: Get selected generated cohorts patient data

View source: R/importData.R

getCohortDataR Documentation

Get selected generated cohorts patient data

Description

This function queries all patient ID's in selected cohorts

Usage

getCohortData(
  cdm,
  studyEnv,
  selectedTarget,
  selectedStates,
  baseUrl = "http://localhost:8080/WebAPI",
  pathToStudy = studyEnv$pathToStudy,
  studyName = studyEnv$studyName,
  stateCohortLabels = NULL
)

Arguments

cdm

common data model reference object

studyEnv

environment created with cohort2TrajectoryConfiguration

selectedTarget

The sample cohort ID

selectedStates

Vector of included cohort ID's

baseUrl

the base URL for the WebApi instance

pathToStudy

path to folder which contains folder named after studyName

studyName

name chosen for study, is used as a folder name

stateCohortLabels

Vector of the customized labels of the state cohorts

Value

A dataframe with selected patients. Columns: cohort_definition_id, subject_id, cohort_start_date, cohort_end_date


HealthInformaticsUT/Cohort2Trajectory documentation built on March 1, 2025, 7:47 p.m.