code_clinical_note
Accepts a clinical note and returns ranked ICD-10-CM code candidates with CMS validation, covering cardiac, diabetes, respiratory, and musculoskeletal; live NLM fallback.
Instructions
CODING ASSISTANCE TOOL (not a diagnostic tool). Accepts a clinical note and returns ranked ICD-10-CM diagnosis code candidates with constraint validation. Scope: cardiac (I20-I25), diabetes (E08-E13), respiratory (J00-J99), musculoskeletal (curated: M15-M19 arthritis, M25 joint disorders, M54 dorsalgia, M70-M81 soft tissue/osteoporosis). Data: CMS ICD-10-CM FY2026 (icd10cm-tabular-2026.xml), scoped to 4 categories, with supplemented inclusion terms for matchability. When no local match clears the confidence threshold, live-queries the NLM Clinical Tables ICD-10-CM API (full code set, U.S. National Library of Medicine) as an unvalidated fallback, returned under externalSuggestions.
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": {
"note_text": "<note_text>"
},
"name": "code_clinical_note"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| note_text | Yes | The clinical note text to analyse (free text, any length). | |
| max_results | No | Maximum number of results to return across all statuses. |