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: true
Study 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: object
Model for paginated collections of data.
Nested Schema : items
Type: array
A collection of paged items.
Nested Schema : LinkedReference
Type: object
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"
    }
  ]
}