# searchDhpcs

**Identifier:** `ema_searchDhpcs`

**Provider:** [EMA Europa](https://kirha.com/providers/ema.md)

Search EMA direct healthcare professional communications (DHPCs, 'Dear Doctor' letters) warning EU prescribers about a safety, quality or supply issue with a medicine. Use for safety communications on a medicine or active substance.

## Run it with the CLI

```bash
kirha tools run ema_searchDhpcs \
  --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": "ema_searchDhpcs",
  "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": {
    "category": {
      "enum": [
        "Human",
        "Veterinary"
      ],
      "type": "string"
    },
    "limit": {
      "default": 10,
      "maximum": 25,
      "minimum": 1,
      "type": "integer"
    },
    "publishedAfter": {
      "format": "date",
      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$",
      "type": "string"
    },
    "publishedBefore": {
      "format": "date",
      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$",
      "type": "string"
    },
    "query": {
      "default": "",
      "description": "Medicine or active substance",
      "type": "string"
    },
    "regulatoryOutcome": {
      "enum": [
        "Variation",
        "Suspension",
        "Revocation",
        "Withdrawal",
        "Maintenance"
      ],
      "type": "string"
    }
  },
  "type": "object"
}
```

## Output schema

```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "additionalProperties": false,
  "properties": {
    "activeSubstances": {
      "description": "Join key for other medicine tools",
      "items": {
        "type": "string"
      },
      "type": "array"
    },
    "context": {
      "type": "string"
    },
    "dhpcs": {
      "items": {
        "additionalProperties": false,
        "properties": {
          "activeSubstances": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "atcCodes": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "category": {
            "type": "string"
          },
          "dhpcTypes": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "dhpcUrl": {
            "type": "string"
          },
          "disseminationDate": {
            "type": "string"
          },
          "firstPublishedDate": {
            "type": "string"
          },
          "lastUpdatedDate": {
            "type": "string"
          },
          "medicineName": {
            "type": "string"
          },
          "otherRelatedMedicines": {
            "type": "string"
          },
          "procedureNumber": {
            "type": "string"
          },
          "referralName": {
            "type": "string"
          },
          "regulatoryOutcome": {
            "type": "string"
          },
          "therapeuticAreaMesh": {
            "items": {
              "type": "string"
            },
            "type": "array"
          }
        },
        "required": [
          "medicineName",
          "dhpcUrl"
        ],
        "type": "object"
      },
      "type": "array"
    }
  },
  "required": [
    "context",
    "dhpcs",
    "activeSubstances"
  ],
  "type": "object"
}
```

-----

[All EMA Europa tools](https://kirha.com/providers/ema.md) · [< Back to tools list](https://kirha.com/tools.md)