Retrieve Clinical Specimen Metadata for Specimen Identifiers

get

/ohfapi/cg/v3.3/{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
Path Parameters
Query Parameters
  • Collection Format: multi
    Minimum Number of Items: 1
    Maximum Number of Items: 2147483647
    Patient/Subject Clinical Specimen Row IDs List
  • Pagination query params: ?limit=2&offset=0
  • Pagination query params: ?limit=2&offset=0
Security
Back to Top

Response

Supported Media Types

200 Response

successful operation
Body ()
Root Schema : PageableCollectionClinicalSpecimenMetadata
Type: object
Model for paginated collections of data.
Show Source
Nested Schema : items
Type: array
A collection of paged items.
Show Source
Nested Schema : ClinicalSpecimenMetadata
Type: object
Model for a Clinical Specimen Metadata object in CDM.
Show Source
Nested Schema : Identifier
Type: object
Identifier assigned by a given system
Show Source
Nested Schema : Metadata
Type: object
Model for a Metadata Attribute object in CDM.
Show Source
Nested Schema : LinkedReference
Type: object
Show Source

400 Response

Invalid parameters supplied

404 Response

Clinical specimen or clinical specimen metadata not found
Back to Top

Examples

The following example submits a GET request.

API URL

http://localhost:7010/ohfapi/cg/v3.3/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": "/ohfapi/cg/v3.3/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": "/ohfapi/cg/v3.3/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": "/ohfapi/cg/v3.3/subjectapi/clinicalspecimens/44",
        "display": "HG00044(vendor2)"
      },
      "specimenVendorNumber": "vendor2",
      "accessionIdentifier": "HG00044"
    }
  ],
  "count": 3,
  "hasMore": true,
  "links": [
    {
      "rel": "self",
      "href": "http://localhost:7010/ohfapi/cg/v3.3/subjectapi/clinicalspecimens/metadata?id=43&id=44&limit=3&offset=9"
    },
    {
      "rel": "next",
      "href": "http://localhost:7010/ohfapi/cg/v3.3/subjectapi/clinicalspecimens/metadata?offset=12&limit=3&id=43&id=44"
    },
    {
      "rel": "prev",
      "href": "http://localhost:7010/ohfapi/cg/v3.3/subjectapi/clinicalspecimens/metadata?offset=6&limit=3&id=43&id=44"
    }
  ]
}
Back to Top