mirror of
https://github.com/sartography/cr-connect-bpmn.git
synced 2025-02-20 12:18:32 +00:00
Updated Script Tasks (markdown)
parent
19b208a4a3
commit
58af05fca8
@ -573,4 +573,43 @@ Retrieve information about submissions returned to the PI during Pre Review.
|
||||
|
||||
Example:
|
||||
|
||||
```pre_reviews = get_pre_reviews()```
|
||||
```pre_reviews = get_pre_reviews()```
|
||||
|
||||
## Get User Studies
|
||||
|
||||
Returns the list of studies for a user in Protocol Builder
|
||||
|
||||
Example:
|
||||
|
||||
```user_studies = get_user_studies(user_id)```
|
||||
|
||||
The script returns a data object like this:
|
||||
|
||||
```
|
||||
[
|
||||
{
|
||||
"DATECREATED": "2002-02-19T14:26:49.127756",
|
||||
"DATELASTMODIFIED": "2012-02-19T14:26:49.127756",
|
||||
"STUDYID": 11111,
|
||||
"TITLE": "An old study from the good old days that should not show up.",
|
||||
"REVIEW_TYPE": 2
|
||||
},
|
||||
{
|
||||
"DATECREATED": "2020-02-19T14:26:49.127756",
|
||||
"DATELASTMODIFIED": "2020-02-19T14:26:49.127756",
|
||||
"STUDYID": 54321,
|
||||
"TITLE": "Another study about the effect of a naked mannequin on software productivity",
|
||||
"REVIEW_TYPE": 2
|
||||
}
|
||||
]
|
||||
```
|
||||
|
||||
### Get the Study IDs
|
||||
|
||||
You can easily pull all the Study IDs--or any other attribute, with a list comprehension
|
||||
|
||||
Example:
|
||||
|
||||
```user_studies = get_user_studies(user_id)```
|
||||
|
||||
```user_study_ids = [x.STUDYID for x in user_studies]```
|
||||
|
Loading…
x
Reference in New Issue
Block a user