UNPKG

@oystehr/sdk

Version:

Oystehr SDK

60 lines (59 loc) 3.85 kB
import { ErxCancelPrescriptionParams, ErxCheckAllergyInteractionsParams, ErxCheckAllergyInteractionsResponse, ErxCheckMedicationInteractionsParams, ErxCheckMedicationInteractionsResponse, ErxCheckPractitionerEnrollmentParams, ErxCheckPractitionerEnrollmentResponse, ErxCheckPrecheckInteractionsParams, ErxCheckPrecheckInteractionsResponse, ErxConnectPractitionerParams, ErxConnectPractitionerResponse, ErxEnrollPractitionerParams, ErxGetConfigurationResponse, ErxSearchAllergensParams, ErxSearchAllergensResponse, ErxSearchMedicationsParams, ErxSearchMedicationsResponse, ErxSyncPatientParams, ErxUnenrollPractitionerParams, OystehrClientRequest } from '../..'; import { SDKResource } from '../../client/client'; import { OystehrConfig } from '../../config'; export declare class Erx extends SDKResource { #private; constructor(config: OystehrConfig); /** * Search for allergens. */ searchAllergens(params: ErxSearchAllergensParams, request?: OystehrClientRequest): Promise<ErxSearchAllergensResponse>; /** * Search for medications. */ searchMedications(params: ErxSearchMedicationsParams, request?: OystehrClientRequest): Promise<ErxSearchMedicationsResponse>; /** * Get eRx configuration for project. */ getConfiguration(request?: OystehrClientRequest): Promise<ErxGetConfigurationResponse>; /** * Checks for drug-allergy interactions for a patient. This endpoint requires the patient's allergies to be synced with the upstream eRx provider. */ checkAllergyInteractions(params: ErxCheckAllergyInteractionsParams, request?: OystehrClientRequest): Promise<ErxCheckAllergyInteractionsResponse>; /** * Checks for drug-drug interactions for a patient. This endpoint requires the patient's medications to be synced with the upstream eRx provider. */ checkMedicationInteractions(params: ErxCheckMedicationInteractionsParams, request?: OystehrClientRequest): Promise<ErxCheckMedicationInteractionsResponse>; /** * Checks for drug-allergy and drug-drug interactions with a specific drug for a patient. This endpoint requires the patient's allergies and medications to be synced with the upstream eRx provider. */ checkPrecheckInteractions(params: ErxCheckPrecheckInteractionsParams, request?: OystehrClientRequest): Promise<ErxCheckPrecheckInteractionsResponse>; /** * Cancel prescription for patient. */ cancelPrescription(params: ErxCancelPrescriptionParams, request?: OystehrClientRequest): Promise<void>; /** * Syncs demographic, allergy, and medication data for a patient with the upstream eRx provider. */ syncPatient(params: ErxSyncPatientParams, request?: OystehrClientRequest): Promise<void>; /** * Create an SSO link for a practitioner. This link can be used to log in to the eRx service as the specified practitioner. */ connectPractitioner(params: ErxConnectPractitionerParams, request?: OystehrClientRequest): Promise<ErxConnectPractitionerResponse>; /** * Create an SSO link for a practitioner. This link can be used to log in to the eRx service as the specified practitioner. */ connectPractitioner(request?: OystehrClientRequest): Promise<ErxConnectPractitionerResponse>; /** * Check eRx enrollment for a practitioner. */ checkPractitionerEnrollment(params: ErxCheckPractitionerEnrollmentParams, request?: OystehrClientRequest): Promise<ErxCheckPractitionerEnrollmentResponse>; /** * Enroll a practitioner in the eRx service. */ enrollPractitioner(params: ErxEnrollPractitionerParams, request?: OystehrClientRequest): Promise<void>; /** * Unenroll a practitioner from the eRx service. */ unenrollPractitioner(params: ErxUnenrollPractitionerParams, request?: OystehrClientRequest): Promise<void>; }