Specimen
A sample to be used for analysis.
https://hl7.org/fhir/us/core/STU6.1/StructureDefinition-us-core-specimen.html
Endpoints
Specimen read
Read a Specimen resource.
Path Parameters
Response Payload Attributes
The FHIR Resource name.
Unique Canvas identifier for this resource.
Kind of material that forms the specimen.
Free-text description of the specimen type (e.g. “Serum”).
The patient from whom the specimen was collected.
The patient reference in the format Patient/<patient_id>.
Type the reference refers to (e.g. Patient).
Responses
Errors
Specimen search
Search for Specimen resources.
Query Parameters
A Canvas-issued unique identifier for a specific Specimen.
The patient reference associated to the Specimen using the format Patient/<patient_id>.
Response Payload Attributes
The FHIR Resource name.
This element and value designate that the bundle is a search response. Search result bundles will always have the Bundle.type of searchset .
The number of resources that match the search parameter.
Attributes relevant to pagination, see our Pagination page for more detail.
The relation of the page search
The search url for the specific relation
The results bundle that lists out each object returned in the search
The attributes specific to the resource type, see the Attributes section below
Attributes
The FHIR Resource name.
Unique Canvas identifier for this resource.
Kind of material that forms the specimen.
Free-text description of the specimen type (e.g. “Serum”).
The patient from whom the specimen was collected.
The patient reference in the format Patient/<patient_id>.
Type the reference refers to (e.g. Patient).
Responses
Errors
curl --request GET \ --url 'https://fumage-example.canvasmedical.com/Specimen/<id>' \ --header 'Authorization: Bearer <token>' \ --header 'accept: application/json'import requests url = "https://fumage-example.canvasmedical.com/Specimen/<id>" headers = { "accept": "application/json", "Authorization": "Bearer <token>" } response = requests.get(url, headers=headers) print(response.text)
{ "resourceType": "Specimen", "id": "0a5d9e1f-1c64-4d04-a2bb-2a58e34f9f6d", "type": { "text": "Serum" }, "subject": { "reference": "Patient/1c8c6f27551d4d01aa3bf2477a4d5259", "type": "Patient", } }{ "resourceType": "OperationOutcome", "issue": [ { "severity": "error", "code": "unknown", "details": { "text": "Authentication failed" } } ] }{ "resourceType": "OperationOutcome", "issue": [ { "severity": "error", "code": "forbidden", "details": { "text": "Authorization failed" } } ] }{ "resourceType": "OperationOutcome", "issue": [ { "severity": "error", "code": "not-found", "details": { "text": "Unknown Specimen resource 'SPM-unknown'" } } ] }
curl --request GET \ --url 'https://fumage-example.canvasmedical.com/Specimen?_id=0a5d9e1f-1c64-4d04-a2bb-2a58e34f9f6d&patient=Patient/1c8c6f27-55d-4d01-aa3b-f2477a4d5259' \ --header 'Authorization: Bearer <token>' \ --header 'accept: application/json'import requests url = "https://fumage-example.canvasmedical.com/Specimen?_id=0a5d9e1f-1c64-4d04-a2bb-2a58e34f9f6d&patient=Patient/1c8c6f27-55d-4d01-aa3b-f2477a4d5259" headers = { "accept": "application/json", "Authorization": "Bearer <token>" } response = requests.get(url, headers=headers) print(response.text)
{ "resourceType": "Bundle", "type": "searchset", "total": 1, "link": [ { "relation": "self", "url": "/Specimen?_id=0a5d9e1f-1c64-4d04-a2bb-2a58e34f9f6d&patient=Patient/1c8c6f27551d4d01aa3bf2477a4d5259&_count=10&_offset=0" }, { "relation": "first", "url": "/Specimen?_id=0a5d9e1f-1c64-4d04-a2bb-2a58e34f9f6d&patient=Patient/1c8c6f27551d4d01aa3bf2477a4d5259&_count=10&_offset=0" }, { "relation": "last", "url": "/Specimen?_id=0a5d9e1f-1c64-4d04-a2bb-2a58e34f9f6d&patient=Patient/1c8c6f27551d4d01aa3bf2477a4d5259&_count=10&_offset=0" } ], "entry": [ { "resource": { "resourceType": "Specimen", "id": "0a5d9e1f-1c64-4d04-a2bb-2a58e34f9f6d", "type": { "text": "Serum" }, "subject": { "reference": "Patient/1c8c6f27-551d4d01aa3bf2477a4d5259", "type": "Patient", } } } ] }{ "resourceType": "OperationOutcome", "issue": [ { "severity": "error", "code": "invalid", "details": { "text": "Bad request" } } ] }{ "resourceType": "OperationOutcome", "issue": [ { "severity": "error", "code": "unknown", "details": { "text": "Authentication failed" } } ] }{ "resourceType": "OperationOutcome", "issue": [ { "severity": "error", "code": "forbidden", "details": { "text": "Authorization failed" } } ] }