Retrieve Study Subjects for a Study Identifier
get
/HSDataService-web/api/3.2.0/studies/{id}/subjects
This endpoint supports the retrieval of Study Subjects for a Study Row ID passed.
Request
Supported Media Types
- application/json
- application/xml
Path Parameters
- id
-
Type:
integer(int64)Required:trueStudy Row ID
Query Parameters
- limit
-
Type:
integer(int32)Pagination query params: ?limit=2&offset=0- offset
Type:integer(int32)Pagination query params: ?limit=2&offset=0
Response
Supported Media Types
- application/json
- application/xml
200 Response
successful operation
Body
Model for paginated collections of data.
Root Schema : PageableCollectionLinkedReference
Type:
objectModel for paginated collections of data.
- count
-
Type:
integer(int64)Number of objects in the 'items' collection. - hasMore
-
Type:
booleanDefault Value:falseA boolean indicating if more pages are available. - items
-
Type:
arrayitemsA collection of paged items. - links
-
Type:
arraylinksA collection of links containing hrefs to the current, next, and previous pages as applicable. - resourceType
-
Type:
stringIdentify the resource type
Nested Schema : items
Nested Schema : links
Nested Schema : LinkedReference
Type:
object- display
-
Type:
string - reference
-
Type:
string
400 Response
Invalid parameters supplied
404 Response
Subjects were not found
Examples
The following example submits a GET request.
API URL
http://localhost:7001/HSDataService-web/api/3.2.0/studies/2/subjects?limit=10&offset=0
Example of Response Body
The following example shows the response returned in JSON format.
{
"resourceType": "StudySubject",
"items": [
{
"reference": "/HSDataService-web/api/3.2.0/subjectapi/subjects/4"
},
{
"reference": "/HSDataService-web/api/3.2.0/subjectapi/subjects/6"
},
{
"reference": "/HSDataService-web/api/3.2.0/subjectapi/subjects/9"
},
{
"reference": "/HSDataService-web/api/3.2.0/subjectapi/subjects/13"
},
{
"reference": "/HSDataService-web/api/3.2.0/subjectapi/subjects/19"
},
{
"reference": "/HSDataService-web/api/3.2.0/subjectapi/subjects/21"
},
{
"reference": "/HSDataService-web/api/3.2.0/subjectapi/subjects/24"
},
{
"reference": "/HSDataService-web/api/3.2.0/subjectapi/subjects/28"
},
{
"reference": "/HSDataService-web/api/3.2.0/subjectapi/subjects/34"
},
{
"reference": "/HSDataService-web/api/3.2.0/subjectapi/subjects/36"
}
],
"count": 10,
"hasMore": true,
"links": [
{
"rel": "self",
"href": "http://localhost:7001/HSDataService-web/api/3.2.0/studies/2/subjects?limit=10&offset=0"
},
{
"rel": "next",
"href": "http://localhost:7001/HSDataService-web/api/3.2.0/studies/2/subjects?offset=10&limit=10"
}
]
}