# searchPrescribable

**Identifier:** `vidal_searchPrescribable`

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

Find prescribable items (molecule + route, e.g. 'Amoxicilline PO') — the legal unit of prescription in France. Returns linked UCDs, units, routes, and VMPs. Use prescribable URIs in analyzePrescription.

## Run it with the CLI

```bash
kirha tools run vidal_searchPrescribable \
  --input '{
    "query": "<query>"
  }'
```

`--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_searchPrescribable",
  "input": {
    "query": "<query>"
  }
}'
```

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": {
    "expandTopMatch": {
      "default": true,
      "type": "boolean"
    },
    "limit": {
      "default": 20,
      "maximum": 50,
      "minimum": 1,
      "type": "number"
    },
    "query": {
      "description": "French INN or prescribable name, ≥3 chars",
      "type": "string"
    }
  },
  "required": [
    "query"
  ],
  "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": {
          "alias": {
            "type": "string"
          },
          "isValid": {
            "type": "boolean"
          },
          "name": {
            "type": "string"
          },
          "startDate": {
            "type": "string"
          },
          "uri": {
            "type": "string"
          }
        },
        "required": [
          "uri",
          "name",
          "isValid"
        ],
        "type": "object"
      },
      "type": "array"
    },
    "topMatch": {
      "additionalProperties": false,
      "properties": {
        "name": {
          "type": "string"
        },
        "routes": {
          "items": {
            "additionalProperties": false,
            "properties": {
              "name": {
                "type": "string"
              },
              "uri": {
                "type": "string"
              }
            },
            "required": [
              "uri",
              "name"
            ],
            "type": "object"
          },
          "type": "array"
        },
        "ucds": {
          "items": {
            "additionalProperties": false,
            "properties": {
              "name": {
                "type": "string"
              },
              "uri": {
                "type": "string"
              }
            },
            "required": [
              "uri",
              "name"
            ],
            "type": "object"
          },
          "type": "array"
        },
        "units": {
          "items": {
            "additionalProperties": false,
            "properties": {
              "id": {
                "type": "number"
              },
              "name": {
                "type": "string"
              }
            },
            "required": [
              "id",
              "name"
            ],
            "type": "object"
          },
          "type": "array"
        },
        "uri": {
          "type": "string"
        },
        "vmps": {
          "items": {
            "additionalProperties": false,
            "properties": {
              "name": {
                "type": "string"
              },
              "uri": {
                "type": "string"
              }
            },
            "required": [
              "uri",
              "name"
            ],
            "type": "object"
          },
          "type": "array"
        }
      },
      "required": [
        "uri",
        "name",
        "ucds",
        "units",
        "routes",
        "vmps"
      ],
      "type": "object"
    },
    "uris": {
      "description": "Feed into analyzePrescription drug field",
      "items": {
        "type": "string"
      },
      "type": "array"
    }
  },
  "required": [
    "context",
    "matches",
    "uris"
  ],
  "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)

-----

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