Intervals Endpoint
The intervals resource lists the scheduled intervals (or visits) for a
study. Each interval defines a set of forms that must be completed for a
subject. A visit is a single instance of an interval for a given subject.
Accessing the index
Use GET to retrieve intervals for a study. The request supports paging,
sorting and filtering.
Example request:
GET /api/v1/edc/studies/PHARMADEMO/intervals?page=0&size=25&sort=intervalId%2CASC&filter=intervalId%3D%3D161 HTTP/1.1
Content-Type: application/json
Host: localhost:8080
Path parameters
studyKeyStudy key used to retrieve intervals.
Request parameters
pageIndex page to return. Defaults to
0.sizeItems per page. Defaults to
25. Maximum500.sortProperty used to sort the result set. Add
ascordescafter the property name to specify direction. Multiplesortparameters are allowed. DefaultintervalId,asc.filterOptional filter criteria. See Mednet EDC REST API Reference for syntax.
Response body
Example payload:
{
"metadata" : {
"status" : "OK",
"method" : "GET",
"path" : "/api/v1/edc/studies/PHARMADEMO/intervals",
"timestamp" : "2025-06-05 21:12:08",
"error" : { }
},
"pagination" : {
"currentPage" : 0,
"size" : 25,
"totalPages" : 1,
"totalElements" : 1,
"sort" : [ {
"property" : "intervalId",
"direction" : "ASC"
} ]
},
"data" : [ {
"studyKey" : "PHARMADEMO",
"intervalId" : 1,
"intervalName" : "Day 1",
"intervalDescription" : "Day 1",
"intervalSequence" : 110,
"intervalGroupId" : 10,
"intervalGroupName" : "ePRO",
"disabled" : true,
"dateCreated" : "2025-06-05 21:12:08",
"dateModified" : "2025-06-05 21:12:09",
"timeline" : "Start Date End Date",
"definedUsingInterval" : "Baseline",
"windowCalculationForm" : "Procedure",
"windowCalculationDate" : "PROCDT",
"actualDateForm" : "Follow Up",
"actualDate" : "FUDT",
"dueDateWillBeIn" : 30,
"negativeSlack" : 7,
"positiveSlack" : 7,
"eproGracePeriod" : 2,
"forms" : [ {
"formId" : 123,
"formKey" : "MY-FORM-KEY",
"formName" : "myFormName"
} ]
} ]
}
Response fields
metadata.statusHTTP status.
metadata.methodHTTP method.
metadata.pathRequest URI path.
metadata.timestampTimestamp when the response was generated.
metadata.errorError details when a request fails.
pagination.currentPageCurrent index page.
pagination.sizePage size.
pagination.totalPagesTotal pages returned.
pagination.totalElementsTotal elements returned.
pagination.sort[].propertySort property.
pagination.sort[].directionSort direction.
data[].studyKeyStudy key.
data[].intervalIdUnique interval identifier.
data[].intervalNameInterval or visit name.
data[].intervalDescriptionInterval description.
data[].intervalSequenceSequence number.
data[].intervalGroupIdInterval group ID.
data[].intervalGroupNameInterval group name.
data[].timelineType of interval visit window.
data[].definedUsingIntervalBaseline interval where the calculate-from date is collected.
data[].windowCalculationFormBaseline form where the calculate-from date is collected.
data[].windowCalculationDateBaseline field used to calculate dates.
data[].actualDateFormActual date form for the interval.
data[].actualDateActual date field for the interval.
data[].dueDateWillBeInNumber of days the actual date is due from the calculate-from date.
data[].negativeSlackAllowed negative days from the due date.
data[].positiveSlackAllowed positive days from the due date.
data[].eproGracePeriodAllowed positive days for ePRO from the due date.
data[].forms[].formIdForm ID.
data[].forms[].formKeyForm key.
data[].forms[].formNameForm name.
data[].disabledInterval soft-delete status.
data[].dateCreatedDate when the interval was created.
data[].dateModifiedDate when the interval was last modified.