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:
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 : PageableCollectionClinicalSpecimenMetadata
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
Type:
arrayA collection of paged items.
-
Type:
objectClinicalSpecimenMetadataModel for a Clinical Specimen Metadata object in CDM.
Nested Schema : links
Nested Schema : ClinicalSpecimenMetadata
Type:
objectModel for a Clinical Specimen Metadata object in CDM.
- accessionIdentifier
-
Type:
stringThe Clinical Specimen identifier. - identifier
-
Type:
objectIdentifierIdentifier assigned by a given system - metadata
-
Type:
objectMetadataModel for a Metadata Attribute object in CDM. - specimenReference
-
Type:
objectLinkedReference - specimenVendorNumber
-
Type:
stringThe Clinical Specimen Vendor identifier.
Nested Schema : Identifier
Type:
objectIdentifier assigned by a given system
- system
-
Type:
stringSystem which assigned this identifier - value
-
Type:
stringIdentifier value
Nested Schema : Metadata
Type:
objectModel for a Metadata Attribute object in CDM.
- attrDesc
-
Type:
stringMetadata Attribute description. - attrName
-
Type:
stringMetadata Attribute name. - strValue
-
Type:
stringMetadata Attribute string value. - strValueUpper
-
Type:
stringMetadata Attribute upper case string value.
Nested Schema : LinkedReference
Type:
object- display
-
Type:
string - reference
-
Type:
string
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"
}
]
}