-
Notifications
You must be signed in to change notification settings - Fork 48
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
115 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
inst/test-data/projects/potentially-problematic-dictionary/data.csv
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
|
8 changes: 4 additions & 4 deletions
8
inst/test-data/projects/potentially-problematic-dictionary/dictionary.csv
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
"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",,,,,,,,,,,,, | ||
v1,form_1,,dropdown,"Is the laser mounted on the shark?�?�","0, No | 1, Yes | 3, I should find out",,,,,,,,,,,, | ||
curly_quote_single,form_1,,radio,My child doesn’t like candy,"0, (0) Never or Almost Never | 1, (1) Sometimes | 2, (2) Often",,,,,,,,,,,, | ||
curly_quote_double_left,form_1,,radio,Maybe I don't “look the part","0, Bennett | 1, Brauer",,,,,,,,,,,,https://github.com/OuhscBbmc/REDCapR/issues/290 | ||
curly_quote_double_right,form_1,,radio,Maybe I don't "look comfortable on camera”,"0, Bennett | 1, Brauer",,,,,,,,,,,,https://github.com/OuhscBbmc/REDCapR/issues/290 | ||
long_dash,form_1,,radio,Maybe I don't "wear the latest clothes" −or even ones that don't "reek","0, Bennett | 1, Brauer",,,,,,,,,,,,https://github.com/OuhscBbmc/REDCapR/issues/290 | ||
curly_quote_single,form_1,,radio,"My child doesn't like candy","0, (0) Never or Almost Never | 1, (1) Sometimes | 2, (2) Often",,,,,,,,,,,, | ||
curly_quote_double_left,form_1,,radio,"Maybe I don't ""look the part""","0, Bennett | 1, Brauer",,,,,,,,,,,,https://github.com/OuhscBbmc/REDCapR/issues/290 | ||
curly_quote_double_right,form_1,,radio,"Maybe I don't ""look comfortable on camera""","0, Bennett | 1, Brauer",,,,,,,,,,,,https://github.com/OuhscBbmc/REDCapR/issues/290 | ||
long_dash,form_1,,radio,"Maybe I don't ""wear the latest clothes"" −or even ones that don't ""reek""","0, Bennett | 1, Brauer",,,,,,,,,,,,https://github.com/OuhscBbmc/REDCapR/issues/290 |
108 changes: 108 additions & 0 deletions
108
inst/test-data/projects/potentially-problematic-dictionary/project.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,108 @@ | ||
<?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 Problematic dictionary" AsOfDateTime="2024-10-11T18:17:08" CreationDateTime="2024-10-11T18:17:08" SourceSystem="REDCap" SourceSystemVersion="14.6.11"> | ||
<Study OID="Project.REDCapRProblematicDictionary"> | ||
<GlobalVariables> | ||
<StudyName>REDCapR Problematic dictionary</StudyName> | ||
<StudyDescription>This file contains the metadata, events, and data for REDCap project "REDCapR Problematic dictionary".</StudyDescription> | ||
<ProtocolName>REDCapR Problematic dictionary</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>4</redcap:Purpose> | ||
<redcap:PurposeOther></redcap:PurposeOther> | ||
<redcap:ProjectNotes>Has variables or descriptions that might cause problems with the API</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:UserRolesGroup> | ||
<redcap:UserRoles role_name="api" unique_role_name="U-1279LLPFHD" lock_record="0" lock_record_multiform="0" lock_record_customize="0" data_export_tool="" data_export_instruments="[form_1,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="[form_1,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="0"/> | ||
</redcap:UserRolesGroup> | ||
</GlobalVariables> | ||
<MetaDataVersion OID="Metadata.REDCapRProblematicDictionary_2024-10-11_1817" Name="REDCapR Problematic dictionary" redcap:RecordIdField="record_id"> | ||
<FormDef OID="Form.form_1" Name="Form 1" Repeating="No" redcap:FormName="form_1"> | ||
<ItemGroupRef ItemGroupOID="form_1.record_id" Mandatory="No"/> | ||
<ItemGroupRef ItemGroupOID="form_1.form_1_complete" Mandatory="No"/> | ||
</FormDef> | ||
<ItemGroupDef OID="form_1.record_id" Name="Form 1" Repeating="No"> | ||
<ItemRef ItemOID="record_id" Mandatory="No" redcap:Variable="record_id"/> | ||
<ItemRef ItemOID="v1" Mandatory="No" redcap:Variable="v1"/> | ||
<ItemRef ItemOID="curly_quote_single" Mandatory="No" redcap:Variable="curly_quote_single"/> | ||
<ItemRef ItemOID="curly_quote_double_left" Mandatory="No" redcap:Variable="curly_quote_double_left"/> | ||
<ItemRef ItemOID="curly_quote_double_right" Mandatory="No" redcap:Variable="curly_quote_double_right"/> | ||
<ItemRef ItemOID="long_dash" Mandatory="No" redcap:Variable="long_dash"/> | ||
</ItemGroupDef> | ||
<ItemGroupDef OID="form_1.form_1_complete" Name="Form Status" Repeating="No"> | ||
<ItemRef ItemOID="form_1_complete" Mandatory="No" redcap:Variable="form_1_complete"/> | ||
</ItemGroupDef> | ||
<ItemDef OID="record_id" Name="record_id" DataType="text" Length="999" redcap:Variable="record_id" redcap:FieldType="text"> | ||
<Question><TranslatedText>Record ID</TranslatedText></Question> | ||
</ItemDef> | ||
<ItemDef OID="v1" Name="v1" DataType="text" Length="1" redcap:Variable="v1" redcap:FieldType="select"> | ||
<Question><TranslatedText>Is the laser mounted on the shark?�?�</TranslatedText></Question> | ||
<CodeListRef CodeListOID="v1.choices"/> | ||
</ItemDef> | ||
<ItemDef OID="curly_quote_single" Name="curly_quote_single" DataType="text" Length="1" redcap:Variable="curly_quote_single" redcap:FieldType="radio"> | ||
<Question><TranslatedText>My child doesn't like candy</TranslatedText></Question> | ||
<CodeListRef CodeListOID="curly_quote_single.choices"/> | ||
</ItemDef> | ||
<ItemDef OID="curly_quote_double_left" Name="curly_quote_double_left" DataType="text" Length="1" redcap:Variable="curly_quote_double_left" redcap:FieldType="radio" redcap:FieldAnnotation="https://github.com/OuhscBbmc/REDCapR/issues/290"> | ||
<Question><TranslatedText>Maybe I don't "look the part"</TranslatedText></Question> | ||
<CodeListRef CodeListOID="curly_quote_double_left.choices"/> | ||
</ItemDef> | ||
<ItemDef OID="curly_quote_double_right" Name="curly_quote_double_right" DataType="text" Length="1" redcap:Variable="curly_quote_double_right" redcap:FieldType="radio" redcap:FieldAnnotation="https://github.com/OuhscBbmc/REDCapR/issues/290"> | ||
<Question><TranslatedText>Maybe I don't "look comfortable on camera"</TranslatedText></Question> | ||
<CodeListRef CodeListOID="curly_quote_double_right.choices"/> | ||
</ItemDef> | ||
<ItemDef OID="long_dash" Name="long_dash" DataType="text" Length="1" redcap:Variable="long_dash" redcap:FieldType="radio" redcap:FieldAnnotation="https://github.com/OuhscBbmc/REDCapR/issues/290"> | ||
<Question><TranslatedText>Maybe I don't "wear the latest clothes" −or even ones that don't "reek"</TranslatedText></Question> | ||
<CodeListRef CodeListOID="long_dash.choices"/> | ||
</ItemDef> | ||
<ItemDef OID="form_1_complete" Name="form_1_complete" DataType="text" Length="1" redcap:Variable="form_1_complete" redcap:FieldType="select" redcap:SectionHeader="Form Status"> | ||
<Question><TranslatedText>Complete?</TranslatedText></Question> | ||
<CodeListRef CodeListOID="form_1_complete.choices"/> | ||
</ItemDef> | ||
<CodeList OID="v1.choices" Name="v1" DataType="text" redcap:Variable="v1"> | ||
<CodeListItem CodedValue="0"><Decode><TranslatedText>No</TranslatedText></Decode></CodeListItem> | ||
<CodeListItem CodedValue="1"><Decode><TranslatedText>Yes</TranslatedText></Decode></CodeListItem> | ||
<CodeListItem CodedValue="3"><Decode><TranslatedText>I should find out</TranslatedText></Decode></CodeListItem> | ||
</CodeList> | ||
<CodeList OID="curly_quote_single.choices" Name="curly_quote_single" DataType="text" redcap:Variable="curly_quote_single"> | ||
<CodeListItem CodedValue="0"><Decode><TranslatedText>(0) Never or Almost Never</TranslatedText></Decode></CodeListItem> | ||
<CodeListItem CodedValue="1"><Decode><TranslatedText>(1) Sometimes</TranslatedText></Decode></CodeListItem> | ||
<CodeListItem CodedValue="2"><Decode><TranslatedText>(2) Often</TranslatedText></Decode></CodeListItem> | ||
</CodeList> | ||
<CodeList OID="curly_quote_double_left.choices" Name="curly_quote_double_left" DataType="text" redcap:Variable="curly_quote_double_left"> | ||
<CodeListItem CodedValue="0"><Decode><TranslatedText>Bennett</TranslatedText></Decode></CodeListItem> | ||
<CodeListItem CodedValue="1"><Decode><TranslatedText>Brauer</TranslatedText></Decode></CodeListItem> | ||
</CodeList> | ||
<CodeList OID="curly_quote_double_right.choices" Name="curly_quote_double_right" DataType="text" redcap:Variable="curly_quote_double_right"> | ||
<CodeListItem CodedValue="0"><Decode><TranslatedText>Bennett</TranslatedText></Decode></CodeListItem> | ||
<CodeListItem CodedValue="1"><Decode><TranslatedText>Brauer</TranslatedText></Decode></CodeListItem> | ||
</CodeList> | ||
<CodeList OID="long_dash.choices" Name="long_dash" DataType="text" redcap:Variable="long_dash"> | ||
<CodeListItem CodedValue="0"><Decode><TranslatedText>Bennett</TranslatedText></Decode></CodeListItem> | ||
<CodeListItem CodedValue="1"><Decode><TranslatedText>Brauer</TranslatedText></Decode></CodeListItem> | ||
</CodeList> | ||
<CodeList OID="form_1_complete.choices" Name="form_1_complete" DataType="text" redcap:Variable="form_1_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.REDCapRProblematicDictionary" MetaDataVersionOID="Metadata.REDCapRProblematicDictionary_2024-10-11_1817"> | ||
</ClinicalData> | ||
</ODM> |