TypeScript/JavaScript client for the Snowy SNOMED CT Terminology Server. Zero-dependency, works with Node.js 18+, Bun, Deno, and browsers.
npm install github:termmed/snowy-ts-sdknpm update @termmed/snowy-clientNote: You need read access to the
termmed/snowy-ts-sdkrepository.
import { SnowyClient } from "@termmed/snowy-client";
const snowy = new SnowyClient("https://snowy-staging.termspace.com/api/v1");
// Look up a concept
const concept = await snowy.getConcept(404684003);
console.log(concept.pt); // "Clinical finding"
// Search
const results = await snowy.search("diabetes", { limit: 10 });
// Encode free text to SNOMED CT
const encoding = await snowy.encode("heart attack");
console.log(encoding.match?.pt, encoding.matchScore);const snowy = new SnowyClient(baseUrl, { apiKey: "your-key" });| Category | Methods |
|---|---|
| Concept lookup | getConcept, batchLookup |
| Search | search (modes: prefix_any_order, fulltext, contains, regex) |
| Encoding | encode, batchEncode |
| Encoding audit | listEncodingAudit, getEncodingAudit, confirmEncoding |
| Hierarchy | getChildren, getParents, getDescendants, getAncestors, getHierarchy, getAncestorGraph |
| ECL | evalEcl |
| Metadata | getMetadata, getLanguageRefsets, getSemanticTags, health |
See also: snowy-py-sdk for the Python client.