Skip to content

termMed/snowy-ts-sdk

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Snowy TypeScript SDK

TypeScript/JavaScript client for the Snowy SNOMED CT Terminology Server. Zero-dependency, works with Node.js 18+, Bun, Deno, and browsers.

Installation

npm install github:termmed/snowy-ts-sdk

Update

npm update @termmed/snowy-client

Note: You need read access to the termmed/snowy-ts-sdk repository.

Quick Start

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);

Authentication

const snowy = new SnowyClient(baseUrl, { apiKey: "your-key" });

API Overview

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.

About

TypeScript SDK for the Snowy SNOMED CT Terminology Server

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors