UNPKG

@oystehr/sdk

Version:

Oystehr SDK

33 lines (30 loc) 1.27 kB
import { SDKResource } from '../../client/client.js'; // AUTOGENERATED -- DO NOT EDIT class Terminology extends SDKResource { constructor(config) { super(config); } #baseUrlThunk() { return this.config.services?.['terminologyApiUrl'] ?? 'https://terminology-api.zapehr.com/v1'; } /** * Search CPT (Current Procedural Terminology) codes by code or description. Supports exact matches, prefix searches, and full-text search with BM25 ranking. * * Access Policy Action: `Terminology:SearchCodes` * Access Policy Resource: `Terminology:Code:*` */ searchCpt(params, request) { return this.request('/cpt/search', 'get', this.#baseUrlThunk.bind(this))(params, request); } /** * Search HCPCS (Healthcare Common Procedure Coding System) Level II codes by code or description. Supports exact matches, prefix searches, and full-text search with BM25 ranking. * * Access Policy Action: `Terminology:SearchCodes` * Access Policy Resource: `Terminology:Code:*` */ searchHcpcs(params, request) { return this.request('/hcpcs/search', 'get', this.#baseUrlThunk.bind(this))(params, request); } } export { Terminology }; //# sourceMappingURL=terminology.js.map