# searchMedicineShortages

**Identifier:** `ema_searchMedicineShortages`

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

Search medicine shortages the EMA monitors at EU level, mostly of centrally authorised medicines (national shortages are on national agency sites): affected strengths and forms, alternatives, start and expected resolution. Newest shortage first.

## Run it with the CLI

```bash
kirha tools run ema_searchMedicineShortages \
  --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_searchMedicineShortages",
  "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"
    },
    "query": {
      "default": "",
      "description": "Medicine or active substance",
      "type": "string"
    },
    "status": {
      "enum": [
        "Shortage ongoing",
        "Shortage resolved",
        "Medicine discontinued"
      ],
      "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"
    },
    "shortages": {
      "items": {
        "additionalProperties": false,
        "properties": {
          "activeSubstances": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "alternatives": {
            "type": "string"
          },
          "category": {
            "type": "string"
          },
          "expectedResolution": {
            "type": "string"
          },
          "expectedResolutionDate": {
            "type": "string"
          },
          "lastUpdatedDate": {
            "type": "string"
          },
          "medicineName": {
            "type": "string"
          },
          "pharmaceuticalForms": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "shortageUrl": {
            "type": "string"
          },
          "startDate": {
            "type": "string"
          },
          "status": {
            "type": "string"
          },
          "strengths": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "therapeuticAreaMesh": {
            "items": {
              "type": "string"
            },
            "type": "array"
          }
        },
        "required": [
          "medicineName",
          "shortageUrl"
        ],
        "type": "object"
      },
      "type": "array"
    }
  },
  "required": [
    "context",
    "shortages",
    "activeSubstances"
  ],
  "type": "object"
}
```

-----

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