# Device

Source: https://www.flexpa.com/docs/fhir/device
Description: Device is a clinical FHIR Resource that acts as a record of a device that is associated with a patient.

GET `https://api.flexpa.com/fhir/Device`

* [Device](https://www.hl7.org/fhir/Device.html) is a base FHIR Resource ( [JSON example](https://www.hl7.org/fhir/Device-example.json))
* Commonly available via [US Core Implantable Device Profile](https://build.fhir.org/ig/HL7/US-Core/StructureDefinition-us-core-implantable-device.html)

**Device** is a clinical FHIR Resource that acts as a record of a device that is associated with a patient. Typically these are implants, but can be any device that is used in patient care. This resource is commonly used to track pacemakers, defibrillators, and other implanted devices.

While a few payers may make this information available, almost all do not have this data unless it is submitted to the payer by providers for quality measures or other provider/payer data exchange programs,  as it is not included with or derived from core claims generation.

## Search parameters
The full list of search parameters can be found [here](http://hl7.org/FHIR/device.html#search). Some of the most important are:

**Parameters**

- `patient` (string):
The ID of the patient who used or has the device. We recommend using this search parameter along with the `$PATIENT_ID` [wildcard](https://www.flexpa.com/docs/records#wildcard-parameters)

## Sample request

**Note:**
While some servers may support a resource-level search without any parameters, not all do. We recommend using the format below with the patient ID via the `$PATIENT_ID` [wildcard](https://www.flexpa.com/docs/records#wildcard-parameters) as a search parameter.

This is a sample request using `curl`

```shell
ACCESS_TOKEN=patient-access-token

curl "https://api.flexpa.com/fhir/Device?patient=$PATIENT_ID" \
  -H "Authorization: Bearer $ACCESS_TOKEN"
```

## Sample response

This is a sample response from Anthem (CareEvolution) using Flexpa API in [test mode](https://www.flexpa.com/docs/test-mode#health-insurers)
