Skip to content

Commit

Permalink
turn on survey privileges
Browse files Browse the repository at this point in the history
ref #542
  • Loading branch information
wibeasley committed Oct 14, 2024
1 parent ae60da8 commit 5bf737d
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
22 changes: 11 additions & 11 deletions inst/test-data/projects/survey/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 Target Survey Static -see https://github.com/OuhscBbmc/REDCapR" AsOfDateTime="2024-10-11T16:48:02" CreationDateTime="2024-10-11T16:48:02" SourceSystem="REDCap" SourceSystemVersion="14.6.11">
<Study OID="Project.REDCapRTargetSurveyStaticSeeHt">
<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: survey" AsOfDateTime="2024-10-13T21:40:19" CreationDateTime="2024-10-13T21:40:19" SourceSystem="REDCap" SourceSystemVersion="14.6.11">
<Study OID="Project.REDCapRSurvey">
<GlobalVariables>
<StudyName>REDCapR Target Survey Static -see https://github.com/OuhscBbmc/REDCapR</StudyName>
<StudyDescription>This file contains the metadata, events, and data for REDCap project "REDCapR Target Survey Static -see https://github.com/OuhscBbmc/REDCapR".</StudyDescription>
<ProtocolName>REDCapR Target Survey Static -see https://github.com/OuhscBbmc/REDCapR</ProtocolName>
<StudyName>REDCapR: survey</StudyName>
<StudyDescription>This file contains the metadata, events, and data for REDCap project "REDCapR: survey".</StudyDescription>
<ProtocolName>REDCapR: survey</ProtocolName>
<redcap:RecordAutonumberingEnabled>1</redcap:RecordAutonumberingEnabled>
<redcap:CustomRecordLabel></redcap:CustomRecordLabel>
<redcap:SecondaryUniqueField></redcap:SecondaryUniqueField>
Expand Down Expand Up @@ -54,7 +54,7 @@
<redcap:UserRoles role_name="api" unique_role_name="U-934FFEECMF" lock_record="0" lock_record_multiform="0" lock_record_customize="0" data_export_tool="" data_export_instruments="[prescreening_survey,1][participant_info_survey,1][participant_morale_questionnaire,1][completion_data,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="[prescreening_survey,3][participant_info_survey,3][participant_morale_questionnaire,3][completion_data,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.REDCapRTargetSurveyStaticSeeHt_2024-10-11_1648" Name="REDCapR Target Survey Static -see https://github.com/OuhscBbmc/REDCapR" redcap:RecordIdField="participant_id">
<MetaDataVersion OID="Metadata.REDCapRSurvey_2024-10-13_2140" Name="REDCapR: survey" redcap:RecordIdField="participant_id">
<FormDef OID="Form.prescreening_survey" Name="Pre-Screening Survey" Repeating="No" redcap:FormName="prescreening_survey">
<ItemGroupRef ItemGroupOID="prescreening_survey.participant_id" Mandatory="No"/>
<ItemGroupRef ItemGroupOID="prescreening_survey.prescreening_survey_timestamp" Mandatory="No"/>
Expand Down Expand Up @@ -365,12 +365,12 @@
</CodeList>
</MetaDataVersion>
</Study>
<ClinicalData StudyOID="Project.REDCapRTargetSurveyStaticSeeHt" MetaDataVersionOID="Metadata.REDCapRTargetSurveyStaticSeeHt_2024-10-11_1648">
<ClinicalData StudyOID="Project.REDCapRSurvey" MetaDataVersionOID="Metadata.REDCapRSurvey_2024-10-13_2140">
<SubjectData SubjectKey="1" redcap:RecordIdField="participant_id">
<FormData FormOID="Form.prescreening_survey" FormRepeatKey="1">
<ItemGroupData ItemGroupOID="prescreening_survey.participant_id" ItemGroupRepeatKey="1">
<ItemData ItemOID="participant_id" Value="1"/>
<ItemData ItemOID="prescreening_survey_timestamp" Value="2018-03-06 15:52:43"/>
<ItemData ItemOID="prescreening_survey_timestamp" Value="2024-10-13 20:39:30"/>
</ItemGroupData>
<ItemGroupData ItemGroupOID="prescreening_survey.dob" ItemGroupRepeatKey="1">
<ItemData ItemOID="dob" Value="2018-03-06"/>
Expand All @@ -386,18 +386,18 @@
</FormData>
<FormData FormOID="Form.participant_morale_questionnaire" FormRepeatKey="1">
<ItemGroupData ItemGroupOID="participant_morale_questionnaire.participant_morale_questionnaire_timestamp" ItemGroupRepeatKey="1">
<ItemData ItemOID="participant_morale_questionnaire_timestamp" Value="[not completed]"/>
<ItemData ItemOID="participant_morale_questionnaire_timestamp" Value="2024-10-13 21:31:03"/>
</ItemGroupData>
<ItemGroupData ItemGroupOID="participant_morale_questionnaire.participant_morale_questionnaire_complete" ItemGroupRepeatKey="1">
<ItemData ItemOID="participant_morale_questionnaire_complete" Value="0"/>
<ItemData ItemOID="participant_morale_questionnaire_complete" Value="2"/>
</ItemGroupData>
</FormData>
</SubjectData>
<SubjectData SubjectKey="2" redcap:RecordIdField="participant_id">
<FormData FormOID="Form.prescreening_survey" FormRepeatKey="1">
<ItemGroupData ItemGroupOID="prescreening_survey.participant_id" ItemGroupRepeatKey="1">
<ItemData ItemOID="participant_id" Value="2"/>
<ItemData ItemOID="prescreening_survey_timestamp" Value="2018-03-06 15:53:15"/>
<ItemData ItemOID="prescreening_survey_timestamp" Value="2024-10-13 20:40:51"/>
</ItemGroupData>
<ItemGroupData ItemGroupOID="prescreening_survey.dob" ItemGroupRepeatKey="1">
<ItemData ItemOID="dob" Value="2018-03-05"/>
Expand Down
2 changes: 1 addition & 1 deletion tests/testthat/test-survey-link-export-oneshot.R
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ test_that("Vanilla", {
verbose = FALSE
)

# "https://bbmc.ouhsc.edu/redcap/surveys/?s=8KuzSLMHf6"
# https://redcap-dev-2.ouhsc.edu/redcap/surveys/?s=EHXE4PNJW8E3MDAE
expect_match(result$survey_link, "^https://.+?/redcap/surveys/\\?s=\\w+$")
expect_true(result$success)
expect_equal(result$status_code, 200L)
Expand Down

0 comments on commit 5bf737d

Please sign in to comment.