Retrieve Genomics Specimen Identifiers for Clinical Specimen Identifiers

get

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

This endpoint supports the retrieval of Patient/Subject Genomic Specimen Row IDs List for multiple Clinical Specimens Row IDs, if Clinical Specimen is valid and has corresponding omics data.

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 : PageableCollectionGenomicSpecimen
Type: object
Model for paginated collections of data.
Nested Schema : items
Type: array
A collection of paged items.
Nested Schema : GenomicSpecimen
Type: object
Nested Schema : LinkedReference
Type: object
Nested Schema : Identifier
Type: object
Identifier assigned by a given system
400 Response
Invalid parameters supplied
404 Response
Genomic specimen or genomic specimen metadata not found

Examples

The following example submits a GET request.

API URL — Patient Context

http://localhost:7001/HSDataService-web/api/3.2.0/patientapi/clinicalspecimens/genomicspecimens?id=96&id=97&limit=20&offset=0

Example of Response Body

The following example shows the response returned in JSON format.

{
  "resourceType": "GenomicSpecimen",
  "items": [
    {
      "identifier": {
        "system": "ODB",
        "value": "71"
      },
      "patient": {
        "reference": "/HSDataService-web/api/3.2.0/patientapi/genomicspecimens/97"
      }
    },
    {
      "identifier": {
        "system": "ODB",
        "value": "63"
      },
      "patient": {
        "reference": "/HSDataService-web/api/3.2.0/patientapi/genomicspecimens/96"
      }
    }
  ],
  "count": 2,
  "hasMore": false,
  "links": [
    {
      "rel": "self",
      "href": "http://loalhost:7001/HSDataService-web/api/3.2.0/patientapi/clinicalspecimens/genomicspecimens?id=96&id=97&limit=20&offset=0"
    }
  ]
}

API URL — Subject Context

http://localhost:7001/HSDataService-web/api/3.2.0/subjectapi/clinicalspecimens/genomicspecimens?id=96&id=97&limit=20&offset=0

Example of Response Body

The following example shows the response returned in JSON format.

{
  "resourceType": "GenomicSpecimen",
  "items": [
    {
      "identifier": {
        "system": "ODB",
        "value": "63"
      },
      "subject": {
        "reference": "/HSDataService-web/api/3.2.0/subjectapi/genomicspecimens/96"
      }
    },
    {
      "identifier": {
        "system": "ODB",
        "value": "71"
      },
      "subject": {
        "reference": "/HSDataService-web/api/3.2.0/subjectapi/genomicspecimens/97"
      }
    }
  ],
  "count": 2,
  "hasMore": false,
  "links": [
    {
      "rel": "self",
      "href": "http://localhost:7001/HSDataService-web/api/3.2.0/subjectapi/clinicalspecimens/genomicspecimens?id=96&id=97&limit=20&offset=0"
    }
  ]
}