# searchDeviceAdverseEvents

**Identifier:** `openfda_searchDeviceAdverseEvents`

**Provider:** [OpenFDA](https://kirha.com/providers/openfda.md)

Search U.S. medical device adverse event reports (MAUDE/MDR database). Returns reports of device malfunctions, injuries, and deaths associated with medical devices.

## Run it with the CLI

```bash
kirha tools run openfda_searchDeviceAdverseEvents \
  --input '{}'
```

`--input` takes a JSON object that matches the input schema. Pass `--input -` to read it from stdin.

## Call it over HTTP

```bash
curl https://api.kirha.com/tools/v1/execute \
  --request POST \
  --header 'Content-Type: application/json' \
  --header 'Authorization: **********' \
  --data '{
  "tool_name": "openfda_searchDeviceAdverseEvents",
  "input": {}
}'
```

Replace the stars with an API key from https://app.kirha.com/api-keys.

## Input schema

```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "properties": {
    "deviceName": {
      "type": "string"
    },
    "endDate": {
      "description": "YYYY-MM-DD",
      "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
      "type": "string"
    },
    "eventType": {
      "enum": [
        "Death",
        "Injury",
        "Malfunction"
      ],
      "type": "string"
    },
    "limit": {
      "default": 10,
      "maximum": 20,
      "minimum": 1,
      "type": "integer"
    },
    "manufacturer": {
      "type": "string"
    },
    "startDate": {
      "description": "YYYY-MM-DD",
      "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
      "type": "string"
    }
  },
  "type": "object"
}
```

## Output schema

```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "additionalProperties": false,
  "properties": {
    "context": {
      "type": "string"
    },
    "events": {
      "items": {
        "additionalProperties": false,
        "properties": {
          "dateReceived": {
            "type": "string"
          },
          "deviceName": {
            "type": "string"
          },
          "eventDescription": {
            "type": "string"
          },
          "eventType": {
            "type": "string"
          },
          "manufacturer": {
            "type": "string"
          },
          "productCode": {
            "type": "string"
          },
          "reportNumber": {
            "type": "string"
          }
        },
        "required": [
          "reportNumber"
        ],
        "type": "object"
      },
      "type": "array"
    },
    "reportNumbers": {
      "items": {
        "type": "string"
      },
      "type": "array"
    },
    "total": {
      "type": "number"
    }
  },
  "required": [
    "context",
    "total",
    "events",
    "reportNumbers"
  ],
  "type": "object"
}
```

-----

[All OpenFDA tools](https://kirha.com/providers/openfda.md) · [< Back to tools list](https://kirha.com/tools.md)