@oystehr/sdk
Version:
Oystehr SDK
45 lines (42 loc) • 1.46 kB
JavaScript
import { SDKResource } from '../../client/client.js';
// AUTOGENERATED -- DO NOT EDIT
class ErxV1 extends SDKResource {
constructor(config) {
super(config);
}
#baseUrlThunk() {
return this.config.services?.['projectApiUrl'] ?? 'https://project-api.zapehr.com/v1';
}
/**
* Retrieve patient properties from FHIR service and sync them with eRx service
*/
syncPatient(params, request) {
return this.request('/erx/sync-patient/{patientId}', 'post', this.#baseUrlThunk.bind(this))(params, request);
}
/**
* Search for allergies
*/
allergySearch(params, request) {
return this.request('/erx/allergy/search', 'get', this.#baseUrlThunk.bind(this))(params, request);
}
/**
* Cancel photon order
*/
cancelOrder(params, request) {
return this.request('/erx/cancel-order', 'post', this.#baseUrlThunk.bind(this))(params, request);
}
/**
* Cancel photon prescription
*/
cancelPrescription(params, request) {
return this.request('/erx/cancel-prescription', 'post', this.#baseUrlThunk.bind(this))(params, request);
}
/**
* Search for medications. Provide at least one of code or name filters
*/
medicationSearch(params, request) {
return this.request('/erx/medication/search', 'get', this.#baseUrlThunk.bind(this))(params, request);
}
}
export { ErxV1 };
//# sourceMappingURL=erxV1.js.map