OHDSI Home | Forums | Wiki | Github

CohortDiagnostics on an Existing Cohort

Hi, I’ve created cohorts to use in FeatureExtraction where I can generate standardized Mean Differences and look at lots of cools stuff. Before I do this, I’d like to evaluate the cohorts using the R CohortDiagnostics package. As I am old fashioned, I created the cohorts and saved a cohort table on Snowflake using SQL. The cohorts have the standard cohort definition variables (cohort_definition_id, subject_id, etc). I’d like to be able to reference this cohort for cohort diagnostics, but I can’t figure out how to do this.

codxData ← executeDiagnostics(connectionDetails = connectionDetails,
cdmDatabaseSchema = “PA_openclaims.FULL_202303_OMOP_V5”,
exportFolder = “/cohortdiagnostics”,
cohortDatabaseSchema = “Pa_openclaims.study_reference”,
cdmVersion=“5”,
cohortTable = “my_cohort”,
cohortId = 1010,
minCellCount=5)

I receive this error, but I’m not sure how to reference an existing cohort that isn’t stored in Atlas.

Error in executeDiagnostics(connectionDetails = connectionDetails, cdmDatabaseSchema = “PA_openclaims.FULL_202303_OMOP_V5”, :
argument “databaseId” is missing, with no default

t