Skip to content

Commit

Permalink
inst4_audit_support
Browse files Browse the repository at this point in the history
ref #4
  • Loading branch information
wibeasley committed Sep 17, 2024
1 parent 052b41e commit 81cf205
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 2 deletions.
Binary file modified data-public/derived/variable-label.parquet
Binary file not shown.
8 changes: 8 additions & 0 deletions data-public/metadata/variable-label.csv
Original file line number Diff line number Diff line change
Expand Up @@ -92,3 +92,11 @@ inst4_validation_initial,checkbox,98,"other",98,"Other {who_val_other}"
inst4_validation_staff_level,radio,1,"Overstaffed",1,"Overstaffed"
inst4_validation_staff_level,radio,2,"Appropriately staffed",2,"Appropriately staffed"
inst4_validation_staff_level,radio,3,"Understaffed",3,"Understaffed"
inst4_audit_support,checkbox,1,"redcap_admins",1,"REDCap Admins"
inst4_audit_support,checkbox,2,"research_compliance",2,"Research Compliance"
inst4_audit_support,checkbox,3,"cto",3,"Clinical Trials Office"
inst4_audit_support,checkbox,4,"privacy_office",4,"Security and Privacy Office"
inst4_audit_support,checkbox,5,"it",5,"Information Security"
inst4_audit_support,checkbox,6,"unsure",6,"Unsure"
inst4_audit_support,checkbox,7,"not_me",7,"Unsure who supports but confident it's outside our area of responsibility"
inst4_audit_support,checkbox,98,"other",98,"Other {audit_support_other}"
12 changes: 10 additions & 2 deletions manipulation/institution-ellis.R
Original file line number Diff line number Diff line change
Expand Up @@ -417,7 +417,7 @@ ds <-
map_to_radio( "inst4_validation_project", "yes_no_dont_know") |>
map_to_radio( "inst4_validation_committee", "yes_no_dont_know") |>
map_to_radio( "inst4_validation_staff_level") |>
# map_to_checkbox( "inst4_audit_support") |>
map_to_checkbox( "inst4_audit_support") |>
# map_to_checkbox( "inst4_audit_status") |>
# map_to_checkbox( "inst4_request_per_month_count") |>
# map_to_checkbox( "inst4_ticket") |>
Expand Down Expand Up @@ -586,7 +586,15 @@ checkmate::assert_factor( ds$inst4_validation_project , any.missing=T )
checkmate::assert_factor( ds$inst4_validation_committee , any.missing=T )
checkmate::assert_integer( ds$inst4_validation_staff_count , any.missing=T , lower=1, upper=8 )
checkmate::assert_factor( ds$inst4_validation_staff_level , any.missing=T )
# checkmate::assert_character(ds$inst4_audit_support , any.missing=T , pattern="^.{1,9}$" )

checkmate::assert_logical( ds$inst4_audit_support_redcap_admins , any.missing=F )
checkmate::assert_logical( ds$inst4_audit_support_research_compliance , any.missing=F )
checkmate::assert_logical( ds$inst4_audit_support_cto , any.missing=F )
checkmate::assert_logical( ds$inst4_audit_support_privacy_office , any.missing=F )
checkmate::assert_logical( ds$inst4_audit_support_it , any.missing=F )
checkmate::assert_logical( ds$inst4_audit_support_unsure , any.missing=F )
checkmate::assert_logical( ds$inst4_audit_support_not_me , any.missing=F )
checkmate::assert_logical( ds$inst4_audit_support_other , any.missing=F )
# checkmate::assert_numeric( ds$inst4_audit_status , any.missing=T , lower=0, upper=99 )
# checkmate::assert_numeric( ds$inst4_request_per_month_count , any.missing=T , lower=3, upper=1100 )
# checkmate::assert_numeric( ds$inst4_ticket , any.missing=T , lower=0, upper=1 )
Expand Down

0 comments on commit 81cf205

Please sign in to comment.