The SukiAssistant is the main UI component that renders the Suki Assistant interface within your React application. It manages the display and interaction for ambient sessions.The code snippet below shows how to use the SukiAssistant component to render the Suki Assistant interface within your React application.
Configuration options for ambient session functionality, including note sections and problem-based charting settings. Refer to the AmbientOptions page for more information.
The encounter data to pre-populate the SDK, including patient and provider details. This prop is required. Refer to the Encounter page for more information.
Callback function invoked when the SDK’s close button is clicked. This prop is only available and functional when uiOptions.showCloseButton is not explicitly set to false. Refer to the UIOptions page for more information.
UI configuration options for the SDK, controlling the visibility and functionality of various interface elements like buttons and editing features. Refer to the UIOptions page for more information.
The SukiAssistant component employs conditional typing to ensure type safety for the onClose prop, which is dynamically determined by the uiOptions.showCloseButton configuration: