# searchByAppearance

**Identifier:** `vidal_searchByAppearance`

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

Identify a drug from oral dry galenic form + color. Supports pill, pastille, gum, capsule, gel only.

## Run it with the CLI

```bash
kirha tools run vidal_searchByAppearance \
  --input '{
    "form": "pill",
    "color": "yellow"
  }'
```

`--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_searchByAppearance",
  "input": {
    "form": "pill",
    "color": "yellow"
  }
}'
```

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": {
    "color": {
      "enum": [
        "yellow",
        "red",
        "orange",
        "beige",
        "brown",
        "white",
        "green",
        "grey",
        "blue",
        "purple",
        "pink",
        "colorless",
        "black"
      ],
      "type": "string"
    },
    "form": {
      "enum": [
        "pill",
        "pastille",
        "gum",
        "capsule",
        "gel"
      ],
      "type": "string"
    },
    "limit": {
      "default": 25,
      "maximum": 50,
      "minimum": 1,
      "type": "number"
    }
  },
  "required": [
    "form",
    "color"
  ],
  "type": "object"
}
```

## Output schema

```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "additionalProperties": false,
  "properties": {
    "color": {
      "enum": [
        "yellow",
        "red",
        "orange",
        "beige",
        "brown",
        "white",
        "green",
        "grey",
        "blue",
        "purple",
        "pink",
        "colorless",
        "black"
      ],
      "type": "string"
    },
    "context": {
      "type": "string"
    },
    "form": {
      "enum": [
        "pill",
        "pastille",
        "gum",
        "capsule",
        "gel"
      ],
      "type": "string"
    },
    "matches": {
      "items": {
        "additionalProperties": false,
        "properties": {
          "activePrinciples": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "dispensationPlace": {
            "type": "string"
          },
          "marketStatus": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "uri": {
            "type": "string"
          }
        },
        "required": [
          "uri",
          "name"
        ],
        "type": "object"
      },
      "type": "array"
    },
    "uris": {
      "items": {
        "type": "string"
      },
      "type": "array"
    }
  },
  "required": [
    "context",
    "form",
    "color",
    "matches",
    "uris"
  ],
  "type": "object"
}
```

-----

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