Get ICD-11 Code Details
get_icd11_codeRetrieve comprehensive ICD-11 code details including descriptions, hierarchy, classifications, and ICD-10 crosswalk mappings for medical coding and documentation.
Instructions
Get comprehensive details for a specific ICD-11 code including descriptions, Foundation URI, synonyms, parent/child hierarchy, chapter classification, and ICD-10 crosswalk mappings.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | ICD-11 code (e.g., '5A11', 'BA00', 'CA40.0') |
Implementation Reference
- src/tools.ts:195-202 (handler)The handler function for get_icd11_code, which calls client.icd11.get and formats the response.
async (args) => { try { const result = await client.icd11.get(args.code); return ok(formatICD11CodeDetail(result)); } catch (error) { return fail(error); } } - src/tools.ts:178-203 (registration)Registration of the get_icd11_code tool in the server.
server.registerTool( "get_icd11_code", { title: "Get ICD-11 Code Details", description: "Get comprehensive details for a specific ICD-11 code including " + "descriptions, Foundation URI, synonyms, parent/child hierarchy, " + "chapter classification, and ICD-10 crosswalk mappings.", inputSchema: { code: z.string().min(1).describe("ICD-11 code (e.g., '5A11', 'BA00', 'CA40.0')"), }, annotations: { readOnlyHint: true, destructiveHint: false, idempotentHint: true, }, }, async (args) => { try { const result = await client.icd11.get(args.code); return ok(formatICD11CodeDetail(result)); } catch (error) { return fail(error); } } );