Closed cullerton closed 2 years ago
Working as designed, returning:
"irb_info": {
"DETAIL": "Study not downloaded to IRB Online.",
"STATUS": "Error"
}
or
"irb_info": {
"AGENDA_DATE": null,
"DATE_MODIFIED": "2022-03-31T00:00:00-04:00",
"DETAIL": "Study downloaded to IRB Online.",
"IRBEVENT": "",
"IRBEVENT_ID": "",
"IRB_ADMINISTRATIVE_REVIEWER": "Joanna Faulconer (jld6p)",
"IRB_OF_RECORD": "",
"IRB_REVIEW_TYPE": "Non-UVA IRB Full Board",
"IRB_STATUS": "PreReview Complete New Protocol",
"IRB_STATUS_ID": "31",
"STATUS": "Downloaded",
"STUDYIRBREVIEWERADMIN": "",
"UVA_IRB_HSR_IS_IRB_OF_RECORD_FOR_ALL_SITES": null,
"UVA_STUDY_TRACKING": "17"
}
Sometimes, the IRB Info API endpoint returns a dictionary, and other times a list with one dictionary in it. Fix the get_info script to always return a dictionary.