ICD-10 API
Look up ICD-10-CM diagnosis codes and ICD-10-PCS procedure codes.
Overview
ICD-10 is the international standard for classifying diseases (ICD-10-CM) and procedures (ICD-10-PCS). FHIRfly automatically detects the code type and returns the appropriate data.
Endpoints
| Method | Path | Description |
|---|---|---|
| GET | /v1/icd10/:code | Single code lookup |
| POST | /v1/icd10/_batch | Batch lookup (up to 100) |
| GET | /v1/icd10/shapes | List available response shapes |
Single Lookup - Diagnosis (ICD-10-CM)
Look up Type 2 diabetes mellitus
Request
curl -X GET "https://api.fhirfly.io/v1/icd10/E11.9" \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN"Response
Code Types
| Type | Format | Example | Description |
|---|---|---|---|
| CM | A00-Z99 pattern | E11.9 | Diagnosis codes |
| PCS | 7 characters | 0BH17EZ | Procedure codes |
FHIRfly automatically detects the code type based on format. CM codes accept both dotted (E11.9) and non-dotted (E119) formats.
Batch Lookup
Look up multiple ICD-10 codes in a single request (up to 100). Supports mixed CM and PCS codes:
Look up multiple diagnosis codes
Request
curl -X POST "https://api.fhirfly.io/v1/icd10/_batch" \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"codes": [
"E11.9",
"I10",
"J06.9"
]
}'Response
Response Shapes
Control the level of detail in responses with the shape query parameter:
| Shape | Description |
|---|---|
compact | Code, code_system, display, billable/short_desc |
standard | + status, fiscal_year, structure, fhir_coding |
full | + version, metadata, ingest info |
# Minimal data
GET /v1/icd10/E11.9?shape=compact
# Standard data (default)
GET /v1/icd10/E11.9?shape=standard
# Full data with provenance
GET /v1/icd10/E11.9?shape=full
See Response Shapes for field details.
Required Scopes
icd10:read- Single lookupsicd10:batch- Batch lookups