Get details of an opened query
get
/ec-query-svc/rest/v11.0/studies/{studyId}/{mode}/openQueryDetails
Retrieves data related to opened non-candidate queries, based on any combination of the following parameters:
Additional Filter options can be found in request payload.
- study ID
- study mode (Testing, Training, or Production)
- subject ID
- site ID
- visit ID
- event ID
- form ID
- question ID
- query state
Additional Filter options can be found in request payload.
Request
Path Parameters
-
currentRecord(required): string
Get the current record of each query. (1 - Yes, 2 -No)Example:
1 -
dataElementId(required): string
Get query data for a specific data element.Example:
6B1321B7038349038B81F2AB3F3DFED1 -
eventId(required): string
Get query data for a specific visit event.Example:
8F1E8B453D8F4B6EB278B324EFE38A7C -
eventInstanceNumber(required): string
Get query data for a specific event instance number.Example:
1 -
formId(required): string
Get query data for a specific form.Example:
BEF84349611E441D8A3CC3555DA0E80E -
formInstanceNumber(required): string
Get query data for a specific form instance number.Example:
1 -
isSideBar(required): string
Is the call coming from sidebarExample:
1 -
itemId(required): string
Get query data for a specific itemId.Example:
F931D4F68BD54F5A9455D91583FFE3F7 -
limit(required):
Specify the maximum number of queries to return.Example:
100 -
mode(required): string
Study mode. (Test, Training, Active)Example:
test -
offset(required):
Specify the offset in the query results from which to start returning dataExample:
20 -
oldest(required):
Order query data in ascending time order if oldest=true. Descending order otherwise.Example:
true -
propertyName(required): string
Property TypeExample:
visitStartDate -
propertyType(required): string
Property TypeExample:
visit -
ruleTypeId(required): string
Rule query typesExample:
3 -
siteId(required): string
Get query data for a specific site.Example:
8F1E8B453D8F4B6EB278B324EFE38A7C -
state(required): array
Get query data in a specific state.Example:
[Closed,Opened] -
studyId(required): string
Study ID.Example:
0D04308A0ECE4DD0AAA2C2C4C5FF8995 -
subjectId(required): string
Get query data for a specific subject.Example:
7837ED89824C40329635EC020C290530 -
visitId(required): string
Get query data for a specific visit.Example:
8F1E8B453D8F4B6EB278B324EFE38A7C
Query Parameters
-
repeatFormNumber: integer
Repeat Form NumberExample:
1
There's no request body for this operation.
Back to TopResponse
Supported Media Types
- application/json
200 Response
Successful operation.
Nested Schema : QueryDetailsDTOv9Resp
Type:
Show Source
object-
comments: array
comments
A list of comments associated with the query
-
discrepancyId: integer
Discrepancy Id
-
eventInstanceNumber: number
Sequence number (0, 1, 2, ...) of repeating eventExample:
0 -
formId: string
(uuid)
Form Unique GUID
-
formInstanceNumber: number
Sequence number (0, 1, 2, ...) of repeating formExample:
0 -
formName: string
The name of the form associated with the queryExample:
Form 1 -
id: string
(uuid)
Query Unique GUID
-
isQueryCreator: boolean
Is Query creator (true or false)Example:
true -
itemId: string
(uuid)
Item Unique GUID
-
itemName: string
The name of the item associated with the queryExample:
Item 1 -
objectVersionNumber: number
Sequence number (0, 1, 2, ...) of object Version NumberExample:
0 -
propertyName: string
The name of the property associated with the queryExample:
visitStartDatev -
propertyType: string
The type of property associated with the queryExample:
visit -
queryModAllowedByUser: boolean
Indicates whether the user is allowed to modify the queryExample:
true -
repeatFormNumber: integer
Repeat Form Number
-
ruleId: string
(uuid)
The ID of the rule associated with the query
-
studyRoles: array
studyRoles
-
studyVersion: string
The version of the study associated with the queryExample:
1.0 -
subjectId: string
(uuid)
Subject Unique GUID
-
subjectName: string
The name of the subject associated with the queryExample:
John Doe -
userCanAnswerQuery: boolean
Indicates whether the user can answer the queryExample:
true -
userCanCloseQuery: boolean
Indicates whether the user can close the queryExample:
true -
visitId: string
(uuid)
The ID of the visit associated with the queryExample:
123e4567-e89b-12d3-a456-426655440000 -
visitName: string
The name of the visit associated with the queryExample:
Visit 1
Nested Schema : comments
Type:
arrayA list of comments associated with the query
Show Source
-
Array of:
object CommentDetailsDTO
A list of comments associated with the query
Nested Schema : CommentDetailsDTO
Type:
objectA list of comments associated with the query
Show Source
-
queryComment: string
-
state: string
Allowed Values:
[ "Candidate", "Opened", "Answered", "Deleted", "Closed" ] -
userInfo: object
DisplayUserDto
User details including name, username, and email address.
-
value: string
-
versionStart: string
(date-time)
Nested Schema : DisplayUserDto
Type:
objectUser details including name, username, and email address.
Show Source
-
emailAddress: string
User's email address.Example:
alice.brown@email.com -
firstName: string
User's first name.Example:
Alice -
id: string
Unique identifier for the user.Example:
1BC29B36F5D64B1B95F4BDBBCEA481BE -
lastName: string
User's last name.Example:
Brown -
userName: string
User's login name.Example:
alicebrown
Nested Schema : QueryStudyRoleDTOv6
Type:
Show Source
object-
studyRoleId: string
(uuid)
Study role of the user performing the query operation
-
studyRoleName: string
Study role name of the user performing the query operationExample:
CRA
Examples
400 Response
Data is invalid.
Root Schema : Response DTO
Type:
objectResponse from Query APIs
Show Source
-
errorData: object
Error details DTO
Read Only:
trueError details from Query APIs -
result: object
result
Read Only:
trueResult Object -
status: string
Read Only:
trueAllowed Values:[ "success, failed" ]Status -
version: string
Read Only:
trueResponse version
Nested Schema : Error details DTO
Type:
objectRead Only:
trueError details from Query APIs
Show Source
-
details: object
details
Read Only:
trueError Details -
errorCode: string
Read Only:
trueError Code -
errorMessage: string
Read Only:
trueError Message
Nested Schema : result
Type:
objectRead Only:
trueResult Object
Nested Schema : details
Type:
objectRead Only:
trueError Details
404 Response
The query could not be found.
Root Schema : Response DTO
Type:
objectResponse from Query APIs
Show Source
-
errorData: object
Error details DTO
Read Only:
trueError details from Query APIs -
result: object
result
Read Only:
trueResult Object -
status: string
Read Only:
trueAllowed Values:[ "success, failed" ]Status -
version: string
Read Only:
trueResponse version
Nested Schema : Error details DTO
Type:
objectRead Only:
trueError details from Query APIs
Show Source
-
details: object
details
Read Only:
trueError Details -
errorCode: string
Read Only:
trueError Code -
errorMessage: string
Read Only:
trueError Message
Nested Schema : result
Type:
objectRead Only:
trueResult Object
Nested Schema : details
Type:
objectRead Only:
trueError Details