Skip to content

Commit

Permalink
single-column
Browse files Browse the repository at this point in the history
ref #539
  • Loading branch information
wibeasley committed Oct 11, 2024
1 parent 5053cf8 commit 1393d35
Show file tree
Hide file tree
Showing 4 changed files with 74 additions and 2 deletions.
4 changes: 2 additions & 2 deletions inst/misc/dev-2.credentials
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ redcap_uri,username,project_id,token,comment
"https://redcap-dev-2.ouhsc.edu/redcap/api/","myusername","34","DA6F2BB23146BD5A7EA3408C1A44A556","longitudinal (read-only) ARM test project"
"https://redcap-dev-2.ouhsc.edu/redcap/api/","myusername","36","F9CBFFF78C3D78F641BAE9623F6B7E6A","simple write data"
"https://redcap-dev-2.ouhsc.edu/redcap/api/","myusername","37","7FD9A8BFC00BD2D7999DCDB9C19504B3","Russian Characters"
"https://redcap-dev-2.ouhsc.edu/redcap/api/","myusername","","","Empty rows"
"https://redcap-dev-2.ouhsc.edu/redcap/api/","myusername","","","Single column"
"https://redcap-dev-2.ouhsc.edu/redcap/api/","myusername","38","7943545B7DD2C43B12AFA3F81F0B53A5","Empty rows"
"https://redcap-dev-2.ouhsc.edu/redcap/api/","myusername","39","082C1C39D957FA7CF7CF36FCC6A9CCB2","Single column --not tested currently"
"https://redcap-dev-2.ouhsc.edu/redcap/api/","myusername","","","super-wide --3,000 columns"
"https://redcap-dev-2.ouhsc.edu/redcap/api/","myusername","","","static (not longitudinal) survey test project"
"https://redcap-dev-2.ouhsc.edu/redcap/api/","myusername","","","Clinical Trial (Fake) --Read-only, contributed by @higgi13425"
Expand Down
1 change: 1 addition & 0 deletions inst/test-data/projects/single-column/data.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

2 changes: 2 additions & 0 deletions inst/test-data/projects/single-column/dictionary.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
"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",,,,,,,,,,,,,
69 changes: 69 additions & 0 deletions inst/test-data/projects/single-column/project.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
<?xml version="1.0" encoding="UTF-8" ?>
<ODM xmlns="http://www.cdisc.org/ns/odm/v1.3" xmlns:ds="http://www.w3.org/2000/09/xmldsig#" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:redcap="https://projectredcap.org" xsi:schemaLocation="http://www.cdisc.org/ns/odm/v1.3 schema/odm/ODM1-3-1.xsd" ODMVersion="1.3.1" FileOID="000-00-0000" FileType="Snapshot" Description="REDCapR Target Empty Columns -see https://github.com/OuhscBbmc/REDCapR" AsOfDateTime="2024-10-11T15:17:21" CreationDateTime="2024-10-11T15:17:21" SourceSystem="REDCap" SourceSystemVersion="14.6.11">
<Study OID="Project.REDCapRTargetEmptyColumnsSeeHt">
<GlobalVariables>
<StudyName>REDCapR Target Empty Columns -see https://github.com/OuhscBbmc/REDCapR</StudyName>
<StudyDescription>This file contains the metadata, events, and data for REDCap project "REDCapR Target Empty Columns -see https://github.com/OuhscBbmc/REDCapR".</StudyDescription>
<ProtocolName>REDCapR Target Empty Columns -see https://github.com/OuhscBbmc/REDCapR</ProtocolName>
<redcap:RecordAutonumberingEnabled>1</redcap:RecordAutonumberingEnabled>
<redcap:CustomRecordLabel></redcap:CustomRecordLabel>
<redcap:SecondaryUniqueField></redcap:SecondaryUniqueField>
<redcap:SecondaryUniqueFieldDisplayValue>1</redcap:SecondaryUniqueFieldDisplayValue>
<redcap:SecondaryUniqueFieldDisplayLabel>1</redcap:SecondaryUniqueFieldDisplayLabel>
<redcap:SchedulingEnabled>0</redcap:SchedulingEnabled>
<redcap:SurveysEnabled>0</redcap:SurveysEnabled>
<redcap:SurveyInvitationEmailField></redcap:SurveyInvitationEmailField>
<redcap:DisplayTodayNowButton>1</redcap:DisplayTodayNowButton>
<redcap:PreventBranchingEraseValues>0</redcap:PreventBranchingEraseValues>
<redcap:RequireChangeReason>0</redcap:RequireChangeReason>
<redcap:DataHistoryPopup>1</redcap:DataHistoryPopup>
<redcap:OrderRecordsByField></redcap:OrderRecordsByField>
<redcap:MyCapEnabled>0</redcap:MyCapEnabled>
<redcap:Purpose>0</redcap:Purpose>
<redcap:PurposeOther></redcap:PurposeOther>
<redcap:ProjectNotes></redcap:ProjectNotes>
<redcap:MissingDataCodes></redcap:MissingDataCodes>
<redcap:ProtectedEmailMode>0</redcap:ProtectedEmailMode>
<redcap:ProtectedEmailModeCustomText></redcap:ProtectedEmailModeCustomText>
<redcap:ProtectedEmailModeTrigger>ALL</redcap:ProtectedEmailModeTrigger>
<redcap:ProtectedEmailModeLogo></redcap:ProtectedEmailModeLogo>
<redcap:DataAccessGroupsGroup>
<redcap:DataAccessGroups group_name="dag_1"/>
<redcap:DataAccessGroups group_name="dag_2"/>
</redcap:DataAccessGroupsGroup>
<redcap:UserRolesGroup>
<redcap:UserRoles role_name="api" unique_role_name="U-9627L9CNY7" lock_record="0" lock_record_multiform="0" lock_record_customize="0" data_export_tool="" data_export_instruments="[demographics,1]" data_import_tool="0" data_comparison_tool="0" data_logging="0" email_logging="0" file_repository="0" double_data="0" user_rights="0" data_access_groups="0" graphical="0" reports="0" design="0" alerts="0" calendar="0" data_entry="[demographics,1]" api_export="1" api_import="0" api_modules="0" mobile_app="0" mobile_app_download_data="0" record_create="0" record_rename="0" record_delete="0" dts="0" participants="1" data_quality_design="0" data_quality_execute="0" data_quality_resolution="1" random_setup="0" random_dashboard="0" random_perform="0" realtime_webservice_mapping="0" realtime_webservice_adjudicate="0" external_module_config="" mycap_participants="1"/>
</redcap:UserRolesGroup>
</GlobalVariables>
<MetaDataVersion OID="Metadata.REDCapRTargetEmptyColumnsSeeHt_2024-10-11_1517" Name="REDCapR Target Empty Columns -see https://github.com/OuhscBbmc/REDCapR" redcap:RecordIdField="record_id">
<FormDef OID="Form.demographics" Name="demographics" Repeating="No" redcap:FormName="demographics">
<ItemGroupRef ItemGroupOID="demographics.record_id" Mandatory="No"/>
<ItemGroupRef ItemGroupOID="demographics.demographics_complete" Mandatory="No"/>
</FormDef>
<ItemGroupDef OID="demographics.record_id" Name="demographics" Repeating="No">
<ItemRef ItemOID="record_id" Mandatory="No" redcap:Variable="record_id"/>
<ItemRef ItemOID="redcap_data_access_group" Mandatory="No" redcap:Variable="redcap_data_access_group"/>
</ItemGroupDef>
<ItemGroupDef OID="demographics.demographics_complete" Name="Form Status" Repeating="No">
<ItemRef ItemOID="demographics_complete" Mandatory="No" redcap:Variable="demographics_complete"/>
</ItemGroupDef>
<ItemDef OID="record_id" Name="record_id" DataType="text" Length="999" redcap:Variable="record_id" redcap:FieldType="text">
<Question><TranslatedText>Study ID</TranslatedText></Question>
</ItemDef>
<ItemDef OID="redcap_data_access_group" Name="redcap_data_access_group" DataType="text" Length="999" redcap:Variable="redcap_data_access_group">
<Question><TranslatedText>Data Access Group</TranslatedText></Question>
</ItemDef>
<ItemDef OID="demographics_complete" Name="demographics_complete" DataType="text" Length="1" redcap:Variable="demographics_complete" redcap:FieldType="select" redcap:SectionHeader="Form Status">
<Question><TranslatedText>Complete?</TranslatedText></Question>
<CodeListRef CodeListOID="demographics_complete.choices"/>
</ItemDef>
<CodeList OID="demographics_complete.choices" Name="demographics_complete" DataType="text" redcap:Variable="demographics_complete">
<CodeListItem CodedValue="0"><Decode><TranslatedText>Incomplete</TranslatedText></Decode></CodeListItem>
<CodeListItem CodedValue="1"><Decode><TranslatedText>Unverified</TranslatedText></Decode></CodeListItem>
<CodeListItem CodedValue="2"><Decode><TranslatedText>Complete</TranslatedText></Decode></CodeListItem>
</CodeList>
</MetaDataVersion>
</Study>
<ClinicalData StudyOID="Project.REDCapRTargetEmptyColumnsSeeHt" MetaDataVersionOID="Metadata.REDCapRTargetEmptyColumnsSeeHt_2024-10-11_1517">
</ClinicalData>
</ODM>

0 comments on commit 1393d35

Please sign in to comment.