@oystehr/sdk
Version:
Oystehr SDK
35 lines (31 loc) • 1.29 kB
JavaScript
;
var client = require('../../client/client.cjs');
// AUTOGENERATED -- DO NOT EDIT
class Terminology extends client.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);
}
}
exports.Terminology = Terminology;
//# sourceMappingURL=terminology.cjs.map