Explore documentation

Clinical terminology catalogs

Search for concepts in ICD-11 and SNOMED CT using REST or the SDK.

Search ICD-11 and the Argentina and International editions of SNOMED CT on Pro and Enterprise. Use SNOMED CT to identify a clinical concept and ICD-11 to classify a case. Matching labels do not imply equivalent codes.

For REST, use an API key with CodeSystem.read. For an app-scoped key, also send X-App-Id. For SDK, set up the server client as esus with the same credential.

Delegated access with SMART

To use the same examples with SMART, request user/CodeSystem.rs or its v1 equivalent user/CodeSystem.read. In v2, s allows search and r allows exact code lookup. The user also needs the CodeSystem.read permission, and the organization’s plan must include that catalog.

For REST, replace X-API-Key with Authorization: Bearer $ESUS_SMART_ACCESS_TOKEN and keep X-Esus-Expected-Organization. For the SDK, use createSmartClient with the delegated token and call the same esus.terminology methods. Catalog scopes must use the user/ context.

Search SNOMED CT

REST
curl --fail-with-body --silent --show-error \
  'https://api.esus.health/v1/terminology/snomed-ct/search' \
  -H "X-API-Key: $ESUS_API_KEY" \
  -H "X-Esus-Expected-Organization: $ESUS_ORGANIZATION_ID" \
  -H 'Content-Type: application/json' \
  --data '{"query":"asma","catalog":"snomed-argentina","limit":5}'
SDK
const groups = await esus.terminology.search({
  query: "asma",
  catalogs: ["snomed-argentina"],
  mode: "all",
  limit: 5,
});

Use snomed-international for the International edition. REST searches one catalog per request. In the SDK, list multiple catalogs in priority order. With mode: "first-match", the SDK stops at the first catalog with matches. With mode: "all", it returns one group per catalog in that order.

Search the Argentina medication subset

Use the argentina-medications subset to search for medication concepts within SNOMED CT Argentina. Pass the same subset when looking up the concept in that context.

REST
curl --fail-with-body --silent --show-error \
  'https://api.esus.health/v1/terminology/snomed-ct/search' \
  -H "X-API-Key: $ESUS_API_KEY" \
  -H "X-Esus-Expected-Organization: $ESUS_ORGANIZATION_ID" \
  -H 'Content-Type: application/json' \
  --data '{"query":"ibuprofeno","catalog":"snomed-argentina","subset":"argentina-medications","limit":5}'
SDK
const { matches, version } = await esus.terminology.searchSnomed({
  query: "ibuprofeno",
  catalog: "snomed-argentina",
  subset: "argentina-medications",
  limit: 5,
});

Search ICD-11

REST
curl --fail-with-body --silent --show-error \
  'https://api.esus.health/v1/terminology/icd-11/search' \
  -H "X-API-Key: $ESUS_API_KEY" \
  -H "X-Esus-Expected-Organization: $ESUS_ORGANIZATION_ID" \
  -H 'Content-Type: application/json' \
  --data '{"query":"asma","limit":5}'
SDK
const groups = await esus.terminology.search({
  query: "asma",
  catalogs: ["icd-11"],
  mode: "all",
  limit: 5,
});

ICD-11 search uses the Spanish MMS catalog. Store the chosen code, system, and catalog version to identify the original concept.

Both search endpoints accept queries from 3 to 120 characters and limits from 1 to 50 results per catalog. A query with no matches returns an empty list. HTTP 403, 404, and 503 appear as unavailable for that catalog in esus.terminology.search. Other errors fail the request.

Look up a code and its version

Replace the example code and version with values from a match. For SNOMED CT, keep the catalog as well. Use the version URI returned by SNOMED CT and the YYYY-MM value returned by ICD-11.

SNOMED CT

REST
curl --fail-with-body --silent --show-error \
  'https://api.esus.health/v1/terminology/snomed-ct/lookup' \
  -H "X-API-Key: $ESUS_API_KEY" \
  -H "X-Esus-Expected-Organization: $ESUS_ORGANIZATION_ID" \
  -H 'Content-Type: application/json' \
  --data '{"catalog":"snomed-argentina","code":"123456789","version":"http://snomed.info/sct/11000221109/version/20260820"}'
SDK
const concept = await esus.terminology.lookupSnomed({
  catalog: "snomed-argentina",
  code: "123456789",
  version: "http://snomed.info/sct/11000221109/version/20260820",
});

ICD-11

REST
curl --get --fail-with-body --silent --show-error \
  'https://api.esus.health/fhir/CodeSystem/$lookup' \
  -H "X-API-Key: $ESUS_API_KEY" \
  -H "X-Esus-Expected-Organization: $ESUS_ORGANIZATION_ID" \
  --data-urlencode 'system=http://id.who.int/icd/release/11/mms' \
  --data-urlencode 'code=CODE' \
  --data-urlencode 'version=VERSION'
SDK
const classification = await esus.terminology.lookupIcd11({
  code: "CODE",
  version: "VERSION",
});

REST returns a FHIR Parameters resource for the ICD-11 lookup. The SDK returns the code with its display, version, URI, and language.

WHO · ICD-11 · SNOMED International