UNPKG

@oystehr/sdk

Version:

Oystehr SDK

47 lines (43 loc) 1.48 kB
'use strict'; var client = require('../../client/client.cjs'); // AUTOGENERATED -- DO NOT EDIT class ErxV1 extends client.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); } } exports.ErxV1 = ErxV1; //# sourceMappingURL=erxV1.cjs.map