Retrieve Clinical Specimens for a Condition Patient Record id
get
/ohfapi/cg/v3.3/patientapi/conditions/{id}/clinicalspecimens
This endpoint supports the retrieval of Clinical Specimens for a single Condition Patient record (row) id. It returns all the Clinical Specimen links for the given Condition Patient ID.
Request
Supported Media Types
- application/json
- application/xml
Path Parameters
-
id: integer(int64)
Minimum Value:
0
Patient Condition Row ID
Security
-
basicAuth: basic
Type:
basic
Response
Supported Media Types
- application/json
- application/xml
200 Response
successful operation
Root Schema : DiagnosisSpecimens
Type:
object
Model for a Diagnosis Specimen object in CDM.
Show Source
-
clinicalspecimens(optional):
array clinicalspecimens
A list of links containing href to retrieve specimen details
-
patientcondition(optional):
object LinkedReference
Nested Schema : clinicalspecimens
Type:
array
A list of links containing href to retrieve specimen details
Show Source
Example:
{href: '/patientapi/clinicalspecimens/{id}'}
400 Response
Invalid parameters supplied
404 Response
Clinical specimens not found
Examples
The following example submits a GET request.
API URL
http://localhost:7010/ohfapi/cg/v3.3/patientapi/conditions/10001/clinicalspecimens
Example of Response Body
The following example shows the response returned in JSON format.
{ "patientcondition": { "reference": "/ohfapi/cg/v3.3/patientapi/conditions/10001" }, "clinicalspecimens": [ { "reference": "/ohfapi/cg/v3.3/patientapi/clinicalspecimens/14214" }, { "reference": "/ohfapi/cg/v3.3/patientapi/clinicalspecimens/14215" }, { "reference": "/ohfapi/cg/v3.3/patientapi/clinicalspecimens/14212" } ] }