Skip to content

Commit

Permalink
@januz's checkbox example
Browse files Browse the repository at this point in the history
ref #420
  • Loading branch information
wibeasley committed Sep 2, 2022
1 parent 86eeaf7 commit fa24394
Show file tree
Hide file tree
Showing 4 changed files with 316 additions and 0 deletions.
1 change: 1 addition & 0 deletions inst/misc/example.credentials
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,4 @@ redcap_uri,username,project_id,token,comment
"https://bbmc.ouhsc.edu/redcap/api/","myusername","2632","D7DDE242E717619E17F7DF0D3CE582B1","decimal dot"
"https://bbmc.ouhsc.edu/redcap/api/","myusername","2634","8F5313CAA266789F560D79EFCEE2E2F1","Validation Types"
"https://bbmc.ouhsc.edu/redcap/api/","myusername","3003","1F2EC7059AC339DFDCD5800225DC7A95","Blank for Gray Status"
"https://bbmc.ouhsc.edu/redcap/api/","myusername","3074","5007DC786DBE39CE77ED8DD0C68069A6","Checkboxes 1"
5 changes: 5 additions & 0 deletions inst/test-data/checkboxes-1/data.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
record_id,form_1_complete,check_one___1,check_one___2,check_one___3,check_one___4,check_two___a,check_two___b,check_two___c,check_two___d,check_two___e,desired_result,form_2_complete
1,0,1,0,0,0,1,0,1,0,0,"Should have data for both checkbox items: check_one: - check_one___1 should be 1 - check_one___[2-4] should be 0 check_two: - check_two___a should be 1 - check_two___c should be 1 - check_one___[b;d;e] should be 0 completion status should be 2",2
2,0,0,0,0,0,0,1,0,1,0,"Should have data only for the second checkbox item: check_one: - check_one___[1-4] should be NA check_two: - check_two___b should be 1 - check_two___d should be 1 - check_one___[a;c;e] should be 0 completion status should be 1",0
3,0,1,1,1,1,0,0,0,0,0,"Should have data for only the first checkbox item: check_one: - check_one___[1-4] should be 1 check_two: - check_two___[a-e] should be NA - check_two___c should be 1 - check_one___[b;d;e] should be 0 completion status should be 2",2
4,0,0,0,0,0,0,0,0,0,0,,0
5 changes: 5 additions & 0 deletions inst/test-data/checkboxes-1/dictionary.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
"Variable / Field Name","Form Name","Section Header","Field Type","Field Label","Choices, Calculations, OR Slider Labels","Field Note","Text Validation Type OR Show Slider Number","Text Validation Min","Text Validation Max",Identifier?,"Branching Logic (Show field only if...)","Required Field?","Custom Alignment","Question Number (surveys only)","Matrix Group Name","Matrix Ranking?","Field Annotation"
record_id,form_1,,text,"Record ID",,,,,,,,,,,,,
check_one,form_2,,checkbox,"check one","1, one | 2, two | 3, three | 4, four",,,,,,,,,,,,
check_two,form_2,,checkbox,"check two","a, A | b, B | c, C | d, D | e, E",,,,,,,,,,,,
desired_result,form_2,,notes,"What should happen for this participant",,,,,,,,,,,,,
Loading

0 comments on commit fa24394

Please sign in to comment.