Got feedback or spotted a mistake?

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

Update specimen list status

PUT /openspecimen/rest/ng/specimens/status

This API updates the status of list of specimens.

Parameter Details:

This API accepts JSON array with specimen status detail object as parameters.

Below are parameters for single specimen status detail.

ParameterDetails
labelSpecimen label of which the status needs to update
statusThe collection status of specimen.
reason [optional]The reason for updating status.

Result:

This API returns list of specimen details with updated statuses.

API Example:

URLopenspecimen/rest/ng/specimens/status
MethodPUT
Requestapplication/json
JSON

[

{

  "label": "blood1",

  "status": "Collected",

  "Reason": "The specimen sample is collected"

}

]

Response[

{

  "id": 1,

  "cpId": 1,

  "cprId": 1,

  "eventId": null,

  "visitId": 1,

  "visitName": "first visit",

  "cpShortTitle": "blood",

  "reqId": 1,

  "sortOrder": null,

  "label": "blood1",

  "barcode": null,

  "type": "Whole Blood",

  "specimenClass": "Fluid",

  "lineage": "New",

  "anatomicSite": "Autonomic nervous system, NOS",

  "laterality": "Not Applicable",

  "status": "Collected",

  "reqLabel": "whole blood",

  "pathology": "Malignant, Pre-Invasive",

  "initialQty": 250,

  "availableQty": 220,

  "available": true,

  "concentration": 10,

  "parentId": null,

  "parentLabel": null,

  "storageLocation": {

    "id": 1,

    "name": "Fluid Container",

    "positionX": "1",

    "positionY": "A"

  },

  "storageType": "Auto",

  "collectionContainer": null,

  "activityStatus": "Active",

  "createdOn": 1442993220000,

  "code": null,

  "distributed": true,

  "collectionEvent": null,

  "receivedEvent": null,

  "labelFmt": null,

  "biohazards": [],

  "comments": null,

  "closeAfterChildrenCreation": null,

  "children": [],

  "pooledSpecimenId": null,

  "pooledSpecimenLabel": null,

  "specimensPool": null,

  "closeParent": null,

  "poolSpecimen": false,

  "extensionDetail": null

}

]

Got feedback or spotted a mistake?

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