# getHasPublication

**Identifier:** `has_getHasPublication`

**Provider:** [HAS - Haute Autorité de Santé](https://kirha.com/providers/has.md)

Get the full structured records for one or more HAS publications by id (e.g. p_3892354). Returns per-publication ratings (SMR/ASMR), ATC code, dossier number, active substance, manufacturer, plain-text summaries, indexing category ids and direct PDF download URLs, plus a flattened list of all PDF URLs across the requested publications. Resolve category ids with getHasCategories.

## Run it with the CLI

```bash
kirha tools run has_getHasPublication \
  --input '{
    "ids": [
      "p_3892354"
    ]
  }'
```

`--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": "has_getHasPublication",
  "input": {
    "ids": [
      "p_3892354"
    ]
  }
}'
```

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": {
    "ids": {
      "description": "HAS publication ids, e.g. p_3892354 (typically from searchHasPublications 'ids')",
      "items": {
        "type": "string"
      },
      "type": "array"
    }
  },
  "required": [
    "ids"
  ],
  "type": "object"
}
```

## Output schema

```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "additionalProperties": false,
  "properties": {
    "context": {
      "type": "string"
    },
    "notFoundIds": {
      "items": {
        "type": "string"
      },
      "type": "array"
    },
    "pdfUrls": {
      "description": "All PDF download URLs across the requested publications",
      "items": {
        "type": "string"
      },
      "type": "array"
    },
    "publications": {
      "items": {
        "additionalProperties": false,
        "properties": {
          "activeSubstance": {
            "type": "string"
          },
          "assessmentSummary": {
            "type": "string"
          },
          "atcCode": {
            "type": "string"
          },
          "benefitImprovement": {
            "description": "ASMR (Amélioration du Service Médical Rendu), e.g. I-V",
            "type": "string"
          },
          "categoryIds": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "cipCodes": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "dossierNumber": {
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "indications": {
            "type": "string"
          },
          "language": {
            "type": "string"
          },
          "manufacturer": {
            "type": "string"
          },
          "medicalBenefit": {
            "description": "SMR (Service Médical Rendu)",
            "type": "string"
          },
          "pdfUrls": {
            "description": "Direct PDF download URLs for this publication",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "publishedAt": {
            "type": "string"
          },
          "requestType": {
            "type": "string"
          },
          "summary": {
            "type": "string"
          },
          "title": {
            "type": "string"
          },
          "type": {
            "type": "string"
          },
          "updatedAt": {
            "type": "string"
          },
          "url": {
            "type": "string"
          }
        },
        "required": [
          "id",
          "type",
          "title",
          "url"
        ],
        "type": "object"
      },
      "type": "array"
    }
  },
  "required": [
    "context",
    "publications",
    "pdfUrls"
  ],
  "type": "object"
}
```

## Related tools

Other HAS - Haute Autorité de Santé tools that this tool refers to, or that refer to it.

- [`searchHasPublications`](https://kirha.com/providers/has/searchHasPublications.md)
- [`getHasCategories`](https://kirha.com/providers/has/getHasCategories.md)

-----

[All HAS - Haute Autorité de Santé tools](https://kirha.com/providers/has.md) · [< Back to tools list](https://kirha.com/tools.md)