# searchPresentationsByCIP

**Identifier:** `ansm_searchPresentationsByCIP`

**Provider:** [ANSM](https://kirha.com/providers/ansm.md)

Resolve a CIP7 (7-digit) or CIP13 (13-digit) code to its parent specialty (CIS) and the matching presentation block — packaging, price, reimbursement rate, agreement, indications. Use this when the user provides a CIP code from a prescription, pharmacy stock system, or barcode.

## Run it with the CLI

```bash
kirha tools run ansm_searchPresentationsByCIP \
  --input '{
    "cip": "<cip>"
  }'
```

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

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": {
    "cip": {
      "description": "CIP7 (7 digits) or CIP13 (13 digits), auto-detected by length.",
      "type": "string"
    }
  },
  "required": [
    "cip"
  ],
  "type": "object"
}
```

## Output schema

```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "additionalProperties": false,
  "properties": {
    "cis": {
      "type": "string"
    },
    "context": {
      "type": "string"
    },
    "denomination": {
      "type": "string"
    },
    "etatCommercialisation": {
      "type": "string"
    },
    "presentation": {
      "additionalProperties": false,
      "properties": {
        "agrement": {
          "type": [
            "string",
            "null"
          ]
        },
        "cip13": {
          "type": [
            "string",
            "null"
          ]
        },
        "cip7": {
          "type": [
            "string",
            "null"
          ]
        },
        "dateCommercialisation": {
          "type": [
            "string",
            "null"
          ]
        },
        "etatCommercialisation": {
          "type": [
            "string",
            "null"
          ]
        },
        "indications": {
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        "libelle": {
          "type": "string"
        },
        "prix": {
          "type": [
            "string",
            "null"
          ]
        },
        "statutAdm": {
          "type": [
            "string",
            "null"
          ]
        },
        "tauxRemboursement": {
          "type": [
            "string",
            "null"
          ]
        }
      },
      "required": [
        "libelle",
        "indications"
      ],
      "type": "object"
    },
    "statutAmm": {
      "type": "string"
    },
    "titulaires": {
      "items": {
        "type": "string"
      },
      "type": "array"
    }
  },
  "required": [
    "context",
    "cis",
    "denomination",
    "titulaires",
    "statutAmm",
    "etatCommercialisation",
    "presentation"
  ],
  "type": "object"
}
```

-----

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