Skip to content

Commit

Permalink
repeating-instruments-sparse
Browse files Browse the repository at this point in the history
ref #539
  • Loading branch information
wibeasley committed Oct 12, 2024
1 parent 885408c commit 284d9be
Show file tree
Hide file tree
Showing 5 changed files with 286 additions and 2 deletions.
2 changes: 1 addition & 1 deletion inst/misc/dev-2.credentials
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ redcap_uri,username,project_id,token,comment
"https://redcap-dev-2.ouhsc.edu/redcap/api/","user-dag1" ,"49","8092B2302CAA359C4F5641AEC1CE72ED","DAG Write -group A"
"https://redcap-dev-2.ouhsc.edu/redcap/api/","myusername","50","C61A3BA66464DB67984673FD0F7AB02B","super-wide #2--5,785 columns"
"https://redcap-dev-2.ouhsc.edu/redcap/api/","myusername","51","5938FF306FC4BEBE75A3825B6BB310E8","super-wide #3--35,000 columns"
"https://redcap-dev-2.ouhsc.edu/redcap/api/","myusername","","","Repeating Instruments --Sparse"
"https://redcap-dev-2.ouhsc.edu/redcap/api/","myusername","52","64720C527CA236880FBA785C9934F02A","Repeating Instruments --Sparse"
"https://redcap-dev-2.ouhsc.edu/redcap/api/","myusername","","","Delete Single Arm"
"https://redcap-dev-2.ouhsc.edu/redcap/api/","myusername","","","Delete Multiple Arm"
"https://redcap-dev-2.ouhsc.edu/redcap/api/","myusername","","","longitudinal single arm"
Expand Down
2 changes: 1 addition & 1 deletion inst/misc/project-redirection.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
- dag-write: 49
- super-wide-2: 50
- super-wide-3: 51
- repeating-instruments-sparse: 0
- repeating-instruments-sparse: 52
- arm-single-delete: 0
- arm-multiple-delete: 0
- arm-single-longitudinal: 0
Expand Down
10 changes: 10 additions & 0 deletions inst/test-data/projects/repeating-instruments-sparse/data.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
record_id,redcap_repeat_instrument,redcap_repeat_instance,date_enrolled,first_name,dob,age,ethnicity,race,sex,demographics_complete,date_bp,bp_systolic,bp_diastolic,bp_complete
1,,,2019-10-14,aaa,2010-10-14,8.9,1,4,0,2,,,,
1,bp,1,,,,,,,,,2019-10-14,110,100,2
1,bp,2,,,,,,,,,2019-10-14,111,101,2
1,bp,3,,,,,,,,,2019-10-14,112,102,2
2,,,2019-02-02,bbb,2010-02-02,9.6,0,6,1,2,,,,
2,bp,1,,,,,,,,,2004-04-04,114,104,2
3,,,2021-11-04,"empty 3",,,,,,0,,,,
4,,,2021-11-04,"empty 4",,,,,,0,,,,
5,,,,"empty 5",,,,,,0,,,,
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
"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,demographics,,text,"Record ID",,,,,,,,,,,,,
date_enrolled,demographics,,text,"Date of Consent Signed:",,,date_ymd,,,,,,,,,,
first_name,demographics,,text,"Subject Initials (FML)",,"If no middle initial, please put a hyphen (-) as a place holder",,,,y,,,,,,,
dob,demographics,,text,"Date of Birth",,YYYY-MM-DD,date_ymd,,,y,,,,,,,
age,demographics,,calc,"Age (years)","rounddown(datediff(""today"", [dob], ""y"", ""ymd""), 1 )",,,,,,,,,,,,
ethnicity,demographics,,radio,Ethnicity,"0, Hispanic or Latino | 1, NOT Hispanic or Latino | 2, Unknown / Not Reported",,,,,,,,LH,,,,
race,demographics,,dropdown,Race,"0, American Indian/Alaska Native | 1, Asian | 2, Native Hawaiian or Other Pacific Islander | 3, Black or African American | 4, White | 5, More Than One Race | 6, Unknown / Not Reported",,,,,,,,,,,,
sex,demographics,,radio,Gender,"0, Female | 1, Male",,,,,,,,,,,,
date_bp,bp,,text,date_bp,,,date_ymd,,,,,,,,,,
bp_systolic,bp,,text,bp_systolic,,,integer,0,,,,,,,,,
bp_diastolic,bp,,text,bp_diastolic,,,integer,0,,,,,,,,,
Loading

0 comments on commit 284d9be

Please sign in to comment.