Trial concept calculated: start of the trial, based on the documented or planned start of recruitment, or on the date of opinion of the competent authority.
Arguments
- df
data frame such as from dbGetFieldsIntoDf. If `NULL`, prints fields needed in `df` for calculating this trial concept, which can be used with dbGetFieldsIntoDf.
Examples
# fields needed
f.startDate()
#> $euctr
#> [1] "n_date_of_competent_authority_decision"
#> [2] "n_date_of_ethics_committee_opinion"
#> [3] "trialInformation.recruitmentStartDate"
#>
#> $ctgov
#> [1] "start_date"
#>
#> $ctgov2
#> [1] "protocolSection.statusModule.startDateStruct.date"
#>
#> $isrctn
#> [1] "participants.recruitmentStart" "trialDesign.overallStartDate"
#>
#> $ctis
#> [1] "startDateEU"
#> [2] "authorizationDate"
#> [3] "authorizedApplication.authorizedPartI.trialDetails.trialInformation.trialDuration.estimatedRecruitmentStartDate"
#>
if (FALSE) { # \dontrun{
# apply trial concept when creating data frame
dbc <- nodbi::src_sqlite(
dbname = system.file("extdata", "demo.sqlite", package = "ctrdata"),
collection = "my_trials", flags = RSQLite::SQLITE_RO)
trialsDf <- dbGetFieldsIntoDf(
calculate = "f.startDate",
con = dbc)
} # }