Sites endpoint

Given a StudyKey, fetch the set of sites. A site is a conduct resource that represents a single hospital, clinic, or other type of geographic entity which will contain subjects that participate in the study.

Sites are related to subjects in that any site has one-to-many subjects.

Accessing the index

A GET request is used to access the index

Request structure

GET /api/v1/edc/studies/PHARMADEMO/sites?page=0&size=25&sort=siteId%2CASC&filter=siteId%3D%3D48 HTTP/1.1
Content-Type: application/json
Host: localhost:8080

Path parameters are required.

Table 1. /api/v1/edc/studies/{studyKey}/sites
Parameter Description

studyKey

StudyKey to retrieve list of sites that belong to particular study.

Request parameters

Request parameters are optional. Default values are used unless specified.

Parameter Description

page

Which index page to be returned. Default value is 0.

size

Items per page to be returned. Default value is 25. Maximum items allowed per page is 500

sort

Name of the property by which to sort the result set. To sort in a particular direction add a comma to the property name and either asc or desc. To sort by multiple properties add additional sort parameters. Default value is siteId,asc.

filter

Optional filter search criteria. Must follow correct syntax. Refer to filter section for details.

Response body

Below is an example response payload.

{
  "metadata" : {
    "status" : "OK",
    "method" : "GET",
    "path" : "/api/v1/edc/studies/PHARMADEMO/sites",
    "timestamp" : "2023-12-27 22:15:16",
    "error" : { }
  },
  "pagination" : {
    "currentPage" : 0,
    "size" : 25,
    "totalPages" : 1,
    "totalElements" : 1,
    "sort" : [ {
      "property" : "siteId",
      "direction" : "ASC"
    } ]
  },
  "data" : [ {
    "studyKey" : "PHARMADEMO",
    "siteId" : 1,
    "siteName" : "Mock Site 1",
    "siteEnrollmentStatus" : "Enrollment Open",
    "dateCreated" : "2023-12-27 22:15:16",
    "dateModified" : "2023-12-27 22:15:17"
  } ]
}

Response fields

Path Type Description

metadata.status

String

Http status

metadata.method

String

Http method

metadata.path

String

Requested URI path

metadata.timestamp

String

Timestamp when response was generated

metadata.error

Object

Detail error message from request if error occur

pagination.currentPage

Number

Current index page

pagination.size

Number

Size per page

pagination.totalPages

Number

Total pages return from search

pagination.totalElements

Number

Total elements return from search

pagination.sort[].property

String

Sort property

pagination.sort[].direction

String

Sort direction

data[].studyKey

String

Unique study key for a given study

data[].siteId

Number

Unique site Id

data[].siteName

String

Site name

data[].siteEnrollmentStatus

String

Status of site enrollment

data[].dateCreated

String

Date when this record was created

data[].dateModified

String

Last date modified of this record