From 682b010f6f01cf73d33d3e63d33e7aa8c78b6d6d Mon Sep 17 00:00:00 2001 From: mike cullerton Date: Fri, 9 Jul 2021 11:38:45 -0400 Subject: [PATCH] Added mocked study_details with an invalid REVIEW_TYPE This is used to test StudyService.get_studies_for_user StudyService.get_studies_for_user should now filter on REVIEW_TYPE --- .../study_details_bad_review_type.json | 67 +++++++++++++++++++ 1 file changed, 67 insertions(+) create mode 100644 tests/data/pb_responses/study_details_bad_review_type.json diff --git a/tests/data/pb_responses/study_details_bad_review_type.json b/tests/data/pb_responses/study_details_bad_review_type.json new file mode 100644 index 00000000..8b9ffec5 --- /dev/null +++ b/tests/data/pb_responses/study_details_bad_review_type.json @@ -0,0 +1,67 @@ +{ + "DSMB": 1, + "DSMB_FREQUENCY": 2, + "GCRC_NUMBER": "9", + "IBC_NUMBER": "7", + "IDE": "12345", + "IND_1": "1234", + "IND_2": "2345", + "IND_3": "3456", + "IRBREVIEWERADMIN": null, + "IS_ADULT_PARTICIPANT": null, + "IS_APPROVED_DEVICE": null, + "IS_AUX": null, + "IS_BIOMEDICAL": null, + "IS_CANCER_PATIENT": null, + "IS_CENTRAL_REG_DB": null, + "IS_CHART_REVIEW": null, + "IS_COMMITTEE_CONFLICT": null, + "IS_CONSENT_WAIVER": null, + "IS_DB": null, + "IS_ELDERLY_POP": null, + "IS_ENGAGED_RESEARCH": null, + "IS_FETUS_POP": null, + "IS_FINANCIAL_CONFLICT": null, + "IS_FOR_CANCER_CENTER": null, + "IS_FUNDING_SOURCE": null, + "IS_GCRC": null, + "IS_GENE_TRANSFER": null, + "IS_GRANT": null, + "IS_HGT": null, + "IS_IBC": null, + "IS_IDE": null, + "IS_IND": null, + "IS_MENTAL_IMPAIRMENT_POP": null, + "IS_MINOR": null, + "IS_MINOR_PARTICIPANT": null, + "IS_MULTI_SITE": null, + "IS_NOT_CONSENT_WAIVER": null, + "IS_NOT_PRC_WAIVER": null, + "IS_OTHER_VULNERABLE_POP": null, + "IS_OUTSIDE_CONTRACT": null, + "IS_PI_INITIATED": null, + "IS_PI_SCHOOL": null, + "IS_PRC": null, + "IS_PRC_DSMP": null, + "IS_PREGNANT_POP": null, + "IS_PRISONERS_POP": null, + "IS_QUALITATIVE": null, + "IS_RADIATION": null, + "IS_REVIEW_BY_CENTRAL_IRB": null, + "IS_SPONSOR": null, + "IS_SPONSOR_MONITORING": null, + "IS_SURROGATE_CONSENT": null, + "IS_TISSUE_BANKING": null, + "IS_UVA_DB": null, + "IS_UVA_IDE": null, + "IS_UVA_IND": null, + "IS_UVA_LOCATION": null, + "IS_UVA_PI_MULTI": null, + "MULTI_SITE_LOCATIONS": null, + "NON_UVA_LOCATION": null, + "OTHER_VULNERABLE_DESC": null, + "PRC_NUMBER": null, + "SPONSORS_PROTOCOL_REVISION_DATE": "2021-04-20", + "UPLOAD_COMPLETE": null, + "REVIEW_TYPE": 99 +} \ No newline at end of file