# getGenericGroup

**Identifier:** `ansm_getGenericGroup`

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

Given a CIS code or a generic-group identifier, return the princeps (reference medicine) and all its generics. Use this for substitution decisions ('what generics exist for Doliprane?') or to find the originator of a generic.

## Run it with the CLI

```bash
kirha tools run ansm_getGenericGroup \
  --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": "ansm_getGenericGroup",
  "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": {
    "cis": {
      "description": "CIS of any member of the group (princeps or generic).",
      "type": "string"
    },
    "groupIdentifiant": {
      "description": "Generic-group identifier from BDPM.",
      "type": "string"
    }
  },
  "type": "object"
}
```

## Output schema

```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "additionalProperties": false,
  "properties": {
    "context": {
      "type": "string"
    },
    "generics": {
      "items": {
        "additionalProperties": false,
        "properties": {
          "cis": {
            "type": "string"
          },
          "denomination": {
            "type": "string"
          },
          "etatCommercialisation": {
            "type": [
              "string",
              "null"
            ]
          },
          "titulaires": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "typeGenerique": {
            "type": "number"
          },
          "typeGeneriqueLabel": {
            "type": "string"
          }
        },
        "required": [
          "cis",
          "denomination",
          "titulaires",
          "typeGenerique",
          "typeGeneriqueLabel"
        ],
        "type": "object"
      },
      "type": "array"
    },
    "identifiant": {
      "type": "string"
    },
    "libelle": {
      "type": "string"
    },
    "princeps": {
      "items": {
        "additionalProperties": false,
        "properties": {
          "cis": {
            "type": "string"
          },
          "denomination": {
            "type": "string"
          },
          "etatCommercialisation": {
            "type": [
              "string",
              "null"
            ]
          },
          "titulaires": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "typeGenerique": {
            "type": "number"
          },
          "typeGeneriqueLabel": {
            "type": "string"
          }
        },
        "required": [
          "cis",
          "denomination",
          "titulaires",
          "typeGenerique",
          "typeGeneriqueLabel"
        ],
        "type": "object"
      },
      "type": "array"
    }
  },
  "required": [
    "context",
    "identifiant",
    "libelle",
    "princeps",
    "generics"
  ],
  "type": "object"
}
```

-----

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