Leave a comment at the end of this page or email contact@krishagni.com
Retrieve list of Orders
This API is used to retrieve a list of summary of all orders created in the system that satisfy the search criteria.
URL |
|
Method |
|
Response | [
{
"id": 1,
"name": "Test Order",
"distributionProtocol": {
"id": 1,
"shortTitle": "Test DP",
"title": "Test Distribution Protocol",
/*
* Other details of DP
*/
},
"instituteName": "Institute of Medical Sciences",
"siteName": "Pathology Lab",
"requester": {
"id: 7,
"firstName": "John",
"lastName": "Doe",
/*
* Other user details
*/
},
"creationDate": 1526274984066,
"executionDate": 1526274984066,
"status": "EXECUTED",
"specimenCnt": 100 /* Count is included only when explicitly requested */
},
/* summary of other orders that satisfy the search criteria */
] |
The search criteria can be specified in form of query params. The following are the valid query params that can be specified when invoking the API. When one or more criteria is specified, they are all ANDed
Parameter | Description |
|---|---|
query | List of orders whose name contains the |
dpShortTitle | List of orders whose DP short title contains the |
requester | List of orders requested by users whose first name or last name contains the |
receivingSite | List of orders that have been distributed to sites whose name contains |
receivingInstitute | List of orders that have been distributed to institutes whose name contains |
includeStats | When set to true, the API response includes useful metrics related for each order like the count of specimens in the order etc. |
startAt |
|
maxResults |
When |