From 5ac19d015300bd042fbe105d23dc47c95aa04435 Mon Sep 17 00:00:00 2001 From: Will Beasley Date: Thu, 5 Dec 2024 09:38:57 -0600 Subject: [PATCH 1/5] test script to be called by cron tab ref #556 --- utility/cron-example.R | 21 ++ utility/cron-example.log | 414 +++++++++++++++++++++++++++++++++++++++ 2 files changed, 435 insertions(+) create mode 100644 utility/cron-example.R create mode 100644 utility/cron-example.log diff --git a/utility/cron-example.R b/utility/cron-example.R new file mode 100644 index 00000000..cc7bc931 --- /dev/null +++ b/utility/cron-example.R @@ -0,0 +1,21 @@ +# Simplified script incorporating a cron job & REDCapR +# Adapated from https://heds.nz/posts/automate-r-reporting-linux-cron/ +cat(paste0(Sys.time(), " Starting cron job...\n")) + +uri <- "https://bbmc.ouhsc.edu/redcap/api/" + +# A simple project (pid 153) +token <- "9A81268476645C4E5F03428B8AC3AA7B" +REDCapR::redcap_metadata_read(redcap_uri=uri, token=token) + +# A longitudinal project (pid 212) +token <- "0434F0E9CF53ED0587847AB6E51DE762" +REDCapR::redcap_metadata_read(redcap_uri=uri, token=token) + +# A repeating measures (pid 3181) +token <- "22C3FF1C8B08899FB6F86D91D874A159" +REDCapR::redcap_metadata_read(redcap_uri=uri, token=token) + +cat(paste0(Sys.time(), " Finished running scripts/new_iris.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..b7fa1bdb --- /dev/null +++ b/utility/cron-example.log @@ -0,0 +1,414 @@ +2024-12-05 09:33:02.079769 Starting cron job... +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.3130496 + +$raw_text +[1] "" + +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.1591053 + +$raw_text +[1] "" + +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.1083767 + +$raw_text +[1] "" + +2024-12-05 09:33:03.784631 Finished running scripts/new_iris.R. +2024-12-05 09:34:02.08569 Starting cron job... +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.3179343 + +$raw_text +[1] "" + +The data dictionary describing 95 fields was read from REDCap in 0.4 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.4 seconds. The http status code was 200." + +$forms_collapsed +[1] "" + +$fields_collapsed +[1] "" + +$elapsed_seconds +[1] 0.3935587 + +$raw_text +[1] "" + +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.1074209 + +$raw_text +[1] "" + +2024-12-05 09:34:04.015385 Finished running scripts/new_iris.R. +2024-12-05 09:35:01.322777 Starting cron job... +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.3099558 + +$raw_text +[1] "" + +The data dictionary describing 95 fields was read from REDCap in 0.1 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.1 seconds. The http status code was 200." + +$forms_collapsed +[1] "" + +$fields_collapsed +[1] "" + +$elapsed_seconds +[1] 0.1435215 + +$raw_text +[1] "" + +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.1098793 + +$raw_text +[1] "" + +2024-12-05 09:35:03.12585 Finished running scripts/new_iris.R. From 470c9852d0474a376ddc71a5eee1c77b3932cc57 Mon Sep 17 00:00:00 2001 From: Will Beasley Date: Thu, 5 Dec 2024 10:59:25 -0600 Subject: [PATCH 2/5] temporarily switch testing servers ref #556 --- tests/test-all.R | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/tests/test-all.R b/tests/test-all.R index 80bb73a9..64d5dc36 100644 --- a/tests/test-all.R +++ b/tests/test-all.R @@ -3,14 +3,14 @@ library(testthat) library(REDCapR) # source("R/helpers-testing.R") -Sys.setenv("redcapr_test_server" = "dev-2") -message("Using test server '", Sys.getenv("redcapr_test_server"), "'.") -testthat::test_check("REDCapR") - -# Sys.setenv("redcapr_test_server" = "bbmc") +# Sys.setenv("redcapr_test_server" = "dev-2") # message("Using test server '", Sys.getenv("redcapr_test_server"), "'.") # testthat::test_check("REDCapR") +Sys.setenv("redcapr_test_server" = "bbmc") +message("Using test server '", Sys.getenv("redcapr_test_server"), "'.") +testthat::test_check("REDCapR") + # Sys.setenv("redcapr_test_server" = "coph") # message("Using test server '", Sys.getenv("redcapr_test_server"), "'.") # testthat::test_check("REDCapR") From e6646983150ab7521b232730537e2e2bfc4479e2 Mon Sep 17 00:00:00 2001 From: Will Beasley Date: Thu, 5 Dec 2024 15:40:25 -0600 Subject: [PATCH 3/5] nocov directives on helper ref #556 --- R/helpers-testing.R | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) 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 |> From 02a759fb5a8ab05483b5a6927e94aa9051fdf5f7 Mon Sep 17 00:00:00 2001 From: Will Beasley Date: Fri, 6 Dec 2024 16:55:57 -0600 Subject: [PATCH 4/5] restore test server --- tests/test-all.R | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/tests/test-all.R b/tests/test-all.R index 64d5dc36..80bb73a9 100644 --- a/tests/test-all.R +++ b/tests/test-all.R @@ -3,14 +3,14 @@ library(testthat) library(REDCapR) # source("R/helpers-testing.R") -# Sys.setenv("redcapr_test_server" = "dev-2") -# message("Using test server '", Sys.getenv("redcapr_test_server"), "'.") -# testthat::test_check("REDCapR") - -Sys.setenv("redcapr_test_server" = "bbmc") +Sys.setenv("redcapr_test_server" = "dev-2") message("Using test server '", Sys.getenv("redcapr_test_server"), "'.") testthat::test_check("REDCapR") +# Sys.setenv("redcapr_test_server" = "bbmc") +# message("Using test server '", Sys.getenv("redcapr_test_server"), "'.") +# testthat::test_check("REDCapR") + # Sys.setenv("redcapr_test_server" = "coph") # message("Using test server '", Sys.getenv("redcapr_test_server"), "'.") # testthat::test_check("REDCapR") From 34cf7452719b26bb664a99ea1aa60f6320e5b90d Mon Sep 17 00:00:00 2001 From: Will Beasley Date: Sat, 7 Dec 2024 11:19:00 -0600 Subject: [PATCH 5/5] environmental variable tokens for cron job for @higgi13425 & #556 --- utility/cron-example.R | 33 +- utility/cron-example.log | 1488 ++++++++++++++++++++++++++++++++++++-- 2 files changed, 1433 insertions(+), 88 deletions(-) diff --git a/utility/cron-example.R b/utility/cron-example.R index cc7bc931..ba0cd955 100644 --- a/utility/cron-example.R +++ b/utility/cron-example.R @@ -1,21 +1,28 @@ # Simplified script incorporating a cron job & REDCapR -# Adapated from https://heds.nz/posts/automate-r-reporting-linux-cron/ -cat(paste0(Sys.time(), " Starting cron job...\n")) +# Adapted from https://heds.nz/posts/automate-r-reporting-linux-cron/ +message("==============================") +message(paste0(Sys.time(), " Starting cron job...\n")) -uri <- "https://bbmc.ouhsc.edu/redcap/api/" +uri <- "https://redcap-dev-2.ouhsc.edu/redcap/api/" -# A simple project (pid 153) -token <- "9A81268476645C4E5F03428B8AC3AA7B" -REDCapR::redcap_metadata_read(redcap_uri=uri, token=token) +message("---- simple project --------------------------") +token_1 <- "9A068C425B1341D69E83064A2D273A70" +REDCapR::redcap_metadata_read(redcap_uri=uri, token=token_1) -# A longitudinal project (pid 212) -token <- "0434F0E9CF53ED0587847AB6E51DE762" -REDCapR::redcap_metadata_read(redcap_uri=uri, token=token) +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) -# A repeating measures (pid 3181) -token <- "22C3FF1C8B08899FB6F86D91D874A159" -REDCapR::redcap_metadata_read(redcap_uri=uri, token=token) +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) -cat(paste0(Sys.time(), " Finished running scripts/new_iris.R.\n")) +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 index b7fa1bdb..dfa589cf 100644 --- a/utility/cron-example.log +++ b/utility/cron-example.log @@ -1,4 +1,1175 @@ -2024-12-05 09:33:02.079769 Starting cron job... +============================== +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 @@ -44,11 +1215,56 @@ $fields_collapsed [1] "" $elapsed_seconds -[1] 0.3130496 +[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 @@ -88,11 +1304,69 @@ $fields_collapsed [1] "" $elapsed_seconds -[1] 0.1591053 +[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 @@ -130,13 +1404,64 @@ $fields_collapsed [1] "" $elapsed_seconds -[1] 0.1083767 +[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-05 09:33:03.784631 Finished running scripts/new_iris.R. -2024-12-05 09:34:02.08569 Starting cron job... +------------------------------ +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 @@ -182,27 +1507,26 @@ $fields_collapsed [1] "" $elapsed_seconds -[1] 0.3179343 +[1] 0.2808993 $raw_text [1] "" -The data dictionary describing 95 fields was read from REDCap in 0.4 seconds. The http status code was 200. +---- 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: 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 +# 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 , @@ -217,7 +1541,7 @@ $status_code [1] 200 $outcome_message -[1] "The data dictionary describing 95 fields was read from REDCap in 0.4 seconds. The http status code was 200." +[1] "The data dictionary describing 9 fields was read from REDCap in 0.1 seconds. The http status code was 200." $forms_collapsed [1] "" @@ -226,25 +1550,29 @@ $fields_collapsed [1] "" $elapsed_seconds -[1] 0.3935587 +[1] 0.1400197 $raw_text [1] "" -The data dictionary describing 9 fields was read from REDCap in 0.1 seconds. The http status code was 200. +---- 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: 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 +# 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 , @@ -259,7 +1587,7 @@ $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." +[1] "The data dictionary describing 95 fields was read from REDCap in 0.2 seconds. The http status code was 200." $forms_collapsed [1] "" @@ -268,13 +1596,18 @@ $fields_collapsed [1] "" $elapsed_seconds -[1] 0.1074209 +[1] 0.1605253 $raw_text [1] "" -2024-12-05 09:34:04.015385 Finished running scripts/new_iris.R. -2024-12-05 09:35:01.322777 Starting cron job... +------------------------------ +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 @@ -320,27 +1653,26 @@ $fields_collapsed [1] "" $elapsed_seconds -[1] 0.3099558 +[1] 0.3216732 $raw_text [1] "" -The data dictionary describing 95 fields was read from REDCap in 0.1 seconds. The http status code was 200. +---- 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: 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 +# 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 , @@ -355,7 +1687,7 @@ $status_code [1] 200 $outcome_message -[1] "The data dictionary describing 95 fields was read from REDCap in 0.1 seconds. The http status code was 200." +[1] "The data dictionary describing 9 fields was read from REDCap in 0.1 seconds. The http status code was 200." $forms_collapsed [1] "" @@ -364,25 +1696,29 @@ $fields_collapsed [1] "" $elapsed_seconds -[1] 0.1435215 +[1] 0.1444757 $raw_text [1] "" -The data dictionary describing 9 fields was read from REDCap in 0.1 seconds. The http status code was 200. +---- 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: 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 +# 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 , @@ -397,7 +1733,7 @@ $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." +[1] "The data dictionary describing 95 fields was read from REDCap in 0.2 seconds. The http status code was 200." $forms_collapsed [1] "" @@ -406,9 +1742,11 @@ $fields_collapsed [1] "" $elapsed_seconds -[1] 0.1098793 +[1] 0.1616328 $raw_text [1] "" -2024-12-05 09:35:03.12585 Finished running scripts/new_iris.R. +------------------------------ +2024-12-07 11:17:03.511681 Finished running utility/cron-example.R. +