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.
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
Path parameters are required.
/api/v1/edc/studies/{studyKey}/sites
- studyKey:
StudyKey to retrieve list of sites that belong to particular study.
Request parameters
Request parameters are optional. Default values are used unless specified.
- 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
ordesc
. To sort by multiple properties add additional sort parameters. Default value issiteId,asc
.- filter:
Optional filter search criteria. Must follow correct syntax. Refer to Mednet EDC REST API Reference for details.
Response body
Below is an example response payload.
{
"metadata" : {
"status" : "OK",
"method" : "GET",
"path" : "/api/v1/edc/studies/PHARMADEMO/sites",
"timestamp" : "2025-06-05 21:12:09",
"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" : "2025-06-05 21:12:09",
"dateModified" : "2025-06-05 21:12:10"
} ]
}
Response fields
The table below describes each field in the response.
Path |
Type |
Description |
---|---|---|
|
String |
HTTP status |
|
String |
HTTP method |
|
String |
Requested URI path |
|
String |
Timestamp when response was generated |
|
Object |
Detail error message from request if error occur |
|
Number |
Current index page |
|
Number |
Size per page |
|
Number |
Total pages return from search |
|
Number |
Total elements return from search |
|
String |
Sort property |
|
String |
Sort direction |
|
String |
Unique study key for a given study |
|
Number |
Unique site Id |
|
String |
Site name |
|
String |
Status of site enrollment |
|
String |
Date when this record was created |
|
String |
Last date modified of this record |