This function finds the sql files in a network study package, loads, renders and translates the sql then implements it
createCohort(cohortDetails, cohortLocation, connectionDetails,
cdmDatabaseSchema, cohortDatabaseSchema, cohortTable,
oracleTempSchema = cdmDatabaseSchema, package)
A dataframe containing two columns: cohortName and cohortId (if missing then the skeleton default is used when available)
A string specifying the location of the cohort sql files (uses default skeleton location if missing)
The connection details
A string specifying the CDM database schema e.g., database.dbo
A string specifying the cohort database schema e.g., cohort_database.dbo
A string specifying the cohort table
Temp oracle schema
The name of the package
A data frame with the cohortName, cohortId, size
This is used by people running network studies using the package skeleton to enable users to create cohorts on their platform