Trial concept calculated: Calculates if results have been recorded in the register, as structured data, reports or publications, for example. Requires loading results-related information for EUCTR.
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.hasResults()
#> $euctr
#> [1] "endPoints.endPoint"
#>
#> $ctgov
#> [1] "results_reference.citation"
#> [2] "clinical_results.outcome_list.outcome"
#>
#> $ctgov2
#> [1] "hasResults"
#> [2] "protocolSection.referencesModule.references.type"
#> [3] "protocolSection.statusModule.resultsFirstSubmitDate"
#> [4] "resultsSection.outcomeMeasuresModule.outcomeMeasures"
#>
#> $isrctn
#> [1] "results.publicationStage"
#>
#> $ctis
#> [1] "results.clinicalStudyReports" "results.laypersonResults"
#> [3] "results.summaryResults" "resultsFirstReceived"
#>
# 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.hasResults",
con = dbc)
#> To review trial concepts details, call 'help("ctrdata-trial-concepts")'
#> Querying database (12 fields)...
#> Calculating f.hasResults...
trialsDf
#> _id .hasResults
#> 1 12949496 TRUE
#> 2 13281214 TRUE
#> 3 17473621 FALSE
#> 4 2012-003632-23-CZ TRUE
#> 5 2012-003632-23-SE TRUE
#> 6 2014-003556-31-GB TRUE
#> 7 2014-003556-31-SE TRUE
#> 8 2022-501142-30-00 FALSE
#> 9 2023-505613-24-00 FALSE
#> 10 2024-510663-34-00 FALSE
#> 11 76463425 TRUE
#> 12 80181452 TRUE
#> 13 88261002 TRUE
#> 14 NCT00617929 TRUE
#> 15 NCT01125800 TRUE
#> 16 NCT01483820 TRUE
#> 17 NCT01505608 TRUE
#> 18 NCT01592045 TRUE
#> 19 NCT02620761 TRUE
#> 20 NCT03325439 TRUE
#> 21 NCT03876704 TRUE