Got feedback or spotted a mistake?

Leave a comment at the end of this page or email contact@krishagni.com

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this content. View the current version.

Compare with Current View Version History

Version 1 Next »

openspecimen/rest/ng/specimen-collection-groups

or

openspecimen/rest/ng/specimen-collection-groups?start={start}&max={maxResults}&searchString={searchString}&countReq={true/false}

Use this resource to get specimen collection groups. This API returns all the matching specimen collection groups based on the searchString,  if searchString not specified then it returns all the specimen collection groups present in the openSpecimen application.

Use HTTP GET method to call this API by passing the below details in JSON format.

 

Below are the attributes which need to be sent in the request body:

Parameter
Details
searchString [optional]The value with which you want to search the specimen collection groups. The given value will be matched with Name and Barcode.
start [optional]start index of the results
maxResults [optional]Maximum number of records to fetch. By default it will be 100
countReq [optional]Set this parameter to true, if want to get the total count of matching results.


http[s]:<host>:<port>/openspecimen/rest/ng/specimen-collection-groups

 

Use this URL to get specimen collection groups in openSpecimen application.

Result:

The response of this request will contains the details of the specimen collection groups.

Below is the example of the get specimen collection groups:

URLhttp://<host>:<port>/openspecimen/rest/ng/specimen-collection-groups?searchString=Breast Cancer CP_61_154
MethodGET
Requestapplication/json

Response

[{
   "id":1,
   "cprId":5,
   "cpeId":2,
   "name":"Breast Cancer CP_61_154",
   "clinicalDiagnosis":"Not Specified",
   "clinicalStatus":"Not Specified",
   "activityStatus":"Active",
   "collectionSiteName":"ATCC",
   "collectionStatus":"Complete",
   "barcode":"barcode1",
   "surgicalPathologyNumber":"path123",
   "collectorName":"tester@site.com",
   "collectionTimestamp":"2014-04-21",
   "collectionComments":"comments",
   "collectionProcedure":"Lavage",
   "collectionContainer":"CPT",
   "receiverName":"tester@site.com",
   "receivedTimestamp":"2014-04-21",
   "receivedQuality":"Clotted"
}]

 

 

Error Cases :

code
Applies to
Status Message
200All resourcesSpecimen collection groups got successfully
401All requestsAuthorization failed, user doesn’t have authority
500All requestsInternal server error, encountered server error while performing operations
  • No labels