> ## 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.

# NHS ICD-10

> United Kingdom modification of ICD-10. The standard for diagnosis coding in the NHS

The UK modification of ICD-10, maintained by NHS England. Around 16,000 alphanumeric codes (4–6 characters; codes shorter than four characters are padded with `X`) covering diagnoses across NHS inpatient and outpatient settings.

## Quick start

System identifiers: `icd10uk-inpatient` · `icd10uk-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": ["icd10uk-inpatient"],
      "context": [{"type": "text", "text": "Patient admitted with COPD exacerbation and type 2 diabetes mellitus."}]
    }'
  ```

  ```ts JavaScript theme={null}
  const response = await client.codes.predict({
    system: ["icd10uk-inpatient"],
    context: [{ type: "text", text: "Patient admitted with COPD exacerbation 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": ["icd10uk-inpatient"],
          "context": [{"type": "text", "text": "Patient admitted with COPD exacerbation 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 `icd10uk-inpatient` for inpatient cases and `icd10uk-outpatient` for outpatient cases. The correct guideline set is applied automatically based on the suffix.
</Warning>

## Inpatient procedures

<Tip>
  For UK inpatient episodes, NHS ICD-10 is paired with [OPCS-4](/coding/opcs-4) for procedure coding. Use `icd10uk-inpatient` for diagnoses and `opcs4` for procedures in the same request.
</Tip>

## Known issues

In England, there are certain secondary codes that one should always code, even if they do not directly impact patient care during the encounter. We have not implemented this list yet.
