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 page. View the current version.

Compare with Current View Page History

« Previous Version 5 Next »

This API is available for creating Specimen.

List of mandatory fields:

  1. Label
  2. TissueSite
  3. TissueSide
  4. PathologicalStatus
  5. Lineage
  6. InitialQuantity
  7. collectionStatus
  8. SpecimenClass
  9. SpecimenType
  10. ActivityStatus
  11. Barcode
  12. Comment
  13. CreatedOn
  14. scgId
URLcatissuecore/rest/ng/specimens
Request typeapplication/json
MethodPOST
json

{ "activityStatus" : "Active",

  "barcode" : "245095132",

  "biohazardDetails" : [  ],

  "collectionStatus" : "Collected",

  "comment" : "creating an adhoc specimen.",

  "createdOn" : "May 1, 2014 11:21:45 AM",

  "externalIdentifierDetails" : [  ],

  "initialQuantity" : 2.0,

  "label" : "sample_123",

  "lineage" : "New",

  "pathologicalStatus" : "Metastatic",

  "scgId" : 1,

  "specimenClass" : "Fluid",

  "specimenType" : "Feces",

  "tissueSide" : "Left",

  "tissueSite" : "Nasal cavity"

}

Response

 

{ "activityStatus" : "Active",

  "barcode" : "",

  "biohazardDetails" : [  ],

  "collectionStatus" : "Collected",

  "comment" : "creating an adhoc specimen.",

  "createdOn" : "May 1, 2014 11:21:45 AM",

  "externalIdentifierDetails" : [  ],

  "id" : 2,

  "initialQuantity" : 2.0,

  "label" : "",

  "lineage" : "New",

  "pathologicalStatus" : "Metastatic",

  "scgId" : 1,

  "specimenClass" : "Fluid",

  "specimenType" : "Feces",

  "tissueSide" : "Left",

  "tissueSite" : "Nasal cavity"

}

 

Error Cases :

code
Applies to
Status Message
200All resourcesSpecimen has been created successfully
400All requestsInvalid parameters, e.g  duplicate label, duplicate barcode, invalid class Name etc
401All requestsAuthorization failed, User doesn’t have Authority to create specimen for the given collection protocol
500All requestsInternal server error, Encountered server error while performing operations
  • No labels