> ## Documentation Index
> Fetch the complete documentation index at: https://docs.corti.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# ICD-10

> The international version of ICD-10 maintained by the WHO

The original ICD-10 published by the WHO, containing around 11,000 codes across five hierarchical levels. Most countries have built national modifications on top of this foundation. Use this system for countries where a national modification is not yet available — it will still produce useful results.

## Quick start

System identifiers: `icd10int-inpatient` · `icd10int-outpatient`

<CodeGroup>
  ```bash curl theme={null}
  curl -X POST "https://api.$environment.corti.app/v2/tools/coding/" \
    -H "Authorization: Bearer <token>" \
    -H "Tenant-Name: <tenant-name>" \
    -H "Content-Type: application/json" \
    -d '{
      "system": ["icd10int-inpatient"],
      "context": [{"type": "text", "text": "Patient admitted with community-acquired pneumonia and type 2 diabetes mellitus."}]
    }'
  ```

  ```ts JavaScript theme={null}
  const response = await client.codes.predict({
    system: ["icd10int-inpatient"],
    context: [{ type: "text", text: "Patient admitted with community-acquired pneumonia and type 2 diabetes mellitus." }],
  });
  ```

  ```python Python theme={null}
  import requests

  response = requests.post(
      "https://api.$environment.corti.app/v2/tools/coding/",
      headers={
          "Authorization": "Bearer <token>",
          "Tenant-Name": "<tenant-name>",
      },
      json={
          "system": ["icd10int-inpatient"],
          "context": [{"type": "text", "text": "Patient admitted with community-acquired pneumonia and type 2 diabetes mellitus."}],
      },
  )
  print(response.json())
  ```
</CodeGroup>

[API reference →](/api-reference/codes/predict-codes)

## Encounter type

<Warning>
  **Encounter type is required.** ICD-10 coding guidelines differ significantly between inpatient and outpatient settings. For instance, in the outpatient setting, one should only code established diagnoses. In the inpatient setting, one should also include all diagnoses that are uncertain, even those that are ruled out. Use `icd10int-inpatient` for inpatient cases and `icd10int-outpatient` for outpatient cases. The correct guideline set is applied automatically based on the suffix.
</Warning>

## Language support

Works best in English and major European languages, with strong performance across dozens of languages. No translation step is required; the model processes the input text directly.
