diff --git a/data-public/derived/variable-label.parquet b/data-public/derived/variable-label.parquet index bd381a1..aebf45b 100644 Binary files a/data-public/derived/variable-label.parquet and b/data-public/derived/variable-label.parquet differ diff --git a/data-public/metadata/variable-label.csv b/data-public/metadata/variable-label.csv index c5485a6..facb80a 100644 --- a/data-public/metadata/variable-label.csv +++ b/data-public/metadata/variable-label.csv @@ -128,3 +128,13 @@ inst4_host_cloud,radio,2,"azure",2,"Azure" inst4_host_cloud,radio,3,"google",3,"Google Cloud Platform (GCP)" inst4_host_cloud,radio,4,"internal",4,"Internal Platform" inst4_host_cloud,radio,98,"other",98,"Other {host_cloud_other}" +inst4_upgrade,radio,1,"weekly",1,"Weekly" +inst4_upgrade,radio,2,"biweekly",2,"Biweekly" +inst4_upgrade,radio,3,"monthly",3,"Monthly" +inst4_upgrade,radio,4,"bimonthly",4,"Bimonthly" +inst4_upgrade,radio,5,"quarterly",5,"Quarterly" +inst4_upgrade,radio,6,"biannually",6,"Biannually" +inst4_upgrade,radio,7,"annually",7,"Annually" +inst4_upgrade,radio,8,"as needed",8,"As needed" +inst4_upgrade,radio,9,"as resources permit",9,"As resources permit" +inst4_upgrade,radio,98,"other",98,"Other" diff --git a/manipulation/institution-ellis.R b/manipulation/institution-ellis.R index a25f5f2..4d724da 100644 --- a/manipulation/institution-ellis.R +++ b/manipulation/institution-ellis.R @@ -426,7 +426,7 @@ ds <- map_to_radio( "inst4_server_host") |> map_to_checkbox("inst4_server_manage") |> map_to_radio( "inst4_host_cloud") |> - # map_to_checkbox( "inst4_upgrade") |> + map_to_radio( "inst4_upgrade") |> # map_to_checkbox( "inst4_update_barriers") |> dplyr::mutate( inst4_complete = REDCapR::constant_to_form_completion(inst4_complete), @@ -604,23 +604,21 @@ checkmate::assert_logical( ds$inst4_ticket_type_jira , an checkmate::assert_logical( ds$inst4_ticket_type_os_ticket , any.missing=F ) checkmate::assert_logical( ds$inst4_ticket_type_other , any.missing=F ) checkmate::assert_factor( ds$inst4_ticket_like , any.missing=T ) +checkmate::assert_character(ds$inst4_version , any.missing=T , pattern="^.{4,5}$" ) +checkmate::assert_character(ds$inst4_version_major , any.missing=T , pattern="^.{2,2}$" ) checkmate::assert_logical( ds$inst4_release_standard , any.missing=F ) checkmate::assert_logical( ds$inst4_release_lts , any.missing=F ) checkmate::assert_logical( ds$inst4_release_dont_know , any.missing=F ) - -checkmate::assert_factor( ds$inst4_server_host , any.missing=T ) - +checkmate::assert_factor( ds$inst4_server_host , any.missing=T ) checkmate::assert_logical( ds$inst4_server_manage_redcap , any.missing=F ) checkmate::assert_logical( ds$inst4_server_manage_it , any.missing=F ) checkmate::assert_logical( ds$inst4_server_manage_host , any.missing=F ) checkmate::assert_logical( ds$inst4_server_manage_other , any.missing=F ) checkmate::assert_logical( ds$inst4_server_manage_dont_know , any.missing=F ) checkmate::assert_factor( ds$inst4_host_cloud , any.missing=T ) -# checkmate::assert_numeric( ds$inst4_upgrade , any.missing=T , lower=1, upper=98 ) +checkmate::assert_factor( ds$inst4_upgrade , any.missing=T ) # checkmate::assert_character(ds$inst4_update_barriers , any.missing=T , pattern="^.{1,6}$" ) -# checkmate::assert_factor( ds$inst4_complete , any.missing=F ) -# checkmate::assert_character(ds$inst4_version , any.missing=T , pattern="^.{4,5}$" ) -# checkmate::assert_character(ds$inst4_version_major , any.missing=T , pattern="^.{2,2}$" ) +checkmate::assert_factor( ds$inst4_complete , any.missing=F ) # ---- specify-columns-to-upload ----------------------------------------------- # Print colnames that `dplyr::select()` should contain below: