Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

 

catissuecoreDELETE openspecimen/rest/ng/specimens/{specimen_id}

Use this resource to delete an existing speicmen specimen in the caTissue openspecimen application. Use HTTP DELETE method to call this API by passing the below details:

...

Parameter
Details
specimen_idIdentifier of the specimen to whom you want to delete from caTissuePlus
includeDependents [optional]This is optional parameter, set the value of this variable to true, if you also want to delete all the dependents of this specimen. If not set the default value is false.

http[s]:<host>:<port>/catissuecore/rest/ng/specimens/{id}

Use this URL to delete specimens from caTissuePlus application.

openspecimen

Result:

The response of this request will contains the identifier of the deleted specimen and the success message.

Below is the example of the delete specimen:

URLhttp[s]:<host>:<port>/catissuecoreopenspecimen/rest/ng/specimens/1/includeDependents=true16
MethodDELETE
content-typeapplication/json

Response

{

  "id": 16,

  "cpId": 1,

  "cprId": 1,

  "eventId": null,

  "visitId": 1,

  "visitName": "first visit",

  "cpShortTitle": "blood",

  "reqId": null,

  "sortOrder": null,

  "label": "b9_1449500581277",

  "barcode": null,

  "type": "Whole Blood",

  "specimenClass": "Fluid",

  "lineage": "Aliquot",

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

  "laterality": "Not Applicable",

  "status": "Collected",

  "reqLabel": null,

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

  "initialQty": 20,

  "availableQty": 20,

  "available": true,

  "concentration": 10,

  "parentId": 1,

  "parentLabel": "blood1",

  "storageLocation": {

    "id": -1,

    "name": null,

    "positionX": null,

    "positionY": null

  },

  "storageType": null,

  "collectionContainer": null,

  "activityStatus": "Disabled",

  "createdOn": 1449500400000,

  "code": null,

  "distributed": null,

  "collectionEvent": null,

  "receivedEvent": null,

  "labelFmt": null,

  "biohazards": [],

  "comments": null,

  "closeAfterChildrenCreation": null,

  "children": [],

  "pooledSpecimenId": null,

  "pooledSpecimenLabel": null,

  "specimensPool": null,

  "closeParent": null,

  "poolSpecimen": null,

  "extensionDetail": null

}

 

 Error Cases :

code
Applies to
Status Message
200All resourcesSpecimen has been deleted successfully
400All requestsIf any active children found for this Specimen
401All requestsAuthorization failed, User doesn’t have privileges to delete this specimen
404All requestsSpecimen not found, Specimen with given identifier is not present in the system
500All requestsInternal server error, Encountered server error while performing operations