From e30be43ad9e05a92be3b42022dc0562bb6ad5279 Mon Sep 17 00:00:00 2001 From: Will Beasley Date: Sat, 12 Oct 2024 21:54:28 -0500 Subject: [PATCH] blank-for-gray-status ref #539 --- inst/misc/dev-2.credentials | 2 +- .../projects/blank-for-gray-status/data.csv | 7 + .../blank-for-gray-status/dictionary.csv | 18 + .../blank-for-gray-status/project.xml | 572 ++++++++++++++++++ 4 files changed, 598 insertions(+), 1 deletion(-) create mode 100644 inst/test-data/projects/blank-for-gray-status/data.csv create mode 100644 inst/test-data/projects/blank-for-gray-status/dictionary.csv create mode 100644 inst/test-data/projects/blank-for-gray-status/project.xml diff --git a/inst/misc/dev-2.credentials b/inst/misc/dev-2.credentials index d04519b4..e9e6c2ff 100644 --- a/inst/misc/dev-2.credentials +++ b/inst/misc/dev-2.credentials @@ -32,6 +32,6 @@ redcap_uri,username,project_id,token,comment "https://redcap-dev-2.ouhsc.edu/redcap/api/","myusername","57","1BB275D06D7A86F8EDA2FB20BDF3A196","decimal comma" "https://redcap-dev-2.ouhsc.edu/redcap/api/","myusername","58","CC757AD84F18F97B91BD344FA287CB38","decimal dot" "https://redcap-dev-2.ouhsc.edu/redcap/api/","myusername","59","EB1FD5DDE583364AE605629AB7619397","Validation Types" -"https://redcap-dev-2.ouhsc.edu/redcap/api/","myusername","","","Blank for Gray Status" +"https://redcap-dev-2.ouhsc.edu/redcap/api/","myusername","60","597BC2FF26B8212D1AC26E614E33B442","Blank for Gray Status" "https://redcap-dev-2.ouhsc.edu/redcap/api/","myusername","","","Checkboxes 1" "https://redcap-dev-2.ouhsc.edu/redcap/api/","myusername","","","Vignette: Reading Longitudinal & Repeating Measures" \ No newline at end of file diff --git a/inst/test-data/projects/blank-for-gray-status/data.csv b/inst/test-data/projects/blank-for-gray-status/data.csv new file mode 100644 index 00000000..4043b8ef --- /dev/null +++ b/inst/test-data/projects/blank-for-gray-status/data.csv @@ -0,0 +1,7 @@ +record_id,redcap_data_access_group,name_first,name_last,address,telephone,email,dob,age,sex,demographics_complete,height,weight,bmi,comments,mugshot,health_complete,race___1,race___2,race___3,race___4,race___5,race___6,ethnicity,interpreter_needed,race_and_ethnicity_complete +1,dag_1,Nutmeg,Nutmouse,"14 Rose Cottage St. Kenning UK, 323232","(405) 321-1111",nutty@mouse.com,2003-08-30,11,0,2,7,1,204.1,"Character in a book, with some guessing",mugshot-1.jpg,1,0,0,0,0,1,0,1,0,2 +2,dag_1,Tumtum,Nutmouse,"14 Rose Cottage Blvd. Kenning UK 34243","(405) 321-2222",tummy@mouse.comm,2003-03-10,11,1,2,6,1,277.8,"A mouse character from a good book",mugshot-2.jpg,0,0,0,1,0,1,0,1,0,0 +3,dag_1,Marcus,Wood,"243 Hill St. Guthrie OK 73402","(405) 321-3333",mw@mwood.net,1934-04-09,80,1,2,180,80,24.7,"completely made up",mugshot-3.jpg,2,0,0,0,1,1,0,0,1,2 +4,,Trudy,DAG,"342 Elm Duncanville TX, 75116","(405) 321-4444",peroxide@blonde.com,1952-11-02,61,0,2,165,54,19.8,"This record doesn't have a DAG assigned So call up Trudy on the telephone Send her a letter in the mail",mugshot-4.jpg,2,0,1,0,0,1,0,1,,2 +5,dag_2,"John Lee",Walker,"Hotel Suite New Orleans LA, 70115","(405) 321-5555",left@hippocket.com,1955-04-15,59,1,2,193.04,104,27.9,"Had a hand for trouble and a eye for cash He had a gold watch chain and a black mustache",mugshot-5.jpg,0,1,0,0,0,0,1,2,0,2 +6,,blank-for-gray,blank-for-gray,,,,,,,0,,,,,,0,0,0,0,0,0,0,,,0 diff --git a/inst/test-data/projects/blank-for-gray-status/dictionary.csv b/inst/test-data/projects/blank-for-gray-status/dictionary.csv new file mode 100644 index 00000000..57d0b805 --- /dev/null +++ b/inst/test-data/projects/blank-for-gray-status/dictionary.csv @@ -0,0 +1,18 @@ +"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,"Study ID",,,,,,,,,,,,, +name_first,demographics,"Contact Information",text,"First Name",,,,,,y,,,,,,, +name_last,demographics,,text,"Last Name",,,,,,y,,,,,,, +address,demographics,,notes,"Street, City, State, ZIP",,,,,,y,,,,,,, +telephone,demographics,,text,"Phone number",,"Include Area Code",phone,,,y,,,,,,, +email,demographics,,text,E-mail,,,email,,,y,,,,,,, +dob,demographics,,text,"Date of birth",,,date_ymd,,,y,,,,,,, +age,demographics,,text,"Age (years)",,,,,,,,,,,,, +sex,demographics,,radio,Gender,"0, Female | 1, Male",,,,,,,,,,,, +height,health,,text,"Height (cm)",,,number,130,215,,,,,,,, +weight,health,,text,"Weight (kilograms)",,,integer,35,200,,,,,,,, +bmi,health,,text,BMI,,,,,,,,,,,,, +comments,health,"General Comments",notes,Comments,,,,,,,,,,,,, +mugshot,health,,file,Mugshot,,,,,,,,,,,,, +race,race_and_ethnicity,,checkbox,"Race (Select all that apply)","1, American Indian/Alaska Native | 2, Asian | 3, Native Hawaiian or Other Pacific Islander | 4, Black or African American | 5, White | 6, Unknown / Not Reported",,,,,,,,,,,, +ethnicity,race_and_ethnicity,,radio,Ethnicity,"0, Unknown / Not Reported | 1, NOT Hispanic or Latino | 2, Hispanic or Latino",,,,,,,,,,,, +interpreter_needed,race_and_ethnicity,,truefalse,"Are interpreter services requested?",,,,,,,,,,,,, diff --git a/inst/test-data/projects/blank-for-gray-status/project.xml b/inst/test-data/projects/blank-for-gray-status/project.xml new file mode 100644 index 00000000..3128c0a2 --- /dev/null +++ b/inst/test-data/projects/blank-for-gray-status/project.xml @@ -0,0 +1,572 @@ + + + + + REDCapR Target Simple with Gray Form Status --see https://github.com/OuhscBbmc/REDCapR + This file contains the metadata, events, and data for REDCap project "REDCapR Target Simple with Gray Form Status --see https://github.com/OuhscBbmc/REDCapR". + REDCapR Target Simple with Gray Form Status --see https://github.com/OuhscBbmc/REDCapR + 1 + + + 1 + 1 + 0 + 0 + + 1 + 0 + 0 + 1 + + 0 + 0 + + Created for +https://github.com/OuhscBbmc/REDCapR/issues/386 & https://github.com/OuhscBbmc/REDCapR/pull/389 + + 0 + + ALL + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Study ID + + + Data Access Group + + + First Name + + + Last Name + + + Street, City, State, ZIP + + + Phone number + + + E-mail + + + Date of birth + + + Age (years) + + + Gender + + + + Complete? + + + + Height (cm) + + 130 + The value you provided is outside the suggested range (130 - 215). This value is admissible, but you may wish to double check it. + + + 215 + The value you provided is outside the suggested range (130 - 215). This value is admissible, but you may wish to double check it. + + + + Weight (kilograms) + + 35 + The value you provided is outside the suggested range (35 - 200). This value is admissible, but you may wish to double check it. + + + 200 + The value you provided is outside the suggested range (35 - 200). This value is admissible, but you may wish to double check it. + + + + BMI + + + Comments + + + Mugshot + + + Complete? + + + + Race (Select all that apply) + + + + Race (Select all that apply) + + + + Race (Select all that apply) + + + + Race (Select all that apply) + + + + Race (Select all that apply) + + + + Race (Select all that apply) + + + + Ethnicity + + + + Are interpreter services requested? + + + + Complete? + + + + Female + Male + + + Incomplete + Unverified + Complete + + + Incomplete + Unverified + Complete + + + Checked + Unchecked + + + Checked + Unchecked + + + Checked + Unchecked + + + Checked + Unchecked + + + Checked + Unchecked + + + Checked + Unchecked + + + Unknown / Not Reported + NOT Hispanic or Latino + Hispanic or Latino + + + True + False + + + Incomplete + Unverified + Complete + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file