TypeScript SDK

The official TypeScript SDK for the AutoICD API. Zero dependencies, fully typed, and works in every JavaScript runtime. Add automated ICD-10 coding to your application in minutes.

Quick Start

Install from npm and start coding diagnoses in three lines.

npm install autoicd-js
import { AutoICD } from "autoicd-js";

const client = new AutoICD({ apiKey: "sk_..." });
const result = await client.code("Type 2 diabetes with CKD stage 3");

What You Can Build

Four methods covering the full AutoICD API surface.

ICD-10 Coding

Extract diagnoses from clinical text and map them to ICD-10-CM codes with confidence scores and negation detection.

PHI De-identification

Strip names, dates, SSNs, phone numbers, and other protected health information from clinical text.

Code Search

Full-text search across 74,000+ ICD-10-CM 2025 codes by keyword, description, or code prefix.

Code Lookup

Get full code details with SNOMED CT and UMLS synonyms, cross-references, hierarchy, and chapter classification.

Why This SDK

Zero Dependencies

Uses native fetch and AbortController. No bloat in your bundle.

Runs Everywhere

Node.js 18+, Deno, Bun, Cloudflare Workers, Vercel Edge, and any runtime with fetch.

Fully Typed

Complete TypeScript types for every request, response, and error. Great IDE autocomplete.

Rate Limit Aware

Built-in rate limit tracking. Check client.lastRateLimit after any call.

Cancellable Requests

Pass an AbortSignal to cancel in-flight requests.

Configurable

Custom base URL for local dev, staging, or on-premise deployments.

Start building with the TypeScript SDK

Free 7-day trial with 100 requests per day. No credit card required.