diff --git a/R/helpers-testing.R b/R/helpers-testing.R index b3bc7c52..8df43f1b 100644 --- a/R/helpers-testing.R +++ b/R/helpers-testing.R @@ -9,8 +9,10 @@ retrieve_credential_testing <- function( if(Sys.getenv("redcapr_test_server") != "") { Sys.getenv("redcapr_test_server") } else { + # nocov start message("The test server was not explicitly set, so defaulting to 'dev-2'.") "dev-2" + # nocov end } checkmate::assert_character(server_instance , any.missing = FALSE, min.chars = 2, max.chars = 50) @@ -18,10 +20,12 @@ retrieve_credential_testing <- function( projects <- project_id <- instance <- tag <- NULL if (!requireNamespace("yaml", quietly = TRUE)) { + # nocov start stop( "Package `yaml` must be installed to use this function.", call. = FALSE ) + # nocov end } d_map <- system.file("misc/project-redirection.yml", package = "REDCapR") |> @@ -40,11 +44,12 @@ retrieve_credential_testing <- function( dplyr::filter(tag == project_tag) if (nrow(d_map) == 0L) { - stop("A credential mapping entry does not exist for the desired arguments.") + stop("A credential mapping entry does not exist for the desired arguments.") # nocov } path_credential <- system.file(d_map$credential_file, package = "REDCapR") if (!base::file.exists(path_credential)) { + # nocov start stop( "The credential file `", d_map$credential_file, @@ -52,6 +57,7 @@ retrieve_credential_testing <- function( server_instance, "` does not exist on this machine." ) + # nocov end } retrieve_credential_local( @@ -67,8 +73,10 @@ retrieve_plugins <- function(plugin_name) { if(Sys.getenv("redcapr_test_server") != "") { Sys.getenv("redcapr_test_server") } else { + # nocov start message("The test server was not explicitly set for plugins, so defaulting to 'dev-2'.") "dev-2" + # nocov end } checkmate::assert_character(server_instance , any.missing = FALSE, min.chars = 2, max.chars = 50) @@ -76,10 +84,12 @@ retrieve_plugins <- function(plugin_name) { plugins <- instance <- tag <- project_tag <- NULL if (!requireNamespace("yaml", quietly = TRUE)) { + # nocov start stop( "Package `yaml` must be installed to use this function.", call. = FALSE ) + # nocov end } d_map <- system.file("misc/plugin-redirection.yml", package = "REDCapR") |> @@ -98,7 +108,7 @@ retrieve_plugins <- function(plugin_name) { dplyr::filter(tag == plugin_name) if (nrow(d_map) == 0L) { - stop("A plugin mapping entry does not exist for the desired arguments.") + stop("A plugin mapping entry does not exist for the desired arguments.") # nocov } d_map |> diff --git a/utility/cron-example.R b/utility/cron-example.R new file mode 100644 index 00000000..ba0cd955 --- /dev/null +++ b/utility/cron-example.R @@ -0,0 +1,28 @@ +# Simplified script incorporating a cron job & REDCapR +# Adapted from https://heds.nz/posts/automate-r-reporting-linux-cron/ +message("==============================") +message(paste0(Sys.time(), " Starting cron job...\n")) + +uri <- "https://redcap-dev-2.ouhsc.edu/redcap/api/" + +message("---- simple project --------------------------") +token_1 <- "9A068C425B1341D69E83064A2D273A70" +REDCapR::redcap_metadata_read(redcap_uri=uri, token=token_1) + +message("---- repeating measures project w/ environmental token --------------------------") +Sys.setenv(REDCAP_KIRA_SGM_KEY = "77842BD8C18D3408819A21DD0154CCF4") +token_3 <- Sys.getenv("REDCAP_KIRA_SGM_KEY") +REDCapR::redcap_metadata_read(redcap_uri=uri, token=token_3) + +message("---- longitudinal project w/ stored token--------------------------") +path <- system.file("misc/dev-2.credentials", package = "REDCapR") +# message(path) +message("Credential file exists: ", fs::file_exists(path)) +credential <- REDCapR::retrieve_credential_local(path, 34L) +# message(credential) +REDCapR::redcap_metadata_read(redcap_uri=credential$redcap_uri, token=credential$token) + +message("------------------------------") +message(paste0(Sys.time(), " Finished running utility/cron-example.R.\n")) + +# * * * * * Rscript ~/redcap/REDCapR/utility/cron-example.R >> ~/redcap/REDCapR/utility/cron-example.log 2>&1 diff --git a/utility/cron-example.log b/utility/cron-example.log new file mode 100644 index 00000000..dfa589cf --- /dev/null +++ b/utility/cron-example.log @@ -0,0 +1,1752 @@ +============================== +2024-12-07 11:06:01.289504 Starting cron job... + +---- simple project -------------------------- +The data dictionary describing 17 fields was read from REDCap in 0.3 seconds. The http status code was 200. +$data +# A tibble: 17 × 18 + field_name form_name section_header field_type field_label + + 1 record_id demographics text Study ID + 2 name_first demographics Contact Informa… text First Name + 3 name_last demographics text Last Name + 4 address demographics notes Street, Ci… + 5 telephone demographics text Phone numb… + 6 email demographics text E-mail + 7 dob demographics text Date of bi… + 8 age demographics text Age (years) + 9 sex demographics radio Gender +10 height health text Height (cm) +11 weight health text Weight (ki… +12 bmi health calc BMI +13 comments health General Comments notes Comments +14 mugshot health file Mugshot +15 race race_and_ethnicity checkbox Race (Sele… +16 ethnicity race_and_ethnicity radio Ethnicity +17 interpreter_needed race_and_ethnicity truefalse Are interp… +# ℹ 13 more variables: select_choices_or_calculations , field_note , +# text_validation_type_or_show_slider_number , +# text_validation_min , text_validation_max , identifier , +# branching_logic , required_field , custom_alignment , +# question_number , matrix_group_name , matrix_ranking , +# field_annotation + +$success +[1] TRUE + +$status_code +[1] 200 + +$outcome_message +[1] "The data dictionary describing 17 fields was read from REDCap in 0.3 seconds. The http status code was 200." + +$forms_collapsed +[1] "" + +$fields_collapsed +[1] "" + +$elapsed_seconds +[1] 0.2690506 + +$raw_text +[1] "" + +---- repeating measures project w/ environmental token -------------------------- +The data dictionary describing 9 fields was read from REDCap in 0.1 seconds. The http status code was 200. +$data +# A tibble: 9 × 18 + field_name form_name section_header field_type field_label + +1 record_id intake text Record ID +2 height intake text patient height +3 weight intake text patient weight +4 bmi intake text patient bmi +5 sbp blood_pressure text systolic blood pressure +6 dbp blood_pressure text diastolic blood pressu… +7 lab laboratory text lab value +8 conc laboratory text concentration +9 image_profile image file Picture of Patient +# ℹ 13 more variables: select_choices_or_calculations , field_note , +# text_validation_type_or_show_slider_number , +# text_validation_min , text_validation_max , identifier , +# branching_logic , required_field , custom_alignment , +# question_number , matrix_group_name , matrix_ranking , +# field_annotation + +$success +[1] TRUE + +$status_code +[1] 200 + +$outcome_message +[1] "The data dictionary describing 9 fields was read from REDCap in 0.1 seconds. The http status code was 200." + +$forms_collapsed +[1] "" + +$fields_collapsed +[1] "" + +$elapsed_seconds +[1] 0.1433709 + +$raw_text +[1] "" + +---- longitudinal project w/ stored token-------------------------- +Credential file exists: TRUE +The data dictionary describing 95 fields was read from REDCap in 0.2 seconds. The http status code was 200. +$data +# A tibble: 95 × 18 + field_name form_name section_header field_type field_label + + 1 study_id demographics text Study ID + 2 date_enrolled demographics Consent Information text Date subject si… + 3 patient_document demographics file Upload the pati… + 4 first_name demographics Contact Information text First Name + 5 last_name demographics text Last Name + 6 telephone_1 demographics text Phone number + 7 email demographics text E-mail + 8 dob demographics text Date of birth + 9 age demographics text Age (years) +10 ethnicity demographics radio Ethnicity +# ℹ 85 more rows +# ℹ 13 more variables: select_choices_or_calculations , field_note , +# text_validation_type_or_show_slider_number , +# text_validation_min , text_validation_max , identifier , +# branching_logic , required_field , custom_alignment , +# question_number , matrix_group_name , matrix_ranking , +# field_annotation + +$success +[1] TRUE + +$status_code +[1] 200 + +$outcome_message +[1] "The data dictionary describing 95 fields was read from REDCap in 0.2 seconds. The http status code was 200." + +$forms_collapsed +[1] "" + +$fields_collapsed +[1] "" + +$elapsed_seconds +[1] 0.1581771 + +$raw_text +[1] "" + +------------------------------ +2024-12-07 11:06:03.09582 Finished running utility/cron-example.R. + +============================== +2024-12-07 11:07:01.28665 Starting cron job... + +---- simple project -------------------------- +The data dictionary describing 17 fields was read from REDCap in 0.3 seconds. The http status code was 200. +$data +# A tibble: 17 × 18 + field_name form_name section_header field_type field_label + + 1 record_id demographics text Study ID + 2 name_first demographics Contact Informa… text First Name + 3 name_last demographics text Last Name + 4 address demographics notes Street, Ci… + 5 telephone demographics text Phone numb… + 6 email demographics text E-mail + 7 dob demographics text Date of bi… + 8 age demographics text Age (years) + 9 sex demographics radio Gender +10 height health text Height (cm) +11 weight health text Weight (ki… +12 bmi health calc BMI +13 comments health General Comments notes Comments +14 mugshot health file Mugshot +15 race race_and_ethnicity checkbox Race (Sele… +16 ethnicity race_and_ethnicity radio Ethnicity +17 interpreter_needed race_and_ethnicity truefalse Are interp… +# ℹ 13 more variables: select_choices_or_calculations , field_note , +# text_validation_type_or_show_slider_number , +# text_validation_min , text_validation_max , identifier , +# branching_logic , required_field , custom_alignment , +# question_number , matrix_group_name , matrix_ranking , +# field_annotation + +$success +[1] TRUE + +$status_code +[1] 200 + +$outcome_message +[1] "The data dictionary describing 17 fields was read from REDCap in 0.3 seconds. The http status code was 200." + +$forms_collapsed +[1] "" + +$fields_collapsed +[1] "" + +$elapsed_seconds +[1] 0.3143952 + +$raw_text +[1] "" + +---- repeating measures project w/ environmental token -------------------------- +The data dictionary describing 9 fields was read from REDCap in 0.1 seconds. The http status code was 200. +$data +# A tibble: 9 × 18 + field_name form_name section_header field_type field_label + +1 record_id intake text Record ID +2 height intake text patient height +3 weight intake text patient weight +4 bmi intake text patient bmi +5 sbp blood_pressure text systolic blood pressure +6 dbp blood_pressure text diastolic blood pressu… +7 lab laboratory text lab value +8 conc laboratory text concentration +9 image_profile image file Picture of Patient +# ℹ 13 more variables: select_choices_or_calculations , field_note , +# text_validation_type_or_show_slider_number , +# text_validation_min , text_validation_max , identifier , +# branching_logic , required_field , custom_alignment , +# question_number , matrix_group_name , matrix_ranking , +# field_annotation + +$success +[1] TRUE + +$status_code +[1] 200 + +$outcome_message +[1] "The data dictionary describing 9 fields was read from REDCap in 0.1 seconds. The http status code was 200." + +$forms_collapsed +[1] "" + +$fields_collapsed +[1] "" + +$elapsed_seconds +[1] 0.1464875 + +$raw_text +[1] "" + +---- longitudinal project w/ stored token-------------------------- +Credential file exists: TRUE +The data dictionary describing 95 fields was read from REDCap in 0.2 seconds. The http status code was 200. +$data +# A tibble: 95 × 18 + field_name form_name section_header field_type field_label + + 1 study_id demographics text Study ID + 2 date_enrolled demographics Consent Information text Date subject si… + 3 patient_document demographics file Upload the pati… + 4 first_name demographics Contact Information text First Name + 5 last_name demographics text Last Name + 6 telephone_1 demographics text Phone number + 7 email demographics text E-mail + 8 dob demographics text Date of birth + 9 age demographics text Age (years) +10 ethnicity demographics radio Ethnicity +# ℹ 85 more rows +# ℹ 13 more variables: select_choices_or_calculations , field_note , +# text_validation_type_or_show_slider_number , +# text_validation_min , text_validation_max , identifier , +# branching_logic , required_field , custom_alignment , +# question_number , matrix_group_name , matrix_ranking , +# field_annotation + +$success +[1] TRUE + +$status_code +[1] 200 + +$outcome_message +[1] "The data dictionary describing 95 fields was read from REDCap in 0.2 seconds. The http status code was 200." + +$forms_collapsed +[1] "" + +$fields_collapsed +[1] "" + +$elapsed_seconds +[1] 0.1773546 + +$raw_text +[1] "" + +------------------------------ +2024-12-07 11:07:03.234982 Finished running utility/cron-example.R. + +============================== +2024-12-07 11:08:01.43933 Starting cron job... + +---- simple project -------------------------- +The data dictionary describing 17 fields was read from REDCap in 0.3 seconds. The http status code was 200. +$data +# A tibble: 17 × 18 + field_name form_name section_header field_type field_label + + 1 record_id demographics text Study ID + 2 name_first demographics Contact Informa… text First Name + 3 name_last demographics text Last Name + 4 address demographics notes Street, Ci… + 5 telephone demographics text Phone numb… + 6 email demographics text E-mail + 7 dob demographics text Date of bi… + 8 age demographics text Age (years) + 9 sex demographics radio Gender +10 height health text Height (cm) +11 weight health text Weight (ki… +12 bmi health calc BMI +13 comments health General Comments notes Comments +14 mugshot health file Mugshot +15 race race_and_ethnicity checkbox Race (Sele… +16 ethnicity race_and_ethnicity radio Ethnicity +17 interpreter_needed race_and_ethnicity truefalse Are interp… +# ℹ 13 more variables: select_choices_or_calculations , field_note , +# text_validation_type_or_show_slider_number , +# text_validation_min , text_validation_max , identifier , +# branching_logic , required_field , custom_alignment , +# question_number , matrix_group_name , matrix_ranking , +# field_annotation + +$success +[1] TRUE + +$status_code +[1] 200 + +$outcome_message +[1] "The data dictionary describing 17 fields was read from REDCap in 0.3 seconds. The http status code was 200." + +$forms_collapsed +[1] "" + +$fields_collapsed +[1] "" + +$elapsed_seconds +[1] 0.291121 + +$raw_text +[1] "" + +---- repeating measures project w/ environmental token -------------------------- +The data dictionary describing 9 fields was read from REDCap in 0.1 seconds. The http status code was 200. +$data +# A tibble: 9 × 18 + field_name form_name section_header field_type field_label + +1 record_id intake text Record ID +2 height intake text patient height +3 weight intake text patient weight +4 bmi intake text patient bmi +5 sbp blood_pressure text systolic blood pressure +6 dbp blood_pressure text diastolic blood pressu… +7 lab laboratory text lab value +8 conc laboratory text concentration +9 image_profile image file Picture of Patient +# ℹ 13 more variables: select_choices_or_calculations , field_note , +# text_validation_type_or_show_slider_number , +# text_validation_min , text_validation_max , identifier , +# branching_logic , required_field , custom_alignment , +# question_number , matrix_group_name , matrix_ranking , +# field_annotation + +$success +[1] TRUE + +$status_code +[1] 200 + +$outcome_message +[1] "The data dictionary describing 9 fields was read from REDCap in 0.1 seconds. The http status code was 200." + +$forms_collapsed +[1] "" + +$fields_collapsed +[1] "" + +$elapsed_seconds +[1] 0.1496165 + +$raw_text +[1] "" + +---- longitudinal project w/ stored token-------------------------- +Credential file exists: TRUE +The data dictionary describing 95 fields was read from REDCap in 0.2 seconds. The http status code was 200. +$data +# A tibble: 95 × 18 + field_name form_name section_header field_type field_label + + 1 study_id demographics text Study ID + 2 date_enrolled demographics Consent Information text Date subject si… + 3 patient_document demographics file Upload the pati… + 4 first_name demographics Contact Information text First Name + 5 last_name demographics text Last Name + 6 telephone_1 demographics text Phone number + 7 email demographics text E-mail + 8 dob demographics text Date of birth + 9 age demographics text Age (years) +10 ethnicity demographics radio Ethnicity +# ℹ 85 more rows +# ℹ 13 more variables: select_choices_or_calculations , field_note , +# text_validation_type_or_show_slider_number , +# text_validation_min , text_validation_max , identifier , +# branching_logic , required_field , custom_alignment , +# question_number , matrix_group_name , matrix_ranking , +# field_annotation + +$success +[1] TRUE + +$status_code +[1] 200 + +$outcome_message +[1] "The data dictionary describing 95 fields was read from REDCap in 0.2 seconds. The http status code was 200." + +$forms_collapsed +[1] "" + +$fields_collapsed +[1] "" + +$elapsed_seconds +[1] 0.1713202 + +$raw_text +[1] "" + +------------------------------ +2024-12-07 11:08:03.362437 Finished running utility/cron-example.R. + +============================== +2024-12-07 11:09:01.550743 Starting cron job... + +---- simple project -------------------------- +The data dictionary describing 17 fields was read from REDCap in 0.3 seconds. The http status code was 200. +$data +# A tibble: 17 × 18 + field_name form_name section_header field_type field_label + + 1 record_id demographics text Study ID + 2 name_first demographics Contact Informa… text First Name + 3 name_last demographics text Last Name + 4 address demographics notes Street, Ci… + 5 telephone demographics text Phone numb… + 6 email demographics text E-mail + 7 dob demographics text Date of bi… + 8 age demographics text Age (years) + 9 sex demographics radio Gender +10 height health text Height (cm) +11 weight health text Weight (ki… +12 bmi health calc BMI +13 comments health General Comments notes Comments +14 mugshot health file Mugshot +15 race race_and_ethnicity checkbox Race (Sele… +16 ethnicity race_and_ethnicity radio Ethnicity +17 interpreter_needed race_and_ethnicity truefalse Are interp… +# ℹ 13 more variables: select_choices_or_calculations , field_note , +# text_validation_type_or_show_slider_number , +# text_validation_min , text_validation_max , identifier , +# branching_logic , required_field , custom_alignment , +# question_number , matrix_group_name , matrix_ranking , +# field_annotation + +$success +[1] TRUE + +$status_code +[1] 200 + +$outcome_message +[1] "The data dictionary describing 17 fields was read from REDCap in 0.3 seconds. The http status code was 200." + +$forms_collapsed +[1] "" + +$fields_collapsed +[1] "" + +$elapsed_seconds +[1] 0.273406 + +$raw_text +[1] "" + +---- repeating measures project w/ environmental token -------------------------- +The data dictionary describing 9 fields was read from REDCap in 0.1 seconds. The http status code was 200. +$data +# A tibble: 9 × 18 + field_name form_name section_header field_type field_label + +1 record_id intake text Record ID +2 height intake text patient height +3 weight intake text patient weight +4 bmi intake text patient bmi +5 sbp blood_pressure text systolic blood pressure +6 dbp blood_pressure text diastolic blood pressu… +7 lab laboratory text lab value +8 conc laboratory text concentration +9 image_profile image file Picture of Patient +# ℹ 13 more variables: select_choices_or_calculations , field_note , +# text_validation_type_or_show_slider_number , +# text_validation_min , text_validation_max , identifier , +# branching_logic , required_field , custom_alignment , +# question_number , matrix_group_name , matrix_ranking , +# field_annotation + +$success +[1] TRUE + +$status_code +[1] 200 + +$outcome_message +[1] "The data dictionary describing 9 fields was read from REDCap in 0.1 seconds. The http status code was 200." + +$forms_collapsed +[1] "" + +$fields_collapsed +[1] "" + +$elapsed_seconds +[1] 0.1437643 + +$raw_text +[1] "" + +---- longitudinal project w/ stored token-------------------------- +Credential file exists: TRUE +The data dictionary describing 95 fields was read from REDCap in 0.2 seconds. The http status code was 200. +$data +# A tibble: 95 × 18 + field_name form_name section_header field_type field_label + + 1 study_id demographics text Study ID + 2 date_enrolled demographics Consent Information text Date subject si… + 3 patient_document demographics file Upload the pati… + 4 first_name demographics Contact Information text First Name + 5 last_name demographics text Last Name + 6 telephone_1 demographics text Phone number + 7 email demographics text E-mail + 8 dob demographics text Date of birth + 9 age demographics text Age (years) +10 ethnicity demographics radio Ethnicity +# ℹ 85 more rows +# ℹ 13 more variables: select_choices_or_calculations , field_note , +# text_validation_type_or_show_slider_number , +# text_validation_min , text_validation_max , identifier , +# branching_logic , required_field , custom_alignment , +# question_number , matrix_group_name , matrix_ranking , +# field_annotation + +$success +[1] TRUE + +$status_code +[1] 200 + +$outcome_message +[1] "The data dictionary describing 95 fields was read from REDCap in 0.2 seconds. The http status code was 200." + +$forms_collapsed +[1] "" + +$fields_collapsed +[1] "" + +$elapsed_seconds +[1] 0.1756694 + +$raw_text +[1] "" + +------------------------------ +2024-12-07 11:09:03.415152 Finished running utility/cron-example.R. + +============================== +2024-12-07 11:10:01.624951 Starting cron job... + +---- simple project -------------------------- +The data dictionary describing 17 fields was read from REDCap in 0.3 seconds. The http status code was 200. +$data +# A tibble: 17 × 18 + field_name form_name section_header field_type field_label + + 1 record_id demographics text Study ID + 2 name_first demographics Contact Informa… text First Name + 3 name_last demographics text Last Name + 4 address demographics notes Street, Ci… + 5 telephone demographics text Phone numb… + 6 email demographics text E-mail + 7 dob demographics text Date of bi… + 8 age demographics text Age (years) + 9 sex demographics radio Gender +10 height health text Height (cm) +11 weight health text Weight (ki… +12 bmi health calc BMI +13 comments health General Comments notes Comments +14 mugshot health file Mugshot +15 race race_and_ethnicity checkbox Race (Sele… +16 ethnicity race_and_ethnicity radio Ethnicity +17 interpreter_needed race_and_ethnicity truefalse Are interp… +# ℹ 13 more variables: select_choices_or_calculations , field_note , +# text_validation_type_or_show_slider_number , +# text_validation_min , text_validation_max , identifier , +# branching_logic , required_field , custom_alignment , +# question_number , matrix_group_name , matrix_ranking , +# field_annotation + +$success +[1] TRUE + +$status_code +[1] 200 + +$outcome_message +[1] "The data dictionary describing 17 fields was read from REDCap in 0.3 seconds. The http status code was 200." + +$forms_collapsed +[1] "" + +$fields_collapsed +[1] "" + +$elapsed_seconds +[1] 0.3057504 + +$raw_text +[1] "" + +---- repeating measures project w/ environmental token -------------------------- +The data dictionary describing 9 fields was read from REDCap in 0.1 seconds. The http status code was 200. +$data +# A tibble: 9 × 18 + field_name form_name section_header field_type field_label + +1 record_id intake text Record ID +2 height intake text patient height +3 weight intake text patient weight +4 bmi intake text patient bmi +5 sbp blood_pressure text systolic blood pressure +6 dbp blood_pressure text diastolic blood pressu… +7 lab laboratory text lab value +8 conc laboratory text concentration +9 image_profile image file Picture of Patient +# ℹ 13 more variables: select_choices_or_calculations , field_note , +# text_validation_type_or_show_slider_number , +# text_validation_min , text_validation_max , identifier , +# branching_logic , required_field , custom_alignment , +# question_number , matrix_group_name , matrix_ranking , +# field_annotation + +$success +[1] TRUE + +$status_code +[1] 200 + +$outcome_message +[1] "The data dictionary describing 9 fields was read from REDCap in 0.1 seconds. The http status code was 200." + +$forms_collapsed +[1] "" + +$fields_collapsed +[1] "" + +$elapsed_seconds +[1] 0.1496959 + +$raw_text +[1] "" + +---- longitudinal project w/ stored token-------------------------- +Credential file exists: TRUE +The data dictionary describing 95 fields was read from REDCap in 0.2 seconds. The http status code was 200. +$data +# A tibble: 95 × 18 + field_name form_name section_header field_type field_label + + 1 study_id demographics text Study ID + 2 date_enrolled demographics Consent Information text Date subject si… + 3 patient_document demographics file Upload the pati… + 4 first_name demographics Contact Information text First Name + 5 last_name demographics text Last Name + 6 telephone_1 demographics text Phone number + 7 email demographics text E-mail + 8 dob demographics text Date of birth + 9 age demographics text Age (years) +10 ethnicity demographics radio Ethnicity +# ℹ 85 more rows +# ℹ 13 more variables: select_choices_or_calculations , field_note , +# text_validation_type_or_show_slider_number , +# text_validation_min , text_validation_max , identifier , +# branching_logic , required_field , custom_alignment , +# question_number , matrix_group_name , matrix_ranking , +# field_annotation + +$success +[1] TRUE + +$status_code +[1] 200 + +$outcome_message +[1] "The data dictionary describing 95 fields was read from REDCap in 0.2 seconds. The http status code was 200." + +$forms_collapsed +[1] "" + +$fields_collapsed +[1] "" + +$elapsed_seconds +[1] 0.1668601 + +$raw_text +[1] "" + +------------------------------ +2024-12-07 11:10:03.555642 Finished running utility/cron-example.R. + +============================== +2024-12-07 11:11:01.76844 Starting cron job... + +---- simple project -------------------------- +The data dictionary describing 17 fields was read from REDCap in 0.3 seconds. The http status code was 200. +$data +# A tibble: 17 × 18 + field_name form_name section_header field_type field_label + + 1 record_id demographics text Study ID + 2 name_first demographics Contact Informa… text First Name + 3 name_last demographics text Last Name + 4 address demographics notes Street, Ci… + 5 telephone demographics text Phone numb… + 6 email demographics text E-mail + 7 dob demographics text Date of bi… + 8 age demographics text Age (years) + 9 sex demographics radio Gender +10 height health text Height (cm) +11 weight health text Weight (ki… +12 bmi health calc BMI +13 comments health General Comments notes Comments +14 mugshot health file Mugshot +15 race race_and_ethnicity checkbox Race (Sele… +16 ethnicity race_and_ethnicity radio Ethnicity +17 interpreter_needed race_and_ethnicity truefalse Are interp… +# ℹ 13 more variables: select_choices_or_calculations , field_note , +# text_validation_type_or_show_slider_number , +# text_validation_min , text_validation_max , identifier , +# branching_logic , required_field , custom_alignment , +# question_number , matrix_group_name , matrix_ranking , +# field_annotation + +$success +[1] TRUE + +$status_code +[1] 200 + +$outcome_message +[1] "The data dictionary describing 17 fields was read from REDCap in 0.3 seconds. The http status code was 200." + +$forms_collapsed +[1] "" + +$fields_collapsed +[1] "" + +$elapsed_seconds +[1] 0.253253 + +$raw_text +[1] "" + +---- repeating measures project w/ environmental token -------------------------- +The data dictionary describing 9 fields was read from REDCap in 0.1 seconds. The http status code was 200. +$data +# A tibble: 9 × 18 + field_name form_name section_header field_type field_label + +1 record_id intake text Record ID +2 height intake text patient height +3 weight intake text patient weight +4 bmi intake text patient bmi +5 sbp blood_pressure text systolic blood pressure +6 dbp blood_pressure text diastolic blood pressu… +7 lab laboratory text lab value +8 conc laboratory text concentration +9 image_profile image file Picture of Patient +# ℹ 13 more variables: select_choices_or_calculations , field_note , +# text_validation_type_or_show_slider_number , +# text_validation_min , text_validation_max , identifier , +# branching_logic , required_field , custom_alignment , +# question_number , matrix_group_name , matrix_ranking , +# field_annotation + +$success +[1] TRUE + +$status_code +[1] 200 + +$outcome_message +[1] "The data dictionary describing 9 fields was read from REDCap in 0.1 seconds. The http status code was 200." + +$forms_collapsed +[1] "" + +$fields_collapsed +[1] "" + +$elapsed_seconds +[1] 0.1407044 + +$raw_text +[1] "" + +---- longitudinal project w/ stored token-------------------------- +Credential file exists: TRUE +The data dictionary describing 95 fields was read from REDCap in 0.2 seconds. The http status code was 200. +$data +# A tibble: 95 × 18 + field_name form_name section_header field_type field_label + + 1 study_id demographics text Study ID + 2 date_enrolled demographics Consent Information text Date subject si… + 3 patient_document demographics file Upload the pati… + 4 first_name demographics Contact Information text First Name + 5 last_name demographics text Last Name + 6 telephone_1 demographics text Phone number + 7 email demographics text E-mail + 8 dob demographics text Date of birth + 9 age demographics text Age (years) +10 ethnicity demographics radio Ethnicity +# ℹ 85 more rows +# ℹ 13 more variables: select_choices_or_calculations , field_note , +# text_validation_type_or_show_slider_number , +# text_validation_min , text_validation_max , identifier , +# branching_logic , required_field , custom_alignment , +# question_number , matrix_group_name , matrix_ranking , +# field_annotation + +$success +[1] TRUE + +$status_code +[1] 200 + +$outcome_message +[1] "The data dictionary describing 95 fields was read from REDCap in 0.2 seconds. The http status code was 200." + +$forms_collapsed +[1] "" + +$fields_collapsed +[1] "" + +$elapsed_seconds +[1] 0.1609802 + +$raw_text +[1] "" + +------------------------------ +2024-12-07 11:11:03.751485 Finished running utility/cron-example.R. + +============================== +2024-12-07 11:12:01.970974 Starting cron job... + +---- simple project -------------------------- +The data dictionary describing 17 fields was read from REDCap in 0.3 seconds. The http status code was 200. +$data +# A tibble: 17 × 18 + field_name form_name section_header field_type field_label + + 1 record_id demographics text Study ID + 2 name_first demographics Contact Informa… text First Name + 3 name_last demographics text Last Name + 4 address demographics notes Street, Ci… + 5 telephone demographics text Phone numb… + 6 email demographics text E-mail + 7 dob demographics text Date of bi… + 8 age demographics text Age (years) + 9 sex demographics radio Gender +10 height health text Height (cm) +11 weight health text Weight (ki… +12 bmi health calc BMI +13 comments health General Comments notes Comments +14 mugshot health file Mugshot +15 race race_and_ethnicity checkbox Race (Sele… +16 ethnicity race_and_ethnicity radio Ethnicity +17 interpreter_needed race_and_ethnicity truefalse Are interp… +# ℹ 13 more variables: select_choices_or_calculations , field_note , +# text_validation_type_or_show_slider_number , +# text_validation_min , text_validation_max , identifier , +# branching_logic , required_field , custom_alignment , +# question_number , matrix_group_name , matrix_ranking , +# field_annotation + +$success +[1] TRUE + +$status_code +[1] 200 + +$outcome_message +[1] "The data dictionary describing 17 fields was read from REDCap in 0.3 seconds. The http status code was 200." + +$forms_collapsed +[1] "" + +$fields_collapsed +[1] "" + +$elapsed_seconds +[1] 0.319459 + +$raw_text +[1] "" + +---- repeating measures project w/ environmental token -------------------------- +The data dictionary describing 9 fields was read from REDCap in 0.1 seconds. The http status code was 200. +$data +# A tibble: 9 × 18 + field_name form_name section_header field_type field_label + +1 record_id intake text Record ID +2 height intake text patient height +3 weight intake text patient weight +4 bmi intake text patient bmi +5 sbp blood_pressure text systolic blood pressure +6 dbp blood_pressure text diastolic blood pressu… +7 lab laboratory text lab value +8 conc laboratory text concentration +9 image_profile image file Picture of Patient +# ℹ 13 more variables: select_choices_or_calculations , field_note , +# text_validation_type_or_show_slider_number , +# text_validation_min , text_validation_max , identifier , +# branching_logic , required_field , custom_alignment , +# question_number , matrix_group_name , matrix_ranking , +# field_annotation + +$success +[1] TRUE + +$status_code +[1] 200 + +$outcome_message +[1] "The data dictionary describing 9 fields was read from REDCap in 0.1 seconds. The http status code was 200." + +$forms_collapsed +[1] "" + +$fields_collapsed +[1] "" + +$elapsed_seconds +[1] 0.1383016 + +$raw_text +[1] "" + +---- longitudinal project w/ stored token-------------------------- +Credential file exists: TRUE +The data dictionary describing 95 fields was read from REDCap in 0.2 seconds. The http status code was 200. +$data +# A tibble: 95 × 18 + field_name form_name section_header field_type field_label + + 1 study_id demographics text Study ID + 2 date_enrolled demographics Consent Information text Date subject si… + 3 patient_document demographics file Upload the pati… + 4 first_name demographics Contact Information text First Name + 5 last_name demographics text Last Name + 6 telephone_1 demographics text Phone number + 7 email demographics text E-mail + 8 dob demographics text Date of birth + 9 age demographics text Age (years) +10 ethnicity demographics radio Ethnicity +# ℹ 85 more rows +# ℹ 13 more variables: select_choices_or_calculations , field_note , +# text_validation_type_or_show_slider_number , +# text_validation_min , text_validation_max , identifier , +# branching_logic , required_field , custom_alignment , +# question_number , matrix_group_name , matrix_ranking , +# field_annotation + +$success +[1] TRUE + +$status_code +[1] 200 + +$outcome_message +[1] "The data dictionary describing 95 fields was read from REDCap in 0.2 seconds. The http status code was 200." + +$forms_collapsed +[1] "" + +$fields_collapsed +[1] "" + +$elapsed_seconds +[1] 0.1714332 + +$raw_text +[1] "" + +------------------------------ +2024-12-07 11:12:03.854855 Finished running utility/cron-example.R. + +============================== +2024-12-07 11:13:02.055956 Starting cron job... + +---- simple project -------------------------- +The data dictionary describing 17 fields was read from REDCap in 0.3 seconds. The http status code was 200. +$data +# A tibble: 17 × 18 + field_name form_name section_header field_type field_label + + 1 record_id demographics text Study ID + 2 name_first demographics Contact Informa… text First Name + 3 name_last demographics text Last Name + 4 address demographics notes Street, Ci… + 5 telephone demographics text Phone numb… + 6 email demographics text E-mail + 7 dob demographics text Date of bi… + 8 age demographics text Age (years) + 9 sex demographics radio Gender +10 height health text Height (cm) +11 weight health text Weight (ki… +12 bmi health calc BMI +13 comments health General Comments notes Comments +14 mugshot health file Mugshot +15 race race_and_ethnicity checkbox Race (Sele… +16 ethnicity race_and_ethnicity radio Ethnicity +17 interpreter_needed race_and_ethnicity truefalse Are interp… +# ℹ 13 more variables: select_choices_or_calculations , field_note , +# text_validation_type_or_show_slider_number , +# text_validation_min , text_validation_max , identifier , +# branching_logic , required_field , custom_alignment , +# question_number , matrix_group_name , matrix_ranking , +# field_annotation + +$success +[1] TRUE + +$status_code +[1] 200 + +$outcome_message +[1] "The data dictionary describing 17 fields was read from REDCap in 0.3 seconds. The http status code was 200." + +$forms_collapsed +[1] "" + +$fields_collapsed +[1] "" + +$elapsed_seconds +[1] 0.2940636 + +$raw_text +[1] "" + +---- repeating measures project w/ environmental token -------------------------- +The data dictionary describing 9 fields was read from REDCap in 0.1 seconds. The http status code was 200. +$data +# A tibble: 9 × 18 + field_name form_name section_header field_type field_label + +1 record_id intake text Record ID +2 height intake text patient height +3 weight intake text patient weight +4 bmi intake text patient bmi +5 sbp blood_pressure text systolic blood pressure +6 dbp blood_pressure text diastolic blood pressu… +7 lab laboratory text lab value +8 conc laboratory text concentration +9 image_profile image file Picture of Patient +# ℹ 13 more variables: select_choices_or_calculations , field_note , +# text_validation_type_or_show_slider_number , +# text_validation_min , text_validation_max , identifier , +# branching_logic , required_field , custom_alignment , +# question_number , matrix_group_name , matrix_ranking , +# field_annotation + +$success +[1] TRUE + +$status_code +[1] 200 + +$outcome_message +[1] "The data dictionary describing 9 fields was read from REDCap in 0.1 seconds. The http status code was 200." + +$forms_collapsed +[1] "" + +$fields_collapsed +[1] "" + +$elapsed_seconds +[1] 0.146631 + +$raw_text +[1] "" + +---- longitudinal project w/ stored token-------------------------- +Credential file exists: TRUE +The data dictionary describing 95 fields was read from REDCap in 0.2 seconds. The http status code was 200. +$data +# A tibble: 95 × 18 + field_name form_name section_header field_type field_label + + 1 study_id demographics text Study ID + 2 date_enrolled demographics Consent Information text Date subject si… + 3 patient_document demographics file Upload the pati… + 4 first_name demographics Contact Information text First Name + 5 last_name demographics text Last Name + 6 telephone_1 demographics text Phone number + 7 email demographics text E-mail + 8 dob demographics text Date of birth + 9 age demographics text Age (years) +10 ethnicity demographics radio Ethnicity +# ℹ 85 more rows +# ℹ 13 more variables: select_choices_or_calculations , field_note , +# text_validation_type_or_show_slider_number , +# text_validation_min , text_validation_max , identifier , +# branching_logic , required_field , custom_alignment , +# question_number , matrix_group_name , matrix_ranking , +# field_annotation + +$success +[1] TRUE + +$status_code +[1] 200 + +$outcome_message +[1] "The data dictionary describing 95 fields was read from REDCap in 0.2 seconds. The http status code was 200." + +$forms_collapsed +[1] "" + +$fields_collapsed +[1] "" + +$elapsed_seconds +[1] 0.1753004 + +$raw_text +[1] "" + +------------------------------ +2024-12-07 11:13:03.904053 Finished running utility/cron-example.R. + +============================== +2024-12-07 11:14:02.091437 Starting cron job... + +---- simple project -------------------------- +The data dictionary describing 17 fields was read from REDCap in 0.3 seconds. The http status code was 200. +$data +# A tibble: 17 × 18 + field_name form_name section_header field_type field_label + + 1 record_id demographics text Study ID + 2 name_first demographics Contact Informa… text First Name + 3 name_last demographics text Last Name + 4 address demographics notes Street, Ci… + 5 telephone demographics text Phone numb… + 6 email demographics text E-mail + 7 dob demographics text Date of bi… + 8 age demographics text Age (years) + 9 sex demographics radio Gender +10 height health text Height (cm) +11 weight health text Weight (ki… +12 bmi health calc BMI +13 comments health General Comments notes Comments +14 mugshot health file Mugshot +15 race race_and_ethnicity checkbox Race (Sele… +16 ethnicity race_and_ethnicity radio Ethnicity +17 interpreter_needed race_and_ethnicity truefalse Are interp… +# ℹ 13 more variables: select_choices_or_calculations , field_note , +# text_validation_type_or_show_slider_number , +# text_validation_min , text_validation_max , identifier , +# branching_logic , required_field , custom_alignment , +# question_number , matrix_group_name , matrix_ranking , +# field_annotation + +$success +[1] TRUE + +$status_code +[1] 200 + +$outcome_message +[1] "The data dictionary describing 17 fields was read from REDCap in 0.3 seconds. The http status code was 200." + +$forms_collapsed +[1] "" + +$fields_collapsed +[1] "" + +$elapsed_seconds +[1] 0.2643588 + +$raw_text +[1] "" + +---- repeating measures project w/ environmental token -------------------------- +The data dictionary describing 9 fields was read from REDCap in 0.1 seconds. The http status code was 200. +$data +# A tibble: 9 × 18 + field_name form_name section_header field_type field_label + +1 record_id intake text Record ID +2 height intake text patient height +3 weight intake text patient weight +4 bmi intake text patient bmi +5 sbp blood_pressure text systolic blood pressure +6 dbp blood_pressure text diastolic blood pressu… +7 lab laboratory text lab value +8 conc laboratory text concentration +9 image_profile image file Picture of Patient +# ℹ 13 more variables: select_choices_or_calculations , field_note , +# text_validation_type_or_show_slider_number , +# text_validation_min , text_validation_max , identifier , +# branching_logic , required_field , custom_alignment , +# question_number , matrix_group_name , matrix_ranking , +# field_annotation + +$success +[1] TRUE + +$status_code +[1] 200 + +$outcome_message +[1] "The data dictionary describing 9 fields was read from REDCap in 0.1 seconds. The http status code was 200." + +$forms_collapsed +[1] "" + +$fields_collapsed +[1] "" + +$elapsed_seconds +[1] 0.1340029 + +$raw_text +[1] "" + +---- longitudinal project w/ stored token-------------------------- +Credential file exists: TRUE +The data dictionary describing 95 fields was read from REDCap in 0.2 seconds. The http status code was 200. +$data +# A tibble: 95 × 18 + field_name form_name section_header field_type field_label + + 1 study_id demographics text Study ID + 2 date_enrolled demographics Consent Information text Date subject si… + 3 patient_document demographics file Upload the pati… + 4 first_name demographics Contact Information text First Name + 5 last_name demographics text Last Name + 6 telephone_1 demographics text Phone number + 7 email demographics text E-mail + 8 dob demographics text Date of birth + 9 age demographics text Age (years) +10 ethnicity demographics radio Ethnicity +# ℹ 85 more rows +# ℹ 13 more variables: select_choices_or_calculations , field_note , +# text_validation_type_or_show_slider_number , +# text_validation_min , text_validation_max , identifier , +# branching_logic , required_field , custom_alignment , +# question_number , matrix_group_name , matrix_ranking , +# field_annotation + +$success +[1] TRUE + +$status_code +[1] 200 + +$outcome_message +[1] "The data dictionary describing 95 fields was read from REDCap in 0.2 seconds. The http status code was 200." + +$forms_collapsed +[1] "" + +$fields_collapsed +[1] "" + +$elapsed_seconds +[1] 0.1701632 + +$raw_text +[1] "" + +------------------------------ +2024-12-07 11:14:03.970552 Finished running utility/cron-example.R. + +============================== +2024-12-07 11:15:02.164451 Starting cron job... + +---- simple project -------------------------- +The data dictionary describing 17 fields was read from REDCap in 0.3 seconds. The http status code was 200. +$data +# A tibble: 17 × 18 + field_name form_name section_header field_type field_label + + 1 record_id demographics text Study ID + 2 name_first demographics Contact Informa… text First Name + 3 name_last demographics text Last Name + 4 address demographics notes Street, Ci… + 5 telephone demographics text Phone numb… + 6 email demographics text E-mail + 7 dob demographics text Date of bi… + 8 age demographics text Age (years) + 9 sex demographics radio Gender +10 height health text Height (cm) +11 weight health text Weight (ki… +12 bmi health calc BMI +13 comments health General Comments notes Comments +14 mugshot health file Mugshot +15 race race_and_ethnicity checkbox Race (Sele… +16 ethnicity race_and_ethnicity radio Ethnicity +17 interpreter_needed race_and_ethnicity truefalse Are interp… +# ℹ 13 more variables: select_choices_or_calculations , field_note , +# text_validation_type_or_show_slider_number , +# text_validation_min , text_validation_max , identifier , +# branching_logic , required_field , custom_alignment , +# question_number , matrix_group_name , matrix_ranking , +# field_annotation + +$success +[1] TRUE + +$status_code +[1] 200 + +$outcome_message +[1] "The data dictionary describing 17 fields was read from REDCap in 0.3 seconds. The http status code was 200." + +$forms_collapsed +[1] "" + +$fields_collapsed +[1] "" + +$elapsed_seconds +[1] 0.2832725 + +$raw_text +[1] "" + +---- repeating measures project w/ environmental token -------------------------- +The data dictionary describing 9 fields was read from REDCap in 0.1 seconds. The http status code was 200. +$data +# A tibble: 9 × 18 + field_name form_name section_header field_type field_label + +1 record_id intake text Record ID +2 height intake text patient height +3 weight intake text patient weight +4 bmi intake text patient bmi +5 sbp blood_pressure text systolic blood pressure +6 dbp blood_pressure text diastolic blood pressu… +7 lab laboratory text lab value +8 conc laboratory text concentration +9 image_profile image file Picture of Patient +# ℹ 13 more variables: select_choices_or_calculations , field_note , +# text_validation_type_or_show_slider_number , +# text_validation_min , text_validation_max , identifier , +# branching_logic , required_field , custom_alignment , +# question_number , matrix_group_name , matrix_ranking , +# field_annotation + +$success +[1] TRUE + +$status_code +[1] 200 + +$outcome_message +[1] "The data dictionary describing 9 fields was read from REDCap in 0.1 seconds. The http status code was 200." + +$forms_collapsed +[1] "" + +$fields_collapsed +[1] "" + +$elapsed_seconds +[1] 0.142642 + +$raw_text +[1] "" + +---- longitudinal project w/ stored token-------------------------- +Credential file exists: TRUE +The data dictionary describing 95 fields was read from REDCap in 0.2 seconds. The http status code was 200. +$data +# A tibble: 95 × 18 + field_name form_name section_header field_type field_label + + 1 study_id demographics text Study ID + 2 date_enrolled demographics Consent Information text Date subject si… + 3 patient_document demographics file Upload the pati… + 4 first_name demographics Contact Information text First Name + 5 last_name demographics text Last Name + 6 telephone_1 demographics text Phone number + 7 email demographics text E-mail + 8 dob demographics text Date of birth + 9 age demographics text Age (years) +10 ethnicity demographics radio Ethnicity +# ℹ 85 more rows +# ℹ 13 more variables: select_choices_or_calculations , field_note , +# text_validation_type_or_show_slider_number , +# text_validation_min , text_validation_max , identifier , +# branching_logic , required_field , custom_alignment , +# question_number , matrix_group_name , matrix_ranking , +# field_annotation + +$success +[1] TRUE + +$status_code +[1] 200 + +$outcome_message +[1] "The data dictionary describing 95 fields was read from REDCap in 0.2 seconds. The http status code was 200." + +$forms_collapsed +[1] "" + +$fields_collapsed +[1] "" + +$elapsed_seconds +[1] 0.1728756 + +$raw_text +[1] "" + +------------------------------ +2024-12-07 11:15:04.143959 Finished running utility/cron-example.R. + +============================== +2024-12-07 11:16:01.344881 Starting cron job... + +---- simple project -------------------------- +The data dictionary describing 17 fields was read from REDCap in 0.3 seconds. The http status code was 200. +$data +# A tibble: 17 × 18 + field_name form_name section_header field_type field_label + + 1 record_id demographics text Study ID + 2 name_first demographics Contact Informa… text First Name + 3 name_last demographics text Last Name + 4 address demographics notes Street, Ci… + 5 telephone demographics text Phone numb… + 6 email demographics text E-mail + 7 dob demographics text Date of bi… + 8 age demographics text Age (years) + 9 sex demographics radio Gender +10 height health text Height (cm) +11 weight health text Weight (ki… +12 bmi health calc BMI +13 comments health General Comments notes Comments +14 mugshot health file Mugshot +15 race race_and_ethnicity checkbox Race (Sele… +16 ethnicity race_and_ethnicity radio Ethnicity +17 interpreter_needed race_and_ethnicity truefalse Are interp… +# ℹ 13 more variables: select_choices_or_calculations , field_note , +# text_validation_type_or_show_slider_number , +# text_validation_min , text_validation_max , identifier , +# branching_logic , required_field , custom_alignment , +# question_number , matrix_group_name , matrix_ranking , +# field_annotation + +$success +[1] TRUE + +$status_code +[1] 200 + +$outcome_message +[1] "The data dictionary describing 17 fields was read from REDCap in 0.3 seconds. The http status code was 200." + +$forms_collapsed +[1] "" + +$fields_collapsed +[1] "" + +$elapsed_seconds +[1] 0.2808993 + +$raw_text +[1] "" + +---- repeating measures project w/ environmental token -------------------------- +The data dictionary describing 9 fields was read from REDCap in 0.1 seconds. The http status code was 200. +$data +# A tibble: 9 × 18 + field_name form_name section_header field_type field_label + +1 record_id intake text Record ID +2 height intake text patient height +3 weight intake text patient weight +4 bmi intake text patient bmi +5 sbp blood_pressure text systolic blood pressure +6 dbp blood_pressure text diastolic blood pressu… +7 lab laboratory text lab value +8 conc laboratory text concentration +9 image_profile image file Picture of Patient +# ℹ 13 more variables: select_choices_or_calculations , field_note , +# text_validation_type_or_show_slider_number , +# text_validation_min , text_validation_max , identifier , +# branching_logic , required_field , custom_alignment , +# question_number , matrix_group_name , matrix_ranking , +# field_annotation + +$success +[1] TRUE + +$status_code +[1] 200 + +$outcome_message +[1] "The data dictionary describing 9 fields was read from REDCap in 0.1 seconds. The http status code was 200." + +$forms_collapsed +[1] "" + +$fields_collapsed +[1] "" + +$elapsed_seconds +[1] 0.1400197 + +$raw_text +[1] "" + +---- longitudinal project w/ stored token-------------------------- +Credential file exists: TRUE +The data dictionary describing 95 fields was read from REDCap in 0.2 seconds. The http status code was 200. +$data +# A tibble: 95 × 18 + field_name form_name section_header field_type field_label + + 1 study_id demographics text Study ID + 2 date_enrolled demographics Consent Information text Date subject si… + 3 patient_document demographics file Upload the pati… + 4 first_name demographics Contact Information text First Name + 5 last_name demographics text Last Name + 6 telephone_1 demographics text Phone number + 7 email demographics text E-mail + 8 dob demographics text Date of birth + 9 age demographics text Age (years) +10 ethnicity demographics radio Ethnicity +# ℹ 85 more rows +# ℹ 13 more variables: select_choices_or_calculations , field_note , +# text_validation_type_or_show_slider_number , +# text_validation_min , text_validation_max , identifier , +# branching_logic , required_field , custom_alignment , +# question_number , matrix_group_name , matrix_ranking , +# field_annotation + +$success +[1] TRUE + +$status_code +[1] 200 + +$outcome_message +[1] "The data dictionary describing 95 fields was read from REDCap in 0.2 seconds. The http status code was 200." + +$forms_collapsed +[1] "" + +$fields_collapsed +[1] "" + +$elapsed_seconds +[1] 0.1605253 + +$raw_text +[1] "" + +------------------------------ +2024-12-07 11:16:03.212882 Finished running utility/cron-example.R. + +============================== +2024-12-07 11:17:01.443348 Starting cron job... + +---- simple project -------------------------- +The data dictionary describing 17 fields was read from REDCap in 0.3 seconds. The http status code was 200. +$data +# A tibble: 17 × 18 + field_name form_name section_header field_type field_label + + 1 record_id demographics text Study ID + 2 name_first demographics Contact Informa… text First Name + 3 name_last demographics text Last Name + 4 address demographics notes Street, Ci… + 5 telephone demographics text Phone numb… + 6 email demographics text E-mail + 7 dob demographics text Date of bi… + 8 age demographics text Age (years) + 9 sex demographics radio Gender +10 height health text Height (cm) +11 weight health text Weight (ki… +12 bmi health calc BMI +13 comments health General Comments notes Comments +14 mugshot health file Mugshot +15 race race_and_ethnicity checkbox Race (Sele… +16 ethnicity race_and_ethnicity radio Ethnicity +17 interpreter_needed race_and_ethnicity truefalse Are interp… +# ℹ 13 more variables: select_choices_or_calculations , field_note , +# text_validation_type_or_show_slider_number , +# text_validation_min , text_validation_max , identifier , +# branching_logic , required_field , custom_alignment , +# question_number , matrix_group_name , matrix_ranking , +# field_annotation + +$success +[1] TRUE + +$status_code +[1] 200 + +$outcome_message +[1] "The data dictionary describing 17 fields was read from REDCap in 0.3 seconds. The http status code was 200." + +$forms_collapsed +[1] "" + +$fields_collapsed +[1] "" + +$elapsed_seconds +[1] 0.3216732 + +$raw_text +[1] "" + +---- repeating measures project w/ environmental token -------------------------- +The data dictionary describing 9 fields was read from REDCap in 0.1 seconds. The http status code was 200. +$data +# A tibble: 9 × 18 + field_name form_name section_header field_type field_label + +1 record_id intake text Record ID +2 height intake text patient height +3 weight intake text patient weight +4 bmi intake text patient bmi +5 sbp blood_pressure text systolic blood pressure +6 dbp blood_pressure text diastolic blood pressu… +7 lab laboratory text lab value +8 conc laboratory text concentration +9 image_profile image file Picture of Patient +# ℹ 13 more variables: select_choices_or_calculations , field_note , +# text_validation_type_or_show_slider_number , +# text_validation_min , text_validation_max , identifier , +# branching_logic , required_field , custom_alignment , +# question_number , matrix_group_name , matrix_ranking , +# field_annotation + +$success +[1] TRUE + +$status_code +[1] 200 + +$outcome_message +[1] "The data dictionary describing 9 fields was read from REDCap in 0.1 seconds. The http status code was 200." + +$forms_collapsed +[1] "" + +$fields_collapsed +[1] "" + +$elapsed_seconds +[1] 0.1444757 + +$raw_text +[1] "" + +---- longitudinal project w/ stored token-------------------------- +Credential file exists: TRUE +The data dictionary describing 95 fields was read from REDCap in 0.2 seconds. The http status code was 200. +$data +# A tibble: 95 × 18 + field_name form_name section_header field_type field_label + + 1 study_id demographics text Study ID + 2 date_enrolled demographics Consent Information text Date subject si… + 3 patient_document demographics file Upload the pati… + 4 first_name demographics Contact Information text First Name + 5 last_name demographics text Last Name + 6 telephone_1 demographics text Phone number + 7 email demographics text E-mail + 8 dob demographics text Date of birth + 9 age demographics text Age (years) +10 ethnicity demographics radio Ethnicity +# ℹ 85 more rows +# ℹ 13 more variables: select_choices_or_calculations , field_note , +# text_validation_type_or_show_slider_number , +# text_validation_min , text_validation_max , identifier , +# branching_logic , required_field , custom_alignment , +# question_number , matrix_group_name , matrix_ranking , +# field_annotation + +$success +[1] TRUE + +$status_code +[1] 200 + +$outcome_message +[1] "The data dictionary describing 95 fields was read from REDCap in 0.2 seconds. The http status code was 200." + +$forms_collapsed +[1] "" + +$fields_collapsed +[1] "" + +$elapsed_seconds +[1] 0.1616328 + +$raw_text +[1] "" + +------------------------------ +2024-12-07 11:17:03.511681 Finished running utility/cron-example.R. +