# searchDrugs

**Identifier:** `vidal_searchDrugs`

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

Find drugs by French name, code (CIP, UCD, CIS, EAN, ATC, CIM10, LPPR), or safety/regulatory indicator. Returns products, packages, UCDs, or VMPs with URIs. Upstream of getDrugDetails, getDrugInteractions, getDrugDocuments, analyzePrescription.

## Run it with the CLI

```bash
kirha tools run vidal_searchDrugs \
  --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": "vidal_searchDrugs",
  "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": {
    "code": {
      "type": "string"
    },
    "indicatorOperator": {
      "default": "AND",
      "enum": [
        "AND",
        "OR"
      ],
      "type": "string"
    },
    "indicators": {
      "description": "Filter by safety/regulatory indicators (e.g. antibiotic, narcotic, pregnancy)",
      "items": {
        "enum": [
          "blood_derived",
          "antibiotic",
          "anticancer",
          "anticancer_handling_precautions",
          "anticoagulant",
          "antivitamin_k",
          "oxygen_therapy",
          "oral_liquid",
          "oral",
          "doping",
          "psychoactive",
          "psychotropic",
          "scorable",
          "narcotic_and_assimilated",
          "vaccine",
          "aerosol_route",
          "cutaneous_route",
          "injectable_route",
          "ophthalmic_route",
          "transdermal_route",
          "pregnancy",
          "breastfeeding",
          "renal",
          "reinforced_surveillance",
          "restricted_prescription",
          "anxiolytic",
          "hypnotic",
          "emergency_contraception",
          "photosensitive",
          "narcotic",
          "exception_medication",
          "home_infusion",
          "nurse_prescribable",
          "midwife_prescribable"
        ],
        "type": "string"
      },
      "minItems": 1,
      "type": "array"
    },
    "limit": {
      "default": 20,
      "maximum": 50,
      "minimum": 1,
      "type": "number"
    },
    "marketStatus": {
      "default": "AVAILABLE",
      "enum": [
        "NEW",
        "AVAILABLE",
        "DELETED",
        "DELETED_ONEYEAR",
        "PHARMACO",
        "PHARMACO_ONEYEAR",
        "ANY"
      ],
      "type": "string"
    },
    "offset": {
      "default": 0,
      "maximum": 200,
      "minimum": 0,
      "type": "number"
    },
    "query": {
      "description": "French libellé, ≥3 chars. Tokens are AND'd by word-prefix. Wrap a single token in $...$ for contains-matching (e.g. '$topro$' → KETOPROFENE).",
      "type": "string"
    },
    "scope": {
      "default": "product",
      "enum": [
        "product",
        "package",
        "ucd",
        "vmp",
        "any"
      ],
      "type": "string"
    }
  },
  "type": "object"
}
```

## Output schema

```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "additionalProperties": false,
  "properties": {
    "context": {
      "type": "string"
    },
    "matches": {
      "items": {
        "additionalProperties": false,
        "properties": {
          "activePrinciples": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "ammType": {
            "type": "string"
          },
          "cip13": {
            "type": "string"
          },
          "cip7": {
            "type": "string"
          },
          "cis": {
            "type": "string"
          },
          "company": {
            "type": "string"
          },
          "dispensationPlace": {
            "type": "string"
          },
          "entityType": {
            "type": "string"
          },
          "indicators": {
            "items": {
              "additionalProperties": false,
              "properties": {
                "id": {
                  "type": "number"
                },
                "name": {
                  "type": "string"
                },
                "patientFieldRequired": {
                  "type": "boolean"
                }
              },
              "required": [
                "id",
                "name",
                "patientFieldRequired"
              ],
              "type": "object"
            },
            "type": "array"
          },
          "itemType": {
            "type": "string"
          },
          "marketStatus": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "publicPrice": {
            "type": "number"
          },
          "summary": {
            "type": "string"
          },
          "ucd13": {
            "type": "string"
          },
          "ucd7": {
            "type": "string"
          },
          "ucdPrice": {
            "type": "number"
          },
          "uri": {
            "type": "string"
          },
          "vmpUri": {
            "type": "string"
          },
          "withoutPrescription": {
            "type": "boolean"
          }
        },
        "required": [
          "uri",
          "name",
          "entityType"
        ],
        "type": "object"
      },
      "type": "array"
    },
    "totalFound": {
      "type": "number"
    },
    "uris": {
      "description": "Feed into getDrugDetails, getDrugInteractions, getDrugDocuments, analyzePrescription",
      "items": {
        "type": "string"
      },
      "type": "array"
    }
  },
  "required": [
    "context",
    "matches",
    "uris",
    "totalFound"
  ],
  "type": "object"
}
```

## Related tools

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

- [`getSubstitutes`](https://kirha.com/providers/vidal/getSubstitutes.md)
- [`getDrugAllergies`](https://kirha.com/providers/vidal/getDrugAllergies.md)
- [`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)