@oystehr/sdk
Version:
Oystehr SDK
23 lines (19 loc) • 628 B
JavaScript
;
var client = require('../../client/client.cjs');
// AUTOGENERATED -- DO NOT EDIT
class ErxV2 extends client.SDKResource {
constructor(config) {
super(config);
}
#baseUrlThunk() {
return this.config.services?.['projectApiUrl'] ?? 'https://project-api.zapehr.com/v1';
}
/**
* Search for medications. Provide at least one of code or name filters
*/
medicationSearch(params, request) {
return this.request('/erx/v2/medication/search', 'get', this.#baseUrlThunk.bind(this))(params, request);
}
}
exports.ErxV2 = ErxV2;
//# sourceMappingURL=erxV2.cjs.map