Overview
Specimen Information addresses:- Specimen HL7® FHIR® resource with US Core Profile 6.1.0
- a specimen code
- a patient
- Since the binding is extensible when a code is unavailable, just text is allowed.
- in addition to Specimen search criteria, clients may request Specimen resources be included with Observation or DiagnosticReport resource query. An example query is provided in the Notes section below.
Must support elements, mandatory and optional search parameters
Specimen must support these elements:typesubject
type
id AND Specimen search using the _id search parameter:
GET [base url]/Specimen/[id]
GET [base url]/Specimen?_id=[id]
The following search parameter combinations SHOULD be supported:
SHOULD support searching using the patient search parameter:
GET [base url]/Specimen?patient={Type/}[id]
The response to any search operation is always a list of resources in a Bundle or an Operation Outcome.
The following search parameter combinations MAY be supported:
MAY support searching for Observation resources that reference a Specimen using the _include parameter:
GET [base url]/[Resource-type]?_id=[id]&_include=Observation:specimen
The response to any search operation is always a list of resources in a Bundle or an Operation Outcome.
Specimen by ID
Read a single Specimen resource by its ID. METHOD GET| Header | Type | Required/Optional | Value |
|---|---|---|---|
| Authorization | string | required | Bearer <token> |
| Code | Description | Comment |
|---|---|---|
| 200 | OK | The request was processed successfully |
| 400 | Bad request | Invalid request parameters or FHIR operation outcome resource returned |
| 401 | Unauthorized | This code indicates that the client request has not been completed because it lacks valid authentication credentials for the requested resource |
| 404 | No route matched with those values | The request was able to communicate with a given server, but the server could not find what was requested |
| 500 | Internal Server Error | The server has encountered a situation it doesn’t know how to handle |
Specimen Search by ID
Search for Specimen using the_id search parameter.
METHOD GET
| Header | Type | Required/Optional | Value |
|---|---|---|---|
| Authorization | string | required | Bearer <token> |
| Code | Description | Comment |
|---|---|---|
| 200 | OK | The request was processed successfully |
| 400 | Bad request | Invalid request parameters or FHIR operation outcome resource returned |
| 401 | Unauthorized | This code indicates that the client request has not been completed because it lacks valid authentication credentials for the requested resource |
| 404 | No route matched with those values | The request was able to communicate with a given server, but the server could not find what was requested |
| 500 | Internal Server Error | The server has encountered a situation it doesn’t know how to handle |
Specimen by Patient
Search for Specimen using thepatient parameter.
METHOD GET
Patient/
[id] - Patient’s id
HEADERS
The Authorization token SHALL be obtained during the Authentication and Authorization process. Go to Authentication and Authorization for further details.
| Header | Type | Required/Optional | Value |
|---|---|---|---|
| Authorization | string | required | Bearer <token> |
| Code | Description | Comment |
|---|---|---|
| 200 | OK | The request was processed successfully |
| 400 | Bad request | Invalid request parameters or FHIR operation outcome resource returned |
| 401 | Unauthorized | This code indicates that the client request has not been completed because it lacks valid authentication credentials for the requested resource |
| 404 | No route matched with those values | The request was able to communicate with a given server, but the server could not find what was requested |
| 500 | Internal Server Error | The server has encountered a situation it doesn’t know how to handle |
Observation with Included Specimen
Search for Observation resources with included Specimen references. METHOD GET| Header | Type | Required/Optional | Value |
|---|---|---|---|
| Authorization | string | required | Bearer <token> |
| Code | Description | Comment |
|---|---|---|
| 200 | OK | The request was processed successfully |
| 400 | Bad request | Invalid request parameters or FHIR operation outcome resource returned |
| 401 | Unauthorized | This code indicates that the client request has not been completed because it lacks valid authentication credentials for the requested resource |
| 404 | No route matched with those values | The request was able to communicate with a given server, but the server could not find what was requested |
| 500 | Internal Server Error | The server has encountered a situation it doesn’t know how to handle |