Queries Endpoint
Given a studyKey fetch the set of queries. A query is a conduct resource that
encapsulates dialogue pertaining to specific eCRF responses or other matters
relevant to the conduct of the study. Queries may be user‑initiated, or
automatically applied according to study protocol criteria.
Accessing the index
A GET request is used to access the index.
Request structure
GET /api/v1/edc/studies/batchId/queries?page=0&size=25&sort=annotationId%2CASC&filter=variable%3D%3Daeterm HTTP/1.1
Content-Type: application/json
Host: localhost:8080
Path parameters
studyKeyStudyKey to retrieve list of query.
Request parameters
pageWhich index page to be returned. Default value is
0.sizeItems per page to be returned. Default value is
25. Maximum items allowed per page is500.sortName 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
ascordesc. To sort by multiple properties add additionalsortparameters. Default value isannotationId,asc.filterOptional 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/batchId/queries",
"timestamp" : "2025-06-05 21:12:09",
"error" : { }
},
"pagination" : {
"currentPage" : 0,
"size" : 25,
"totalPages" : 1,
"totalElements" : 1,
"sort" : [ {
"property" : "annotationId",
"direction" : "ASC"
} ]
},
"data" : [ {
"studyKey" : "PHARMADEMO",
"subjectId" : 1,
"subjectOid" : "OID-1",
"annotationType" : "subject",
"annotationId" : 1,
"type" : null,
"description" : "Monitor Query",
"recordId" : 123,
"variable" : "aeterm",
"subjectKey" : "123-005",
"dateCreated" : "2025-06-05 21:12:09",
"dateModified" : "2025-06-05 21:12:10",
"queryComments" : [ {
"sequence" : 1,
"annotationStatus" : "Monitor Query Open",
"user" : "john",
"comment" : "Added comment to study",
"closed" : false,
"date" : "2025-06-05 21:12:09"
} ]
} ]
}
Response fields
metadata.statusHttp status
metadata.methodHttp method
metadata.pathRequested URI path
metadata.timestampTimestamp when response was generated
metadata.errorDetail error message from request if error occur
pagination.currentPageCurrent index page
pagination.sizeSize per page
pagination.totalPagesTotal pages return from search
pagination.totalElementsTotal elements return from search
pagination.sort[].propertySort property
pagination.sort[].directionSort direction
data[].studyKeyUnique study key for a given study
data[].subjectIdMednet Subject ID
data[].subjectOidClient-assigned subject OID
data[].annotationTypeUser defined identifier for Query Type
data[].annotationIdUnique system identifier for Query Instance
data[].typeSystem text identifier for query type/location. Valid responses are
subject|record|questiondata[].descriptionQuery description
data[].subjectKeyProtocol-assigned subject identifier
data[].recordIdUnique system identifier for Record
data[].variableUser defined field identifier
data[].queryComments[].sequenceQuery sequence
data[].queryComments[].userUser performing Query action
data[].queryComments[].annotationStatusUser defined Query status
data[].queryComments[].commentUser comments applied at time of Query action
data[].queryComments[].closedQuery moved to closed status
data[].queryComments[].dateDate of Query Comment
data[].dateCreatedDate when the query was created
data[].dateModifiedDate when the query was modified