@medplum/dosespot-react
Version:
Medplum DoseSpot React SDK
42 lines (28 loc) • 1.44 kB
TypeScript
import { Identifier } from '@medplum/fhirtypes';
export declare const DOSESPOT_IFRAME_BOT: Identifier;
export declare const DOSESPOT_MEDICATION_HISTORY_BOT: Identifier;
export declare const DOSESPOT_NOTIFICATION_COUNTS_BOT: Identifier;
export declare const DOSESPOT_PATIENT_ID_SYSTEM = "https://dosespot.com/patient-id";
export declare const DOSESPOT_PATIENT_SYNC_BOT: Identifier;
export declare const DOSESPOT_PRESCRIPTIONS_SYNC_BOT: Identifier;
export declare interface DoseSpotIFrameOptions {
readonly patientId?: string;
readonly onPatientSyncSuccess?: () => void;
readonly onIframeSuccess?: (url: string) => void;
readonly onError?: (err: unknown) => void;
}
export declare interface DoseSpotNotificationCountsResponse {
PendingPrescriptionsCount: number;
PendingRxChangeCount: number;
RefillRequestsCount: number;
TransactionErrorsCount: number;
}
export declare interface DoseSpotNotificationsOptions {
readonly refreshIntervalMilliseconds?: number;
readonly onChange?: (count: number) => void;
readonly onError?: (err: unknown) => void;
}
export declare const MEDPLUM_BOT_SYSTEM = "https://www.medplum.com/bots";
export declare function useDoseSpotIFrame(options: DoseSpotIFrameOptions): string | undefined;
export declare function useDoseSpotNotifications(options?: DoseSpotNotificationsOptions): number | undefined;
export { }