R/CreateArgFunctions.R
createGetDbCaseDataArgs.Rd
Create a parameter object for the function getDbCaseData
createGetDbCaseDataArgs(
useNestingCohort = FALSE,
useObservationEndAsNestingEndDate = TRUE,
getVisits = FALSE,
studyStartDate = "",
studyEndDate = "",
maxNestingCohortSize = 1e+07,
maxCasesPerOutcome = 5e+05
)
Should the study be nested in a cohort (e.g. people with a specific indication)? If not, the study will be nested in the general population.
When using a nesting cohort, should the observation period end date be used instead of the cohort end date?
Get data on visits? This is needed when matching on visit date is requested later on.
A calendar date specifying the minimum date where data is used. Date format is 'yyyymmdd'.
A calendar date specifying the maximum date where data is used. Date format is 'yyyymmdd'.
If the nesting cohort is larger than this number it will be sampled to this size. maxCohortSize = 0 indicates no maximum size.
If there are more than this number of cases for a single outcome cases will be sampled to this size. maxCasesPerOutcome = 0 indicates no maximum size.
Create an object defining the parameter values.