# findDrugByName

**Identifier:** `rxnorm_findDrugByName`

**Provider:** [RxNorm](https://kirha.com/providers/rxnorm.md)

Resolve a drug name to its RxNorm Concept Unique Identifier (RxCUI). Tries exact match first, then a diacritic-normalized lookup, then an approximate-match fallback so French/non-English INNs still resolve. Use the returned rxcuis with getAllRelatedConcepts, getConceptProperties, or getRelatedByType.

## Run it with the CLI

```bash
kirha tools run rxnorm_findDrugByName \
  --input '{
    "drugName": "<drugName>"
  }'
```

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

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": {
    "drugName": {
      "minLength": 1,
      "type": "string"
    }
  },
  "required": [
    "drugName"
  ],
  "type": "object"
}
```

## Output schema

```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "additionalProperties": false,
  "properties": {
    "context": {
      "type": "string"
    },
    "matchType": {
      "enum": [
        "exact",
        "normalized",
        "approximate",
        "none"
      ],
      "type": "string"
    },
    "resolvedName": {
      "description": "Normalized name actually matched, when different from input",
      "type": "string"
    },
    "rxcuis": {
      "description": "RxCUI identifiers for use with other RxNorm tools",
      "items": {
        "type": "string"
      },
      "type": "array"
    }
  },
  "required": [
    "context",
    "rxcuis",
    "matchType"
  ],
  "type": "object"
}
```

## Related tools

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

- [`getConceptProperties`](https://kirha.com/providers/rxnorm/getConceptProperties.md)
- [`getRelatedByType`](https://kirha.com/providers/rxnorm/getRelatedByType.md)
- [`getAllRelatedConcepts`](https://kirha.com/providers/rxnorm/getAllRelatedConcepts.md)

-----

[All RxNorm tools](https://kirha.com/providers/rxnorm.md) · [< Back to tools list](https://kirha.com/tools.md)