@@ -397,6 +397,7 @@ getTimeSeries <- function(
397
397
" " ,
398
398
attr(delta , " units" )
399
399
)
400
+
400
401
return (resultsInAndromeda $ timeSeries %> % dplyr :: collect())
401
402
}
402
403
@@ -406,30 +407,35 @@ getTimeSeries <- function(
406
407
# ' This function first generates a calendar period table, that has
407
408
# ' calendar intervals between the \code{timeSeriesMinDate} and \code{timeSeriesMaxDate}.
408
409
# ' Calendar Month, Quarter and year are supported.
409
- # ' For each of the calendar interval, time series data are computed.
410
+ # ' For each of the calendar interval, time series data are computed. There are 2 different types
411
+ # ' of time series: one related to cohorts and one related to the data source.
410
412
# '
413
+ # ' Cohort time series: computes time series at the cohort level/table. These have 2 definitions: T1 and T2.
414
+ # ' T1: subjects in the cohort who have at least one cohort day in a calendar period.
415
+ # ' T2: subjects in the cohort who have at least one observation day in a calendar period.
416
+ # '
411
417
# ' Data Source time series: computes time series at the data source level i.e. observation
412
418
# ' period table. This output is NOT limited to individuals in the cohort table
413
- # ' but is for ALL people in the datasource (i.e. present in observation period table)
419
+ # ' but is for ALL people in the data source (i.e. present in observation period table)
420
+ # '
414
421
# '
415
422
# ' @template Connection
416
423
# ' @template CohortDatabaseSchema
417
424
# ' @template CdmDatabaseSchema
418
425
# ' @template TempEmulationSchema
419
426
# ' @template CohortTable
420
- # ' @template cohortDefinitionSet
427
+ # ' @template cohortDefinitionSet
421
428
# ' @template databaseIds
422
- # ' @template exportFolder
423
- # ' @template minCellCount
424
- # ' @template incremental
425
- # ' @template recordKeepingFile
426
-
427
- # ' @param runCohortTimeSeries Generate and export the cohort level time series?
428
- # ' @param runDataSourceTimeSeries Generate and export the Data source level time series? i.e.
429
- # ' using all persons found in observation period table.
430
- # ' @param instantiatedCohorts
429
+ # ' @template exportFolder
430
+ # ' @template minCellCount
431
+ # ' @template incremental
432
+ # ' @template recordKeepingFile
433
+ # ' @template BatchSize
434
+ # ' @template InstantiatedCohorts
435
+ # '
436
+ # ' @param runCohortTimeSeries. Generate and export the cohort level time series (T1 and T2)
437
+ # ' @param runDataSourceTimeSeries Generate and export the data source level time series using all persons found in observation period table (T3).
431
438
# ' @param observationPeriodDateRange
432
- # ' @param batchSize
433
439
# '
434
440
# ' @return None, it will write the results to a csv file
435
441
# ' @export
0 commit comments