...
Below are the attributes which need to be sent in the request body:
| |
---|
cpId | Collection protocol id |
http[s]:<host>:<port>/openspecimen/rest/ng/collection-protocols-events?cpId={cpId}
...
Below is the example of the get all collection protocols:
protocolsprotocol-events?cpId=1 |
Method | GET |
Response |
Code Block |
---|
language | js |
---|
theme | Eclipse |
---|
linenumbers | true |
---|
| [{
"id": 4,
"eventLabel": "Baseline",
"eventPoint": 10,
"collectionProtocol": "Planned Clinical Study",
"defaultSite": "Arkansas Hospital",
"clinicalDiagnosis": "Not Specified",
"clinicalStatus": "Not Specified",
"activityStatus": "Active",
"code": null,
"specimenRequirements": null
},{
"id": 5,
"eventLabel": "Surgery",
"eventPoint": 30,
"collectionProtocol": "Planned Clinical Study",
"defaultSite": "Arkansas Hospital",
"clinicalDiagnosis": "Not Specified",
"clinicalStatus": "Not Specified",
"activityStatus": "Active",
"code": null,
"specimenRequirements": null
},{
"id": 6,
"eventLabel": "Post Surgery",
"eventPoint": 45,
"collectionProtocol": "Planned Clinical Study",
"defaultSite": "Arkansas Hospital",
"clinicalDiagnosis": "Not Specified",
"clinicalStatus": "New Diagnosis",
"activityStatus": "Active",
"code": null,
"specimenRequirements": null
}] |
|
Error Cases :
| | |
---|
200 | All resources | Collection protocol Events got successfully |
401 | All requests | Authorization failed, user doesn’t have authority |
500 | All requests | Internal server error, encountered server error while performing operations |