Device
A type of a manufactured item that is used in the provision of healthcare without being substantially changed through that activity. The device may be a medical or non-medical device.
http://hl7.org/fhir/us/core/STU3.1.1/StructureDefinition-us-core-implantable-device.html
For information about creating Device resources for a patient, see this Zendesk article. Devices are not currently used by the Canvas UI, but any devices that are created can be accessed with the Device read and search endpoints, In order to generate the type attribute, a device code must be created and linked to the device via the admin settings on Canvas.
Endpoints
Device read
Path Parameters
Response Payload Attributes
The FHIR Resource name.
The identifier of the Device
Unique Device Identifier (UDI) Barcode string.
Mandatory fixed portion of UDI.
UDI Human Readable Barcode String.
Status of the Device availability.
The distinct identification string. This will match the id
attribute.
Name of device manufacturer.
Date when the device was made.
Date of expiry of this device (if applicable).
Lot number of manufacture.
Serial number assigned by the manufacturer.
The model number for the device.
The kind or type of device.
A CodeableConcept combination of one or more coding elements.
The system url of the coding.
The code of the category.
The display name of the coding.
Patient to whom Device is affixed
The reference string of the subject in the format of "Patient/a39cafb9d1b445be95a2e2548e12a787"
.
Type the reference refers to (e.g. “Patient”).
Responses
Errors
Device search
Query Parameters
The identifier of the Device.
The patient reference associated to the Device in the format Patient/a39cafb9d1b445be95a2e2548e12a787
.
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.
The identifier of the Device
Unique Device Identifier (UDI) Barcode string.
Mandatory fixed portion of UDI.
UDI Human Readable Barcode String.
Status of the Device availability.
The distinct identification string. This will match the id
attribute.
Name of device manufacturer.
Date when the device was made.
Date of expiry of this device (if applicable).
Lot number of manufacture.
Serial number assigned by the manufacturer.
The model number for the device.
The kind or type of device.
A CodeableConcept combination of one or more coding elements.
The system url of the coding.
The code of the category.
The display name of the coding.
Patient to whom Device is affixed
The reference string of the subject in the format of "Patient/a39cafb9d1b445be95a2e2548e12a787"
.
Type the reference refers to (e.g. “Patient”).
Responses
Errors
curl --request GET \ --url 'https://fumage-example.canvasmedical.com/Device/<id>' \ --header 'Authorization: Bearer <token>' \ --header 'accept: application/json'
import requests url = "https://fumage-example.canvasmedical.com/Device/<id>" headers = { "accept": "application/json", "Authorization": "Bearer <token>" } response = requests.get(url, headers=headers) print(response.text)
{ "resourceType": "Device", "id": "c6bf6efc-1fe1-4221-9821-e60acb53becc", "udiCarrier": [ { "deviceIdentifier": "08717648200274", "carrierHRF": "=/08717648200274=,000025=A99971312345600=>014032=}013032&,1000000000000XYZ123" } ], "status": "active", "distinctIdentifier": "A99971312345600", "manufacturer": "ACME Biomedical", "manufactureDate": "2021-02-15", "expirationDate": "2021-09-15", "lotNumber": "234234", "serialNumber": "13213123123123", "modelNumber": "1.0", "type": { "coding": [ { "system": "http://snomed.info/sct", "code": "2478003", "display": "Ocular prosthesis" } ] }, "patient": { "reference": "Patient/b8dfa97bdcdf4754bcd8197ca78ef0f0", "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 Device resource 'a47c7b0e-bbb4-42cd-bc4a-df259d148ea1'" } } ] }
curl --request GET \ --url 'https://fumage-example.canvasmedical.com/Device?patient=Patient/b8dfa97bdcdf4754bcd8197ca78ef0f0' \ --header 'Authorization: Bearer <token>' \ --header 'accept: application/json'
import requests url = "https://fumage-example.canvasmedical.com/Device?patient=Patient/b8dfa97bdcdf4754bcd8197ca78ef0f0" 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": "/Device/?patient=Patient/b8dfa97bdcdf4754bcd8197ca78ef0f0&_count=10&_offset=0" }, { "relation": "first", "url": "/Device/?patient=Patient/b8dfa97bdcdf4754bcd8197ca78ef0f0&_count=10&_offset=0" }, { "relation": "last", "url": "/Device/?patient=Patient/b8dfa97bdcdf4754bcd8197ca78ef0f0&_count=10&_offset=0" } ], "entry": [ { "resource": { "resourceType": "Device", "id": "c6bf6efc-1fe1-4221-9821-e60acb53becc", "udiCarrier": [ { "deviceIdentifier": "08717648200274", "carrierHRF": "=/08717648200274=,000025=A99971312345600=>014032=}013032&,1000000000000XYZ123" } ], "status": "active", "distinctIdentifier": "A99971312345600", "manufacturer": "ACME Biomedical", "manufactureDate": "2021-02-15", "expirationDate": "2021-09-15", "lotNumber": "234234", "serialNumber": "13213123123123", "modelNumber": "1.0", "type": { "coding": [ { "system": "http://snomed.info/sct", "code": "2478003", "display": "Ocular prosthesis" } ] }, "patient": { "reference": "Patient/b8dfa97bdcdf4754bcd8197ca78ef0f0", "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" } } ] }