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:
stringRequired:truePattern:subjectapi|patientapiPatient/Subject API context
Query Parameters
- id
-
Type:
arrayRequired:trueCollection Format:multiMinimum Number of Items:1Maximum Number of Items:2147483647Patient/Subject Clinical Specimen Row IDs List-
Type:
integer(int64)
- 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:
objectModel for paginated collections of data.
- count
-
Type:
integer(int64)Number of objects in the 'items' collection. - hasMore
-
Type:
booleanDefault Value:falseA boolean indicating if more pages are available. - items
-
Type:
arrayitemsA collection of paged items. - links
-
Type:
arraylinksA collection of links containing hrefs to the current, next, and previous pages as applicable. - resourceType
-
Type:
stringIdentify the resource type
Nested Schema : items
Nested Schema : links
Nested Schema : GenomicSpecimen
Type:
object- genomicFileMetadata
-
Type:
objectLinkedReference - genomicSpecimenMetadata
-
Type:
objectLinkedReference - identifier
-
Type:
objectIdentifierIdentifier assigned by a given system - patient
-
Type:
objectLinkedReference - resourceType
-
Type:
string - specimenNumber
-
Type:
stringSpecimen identifier in linked Specimen Datasource Database - specimenVendorNumber
-
Type:
stringVendor Identifier in linked Specimen Datasource Database - subject
-
Type:
objectLinkedReference
Nested Schema : LinkedReference
Type:
object- display
-
Type:
string - reference
-
Type:
string
Nested Schema : Identifier
Type:
objectIdentifier assigned by a given system
- system
-
Type:
stringSystem which assigned this identifier - value
-
Type:
stringIdentifier value
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"
}
]
}