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

> International Classification of Diseases, 10th Revision, Clinical Modification. The standard for documenting diagnoses in the United States

The US clinical modification of ICD-10, maintained by the CDC and updated annually. Required for all US inpatient, outpatient, and physician billing. Over 74,000 alphanumeric codes (3–7 characters, e.g., `E11.649`) covering diagnoses, symptoms, injuries, and health encounters.

## Quick start

System identifiers: `icd10cm-inpatient` · `icd10cm-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": ["icd10cm-inpatient"],
      "context": [{"type": "text", "text": "72-year-old male admitted with acute STEMI. History of type 2 diabetes and hypertension."}]
    }'
  ```

  ```ts JavaScript theme={null}
  const response = await client.codes.predict({
    system: ["icd10cm-inpatient"],
    context: [{ type: "text", text: "72-year-old male admitted with acute STEMI. History of type 2 diabetes and hypertension." }],
  });
  ```

  ```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": ["icd10cm-inpatient"],
          "context": [{"type": "text", "text": "72-year-old male admitted with acute STEMI. History of type 2 diabetes and hypertension."}],
      },
  )
  print(response.json())
  ```
</CodeGroup>

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

## Encounter type

<Warning>
  **Encounter type is required.** ICD-10-CM 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 `icd10cm-inpatient` for inpatient cases and `icd10cm-outpatient` for outpatient cases. The correct guideline set is applied automatically based on the suffix.
</Warning>
