Skip to content

Commit

Permalink
arm-multiple-delete
Browse files Browse the repository at this point in the history
ref #552
  • Loading branch information
wibeasley committed Nov 5, 2024
1 parent 83e310d commit a33cfda
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 10 deletions.
2 changes: 1 addition & 1 deletion inst/misc/coph.credentials
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ redcap_uri,username,project_id,token,comment
"https://redcap.ouhsc.edu/redcap/api/","myusername","2315","BC2D824FCF936C80EEEDDDFC3D886043","super-wide-3"
"https://redcap.ouhsc.edu/redcap/api/","myusername","2316","1226D74DF3068D1749262E8557A597B8","repeating-instruments-sparse"
"https://redcap.ouhsc.edu/redcap/api/","myusername","2317","92D434EE7CB6D79D5C847D20DFA43979","arm-single-delete"
"https://redcap.ouhsc.edu/redcap/api/","myusername","0","","arm-multiple-delete"
"https://redcap.ouhsc.edu/redcap/api/","myusername","2318","84E5DE832DDE291203295CDA09557A36","arm-multiple-delete"
"https://redcap.ouhsc.edu/redcap/api/","myusername","0","","arm-single-longitudinal"
"https://redcap.ouhsc.edu/redcap/api/","myusername","0","","decimal-comma-and-dot"
"https://redcap.ouhsc.edu/redcap/api/","myusername","0","","decimal-comma"
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 @@ -91,7 +91,7 @@
- super-wide-3: 2315
- repeating-instruments-sparse: 2316
- arm-single-delete: 2317
- arm-multiple-delete: 0
- arm-multiple-delete: 2318
- arm-single-longitudinal: 0
- decimal-comma-and-dot: 0
- decimal-comma: 0
Expand Down
7 changes: 7 additions & 0 deletions inst/test-data/projects/arm-multiple-delete/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
arm-multiple-delete Setup
==============

In addition to the typical steps to establish a project,
make sure the plugin on your test server is updated to the correct `project_id` value in the delete sql.

The sql is in [wipe-project-redcapr-arm-delete-multiple.php](../../../../utility/plugins/wipe-project-redcapr-arm-delete-multiple.php).
18 changes: 10 additions & 8 deletions inst/test-data/projects/arm-multiple-delete/project.xml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<?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 Delete Multiple Arms" AsOfDateTime="2024-10-12T16:10:52" CreationDateTime="2024-10-12T16:10:52" SourceSystem="REDCap" SourceSystemVersion="14.6.11">
<Study OID="Project.REDCapRDeleteMultipleArms">
<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: arm-multiple-delete" AsOfDateTime="2024-11-05T15:26:45" CreationDateTime="2024-11-05T15:26:45" SourceSystem="REDCap" SourceSystemVersion="14.7.3">
<Study OID="Project.REDCapRArmmultipledelete">
<GlobalVariables>
<StudyName>REDCapR Delete Multiple Arms</StudyName>
<StudyDescription>This file contains the metadata, events, and data for REDCap project "REDCapR Delete Multiple Arms".</StudyDescription>
<ProtocolName>REDCapR Delete Multiple Arms</ProtocolName>
<StudyName>REDCapR: arm-multiple-delete</StudyName>
<StudyDescription>This file contains the metadata, events, and data for REDCap project "REDCapR: arm-multiple-delete".</StudyDescription>
<ProtocolName>REDCapR: arm-multiple-delete</ProtocolName>
<redcap:RecordAutonumberingEnabled>1</redcap:RecordAutonumberingEnabled>
<redcap:CustomRecordLabel></redcap:CustomRecordLabel>
<redcap:SecondaryUniqueField></redcap:SecondaryUniqueField>
Expand All @@ -13,15 +13,17 @@
<redcap:SchedulingEnabled>0</redcap:SchedulingEnabled>
<redcap:SurveysEnabled>1</redcap:SurveysEnabled>
<redcap:SurveyInvitationEmailField></redcap:SurveyInvitationEmailField>
<redcap:RandomizationEnabled>0</redcap:RandomizationEnabled>
<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:taskCompleteStatus>0</redcap:taskCompleteStatus>
<redcap:MyCapEnabled>0</redcap:MyCapEnabled>
<redcap:Purpose>4</redcap:Purpose>
<redcap:PurposeOther></redcap:PurposeOther>
<redcap:ProjectNotes>REDCapR Test Suite: delete records from a multiple-arm project</redcap:ProjectNotes>
<redcap:ProjectNotes></redcap:ProjectNotes>
<redcap:MissingDataCodes></redcap:MissingDataCodes>
<redcap:ProtectedEmailMode>0</redcap:ProtectedEmailMode>
<redcap:ProtectedEmailModeCustomText></redcap:ProtectedEmailModeCustomText>
Expand All @@ -31,7 +33,7 @@
<redcap:UserRoles role_name="api" unique_role_name="U-562XDAR84R" 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="1" api_modules="0" mobile_app="0" mobile_app_download_data="0" record_create="1" record_rename="0" record_delete="1" dts="0" participants="0" 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.REDCapRDeleteMultipleArms_2024-10-12_1610" Name="REDCapR Delete Multiple Arms" redcap:RecordIdField="record_id">
<MetaDataVersion OID="Metadata.REDCapRArmmultipledelete_2024-11-05_1526" Name="REDCapR: arm-multiple-delete" redcap:RecordIdField="record_id">
<Protocol>
<StudyEventRef StudyEventOID="Event.event_1_arm_1" OrderNumber="1" Mandatory="No"/>
<StudyEventRef StudyEventOID="Event.event_1_arm_2" OrderNumber="2" Mandatory="No"/>
Expand Down Expand Up @@ -78,7 +80,7 @@
</CodeList>
</MetaDataVersion>
</Study>
<ClinicalData StudyOID="Project.REDCapRDeleteMultipleArms" MetaDataVersionOID="Metadata.REDCapRDeleteMultipleArms_2024-10-12_1610">
<ClinicalData StudyOID="Project.REDCapRArmmultipledelete" MetaDataVersionOID="Metadata.REDCapRArmmultipledelete_2024-11-05_1526">
<SubjectData SubjectKey="101" redcap:RecordIdField="record_id">
<StudyEventData StudyEventOID="Event.event_1_arm_1" StudyEventRepeatKey="1" redcap:UniqueEventName="event_1_arm_1">
<FormData FormOID="Form.demographics" FormRepeatKey="1">
Expand Down

0 comments on commit a33cfda

Please sign in to comment.