Skip to content

Commit 7337a85

Browse files
committed
documentation, remove unused files
1 parent cbffe89 commit 7337a85

File tree

4 files changed

+19
-193
lines changed

4 files changed

+19
-193
lines changed

R/runTimeSeries.R

+19-13
Original file line numberDiff line numberDiff line change
@@ -397,6 +397,7 @@ getTimeSeries <- function(
397397
" ",
398398
attr(delta, "units")
399399
)
400+
400401
return(resultsInAndromeda$timeSeries %>% dplyr::collect())
401402
}
402403

@@ -406,30 +407,35 @@ getTimeSeries <- function(
406407
#' This function first generates a calendar period table, that has
407408
#' calendar intervals between the \code{timeSeriesMinDate} and \code{timeSeriesMaxDate}.
408409
#' 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.
410412
#'
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+
#'
411417
#' Data Source time series: computes time series at the data source level i.e. observation
412418
#' 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+
#'
414421
#'
415422
#' @template Connection
416423
#' @template CohortDatabaseSchema
417424
#' @template CdmDatabaseSchema
418425
#' @template TempEmulationSchema
419426
#' @template CohortTable
420-
#' @template cohortDefinitionSet
427+
#' @template cohortDefinitionSet
421428
#' @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).
431438
#' @param observationPeriodDateRange
432-
#' @param batchSize
433439
#'
434440
#' @return None, it will write the results to a csv file
435441
#' @export

inst/sql/sql_server/ComputeTimeSeries4.sql

-76
This file was deleted.

inst/sql/sql_server/ComputeTimeSeries5.sql

-55
This file was deleted.

inst/sql/sql_server/ComputeTimeSeries6.sql

-49
This file was deleted.

0 commit comments

Comments
 (0)