Retrieve Clinical Specimen Metadata for Specimen Identifiers

get

/HSDataService-web/api/3.2.0/{apiContext}/clinicalspecimens/metadata

This endpoint supports the retrieval of Patient/Subject Clinical Specimen Metadata for multiple Clinical Specimen Row IDs. It returns Clinical Specimen Metadata information like Specimen Number, Specimen Vendor Number and other metadata associated information.

Request

Supported Media Types
  • application/json
  • application/xml
Path Parameters
apiContext
Type: string
Required: true
Pattern: subjectapi|patientapi
Patient/Subject API context
Query Parameters
id
Type: array
Required: true
Collection Format: multi
Minimum Number of Items: 1
Maximum Number of Items: 2147483647
Patient/Subject Clinical Specimen Row IDs List
limit
Type: integer (int32)
Pagination query params: ?limit=2&offset=0
offset
Type: integer (int32)
Pagination query params: ?limit=2&offset=0

Response

Supported Media Types
  • application/json
  • application/xml
200 Response
successful operation
Body
Model for paginated collections of data.
Root Schema : PageableCollectionClinicalSpecimenMetadata
Type: object
Model for paginated collections of data.
Nested Schema : items
Type: array
A collection of paged items.
Nested Schema : ClinicalSpecimenMetadata
Type: object
Model for a Clinical Specimen Metadata object in CDM.
Nested Schema : Identifier
Type: object
Identifier assigned by a given system
Nested Schema : Metadata
Type: object
Model for a Metadata Attribute object in CDM.
Nested Schema : LinkedReference
Type: object
400 Response
Invalid parameters supplied
404 Response
Clinical specimen or clinical specimen metadata not found

Examples

The following example submits a GET request.

API URL

http://localhost:7001/HSDataService-web/api/3.2.0/subjectapi/clinicalspecimens/metadata?id=43&id=44&limit=3&offset=9

Example of Response Body

The following example shows the contents of the response body in JSON format:

{
  "resourceType": "SpecimenMetadata",
  "items": [
    {
      "identifier": {
        "system": "CDM",
        "value": "530743"
      },
      "metadata": {
        "attrName": "ATTR_8",
        "attrDesc": "ATTRIBUTE_DESC_8",
        "strValue": "ATTR_8_VAL_43",
        "strValueUpper": "ATTR_8_VAL_43"
      },
      "specimenReference": {
        "reference": "/HSDataService-web/api/3.2.0/subjectapi/clinicalspecimens/43",
        "display": "HG00043(vendor2)"
      },
      "specimenVendorNumber": "vendor2",
      "accessionIdentifier": "HG00043"
    },
    {
      "identifier": {
        "system": "CDM",
        "value": "53274"
      },
      "metadata": {
        "attrName": "ATTR_1",
        "attrDesc": "ATTRIBUTE_DESC_1",
        "strValue": "ATTR_1_VAL_44",
        "strValueUpper": "ATTR_1_VAL_44"
      },
      "specimenReference": {
        "reference": "/HSDataService-web/api/3.2.0/subjectapi/clinicalspecimens/44",
        "display": "HG00044(vendor2)"
      },
      "specimenVendorNumber": "vendor2",
      "accessionIdentifier": "HG00044"
    },
    {
      "identifier": {
        "system": "CDM",
        "value": "666491"
      },
      "metadata": {
        "attrName": "ATTR_10",
        "attrDesc": "ATTRIBUTE_DESC_10",
        "strValue": "ATTR_10_VAL_44",
        "strValueUpper": "ATTR_10_VAL_44"
      },
      "specimenReference": {
        "reference": "/HSDataService-web/api/3.2.0/subjectapi/clinicalspecimens/44",
        "display": "HG00044(vendor2)"
      },
      "specimenVendorNumber": "vendor2",
      "accessionIdentifier": "HG00044"
    }
  ],
  "count": 3,
  "hasMore": true,
  "links": [
    {
      "rel": "self",
      "href": "http://localhost:7001/HSDataService-web/api/3.2.0/subjectapi/clinicalspecimens/metadata?id=43&id=44&limit=3&offset=9"
    },
    {
      "rel": "next",
      "href": "http://localhost:7001/HSDataService-web/api/3.2.0/subjectapi/clinicalspecimens/metadata?offset=12&limit=3&id=43&id=44"
    },
    {
      "rel": "prev",
      "href": "http://localhost:7001/HSDataService-web/api/3.2.0/subjectapi/clinicalspecimens/metadata?offset=6&limit=3&id=43&id=44"
    }
  ]
}