Code Clinical Text to ICD-10/ICD-11
code_diagnosisExtract medical diagnoses from clinical text and map them to ICD-10 or ICD-11 codes. Identify conditions, negations, and severity with ranked confidence scores.
Instructions
Extract medical diagnoses from clinical text and map them to ICD-10-CM or ICD-11 codes. Identifies conditions, negations, historical mentions, family history, and severity. Returns ranked code candidates with confidence scores.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"text": "<text>"
},
"name": "code_diagnosis"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | Clinical text to process (progress notes, discharge summaries, etc.) | |
| top_k | No | Number of top code candidates per entity (1-25, default: 5) | |
| include_negated | No | Include negated entities in results (default: true) | |
| output_system | No | Output coding system: 'icd10' (default) or 'icd11' | icd10 |