# searchTherapeutics

**Identifier:** `vidal_searchTherapeutics`

**Provider:** [VIDAL France](https://kirha.com/providers/vidal.md)

Find drugs by indication, active substance, or ATC class (code or French name). Returns top matches plus product URIs of the best match. Use when starting from a medical need rather than a drug name.

## Run it with the CLI

```bash
kirha tools run vidal_searchTherapeutics \
  --input '{
    "query": "N05CD",
    "by": "indication"
  }'
```

`--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": "vidal_searchTherapeutics",
  "input": {
    "query": "N05CD",
    "by": "indication"
  }
}'
```

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": {
    "by": {
      "enum": [
        "indication",
        "substance",
        "atc"
      ],
      "type": "string"
    },
    "expandTopMatch": {
      "default": true,
      "type": "boolean"
    },
    "limit": {
      "default": 20,
      "maximum": 50,
      "minimum": 1,
      "type": "number"
    },
    "offset": {
      "default": 0,
      "maximum": 200,
      "minimum": 0,
      "type": "number"
    },
    "query": {
      "description": "French libellé, INN, ATC class name, or ATC code (e.g. N05CD). Translate English terms first.",
      "type": "string"
    }
  },
  "required": [
    "query",
    "by"
  ],
  "type": "object"
}
```

## Output schema

```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "additionalProperties": false,
  "properties": {
    "by": {
      "enum": [
        "indication",
        "substance",
        "atc"
      ],
      "type": "string"
    },
    "context": {
      "type": "string"
    },
    "matches": {
      "items": {
        "additionalProperties": false,
        "properties": {
          "code": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "uri": {
            "type": "string"
          }
        },
        "required": [
          "uri",
          "name"
        ],
        "type": "object"
      },
      "type": "array"
    },
    "productUris": {
      "description": "Feed into getDrugDetails, getDrugInteractions, getDrugDocuments, analyzePrescription",
      "items": {
        "type": "string"
      },
      "type": "array"
    },
    "products": {
      "items": {
        "additionalProperties": false,
        "properties": {
          "activePrinciples": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "dispensationPlace": {
            "type": "string"
          },
          "indicators": {
            "items": {
              "additionalProperties": false,
              "properties": {
                "id": {
                  "type": "number"
                },
                "name": {
                  "type": "string"
                },
                "patientFieldRequired": {
                  "type": "boolean"
                }
              },
              "required": [
                "id",
                "name",
                "patientFieldRequired"
              ],
              "type": "object"
            },
            "type": "array"
          },
          "marketStatus": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "uri": {
            "type": "string"
          }
        },
        "required": [
          "uri",
          "name"
        ],
        "type": "object"
      },
      "type": "array"
    },
    "topMatch": {
      "additionalProperties": false,
      "properties": {
        "name": {
          "type": "string"
        },
        "uri": {
          "type": "string"
        }
      },
      "required": [
        "uri",
        "name"
      ],
      "type": "object"
    }
  },
  "required": [
    "context",
    "by",
    "matches"
  ],
  "type": "object"
}
```

## Related tools

Other VIDAL France tools that this tool refers to, or that refer to it.

- [`analyzePrescription`](https://kirha.com/providers/vidal/analyzePrescription.md)
- [`getDrugDocuments`](https://kirha.com/providers/vidal/getDrugDocuments.md)
- [`getDrugDetails`](https://kirha.com/providers/vidal/getDrugDetails.md)
- [`getDrugInteractions`](https://kirha.com/providers/vidal/getDrugInteractions.md)

-----

[All VIDAL France tools](https://kirha.com/providers/vidal.md) · [< Back to tools list](https://kirha.com/tools.md)