R/check_prostate_redcap.R
qc_criteria_pts.Rd
For use in check_prostate_redcap
.
qc_criteria_pts()
Tibble:
label
: Description of the exclusion criterion.
filter_criterion
: Expression that will be used in
filter
for restriction to observations that pass the criterion.
# Show all criteria:
qc_criteria_pts()
#> # A tibble: 7 × 3
#> label filter_criterion index
#> <chr> <list> <int>
#> 1 All patients <lgl [1]> 1
#> 2 Incomplete record <language> 2
#> 3 Missing date of birth or diagnosis <language> 3
#> 4 Metastatic/CRPC but no associated date <language> 4
#> 5 No lastvisit+met+CRPC date <language> 5
#> 6 Metastases before diagnosis <language> 6
#> 7 Missing stage <language> 7
# Show code for criterion #3:
qc_criteria_pts()$filter_criterion[[3]]
#> !is.na(age_dx)