Skip to content

Commit

Permalink
inst4_update_barrier
Browse files Browse the repository at this point in the history
ref #4
  • Loading branch information
wibeasley committed Sep 17, 2024
1 parent 05202cf commit d1e96c2
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 3 deletions.
Binary file modified data-public/derived/variable-label.parquet
Binary file not shown.
6 changes: 6 additions & 0 deletions data-public/metadata/variable-label.csv
Original file line number Diff line number Diff line change
Expand Up @@ -138,3 +138,9 @@ 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"
inst4_update_barrier,checkbox,0,"none",0,"None. We update as needed."
inst4_update_barrier,checkbox,1,"code_mods",1,"We have custom code modifications that we have review and replicate with every update."
inst4_update_barrier,checkbox,2,"it_dept",2,"We are dependent on our IT department and it can be hard to get on their radar for regular updates."
inst4_update_barrier,checkbox,3,"part_11",3,"Part 11: Every update requires reviews/audits, which is a resource barrier."
inst4_update_barrier,checkbox,4,"general",4,"General resourcing issue: Not enough hours in a day."
inst4_update_barrier,checkbox,98,"other",98,"Other {update_barriers_other}"
11 changes: 8 additions & 3 deletions manipulation/institution-ellis.R
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,7 @@ ds <-
# inst4_host_cloud_other = `host_cloud_other`,
inst4_upgrade = `upgrade`,
# inst4_upgrade_oth = `upgrade_oth`,
inst4_update_barriers = `update_barriers`,
inst4_update_barrier = `update_barriers`,
inst4_complete = `institutional_questionnaire4_complete`,
) |>
# dplyr::mutate(
Expand Down Expand Up @@ -427,7 +427,7 @@ ds <-
map_to_checkbox("inst4_server_manage") |>
map_to_radio( "inst4_host_cloud") |>
map_to_radio( "inst4_upgrade") |>
# map_to_checkbox( "inst4_update_barriers") |>
map_to_checkbox("inst4_update_barrier") |>
dplyr::mutate(
inst4_complete = REDCapR::constant_to_form_completion(inst4_complete),
) |>
Expand Down Expand Up @@ -617,7 +617,12 @@ checkmate::assert_logical( ds$inst4_server_manage_other , an
checkmate::assert_logical( ds$inst4_server_manage_dont_know , any.missing=F )
checkmate::assert_factor( ds$inst4_host_cloud , any.missing=T )
checkmate::assert_factor( ds$inst4_upgrade , any.missing=T )
# checkmate::assert_character(ds$inst4_update_barriers , any.missing=T , pattern="^.{1,6}$" )
checkmate::assert_logical( ds$inst4_update_barrier_none , any.missing=F )
checkmate::assert_logical( ds$inst4_update_barrier_code_mods , any.missing=F )
checkmate::assert_logical( ds$inst4_update_barrier_it_dept , any.missing=F )
checkmate::assert_logical( ds$inst4_update_barrier_part_11 , any.missing=F )
checkmate::assert_logical( ds$inst4_update_barrier_general , any.missing=F )
checkmate::assert_logical( ds$inst4_update_barrier_other , any.missing=F )
checkmate::assert_factor( ds$inst4_complete , any.missing=F )

# ---- specify-columns-to-upload -----------------------------------------------
Expand Down

0 comments on commit d1e96c2

Please sign in to comment.