@oystehr/sdk
Version:
Oystehr SDK
21 lines (18 loc) • 605 B
JavaScript
import { SDKResource } from '../../client/client.js';
// AUTOGENERATED -- DO NOT EDIT
class ErxV2 extends 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);
}
}
export { ErxV2 };
//# sourceMappingURL=erxV2.js.map