Quick Summary
After submitting an ambient session, Suki generates a clinical note in the background. Once ready, you can retrieve the note content and save it to your EHR.
You can receive note content using either the
You can receive note content using either the
onNoteSubmit prop (React only) or the note-submission:success event (React and JavaScript). The SDK provides the note ID, contents organized by sections, and LOINC codes for each section.Overview
After submitting an ambient session, Suki generates a clinical note in the background. Once ready, you can retrieve the note content and save it to your EHR.Note Generation
Note generation happens automatically after session submission. Generation time depends on connectivity:- Online: Faster generation since audio is processed in real-time during the conversation
- Offline: Slower generation since the entire audio file must upload first after connection is restored
Receiving Note Content
When a note is successfully submitted, the SDK provides the note content to your application. You can receive it using either method:onNoteSubmitprop (React only, recommended)note-submission:successevent (React and JavaScript)
- JavaScript
- React
JavaScript
Response Structure
When a note is successfully submitted, you receive a response object with the following structure:JSON
Response Fields
Unique identifier for the generated note
Array of note sections. Each section contains:
title: Section title (e.g., “History of Present Illness”)content: Section content in plain textloinc_code: LOINC code for the section (optional)diagnosis: Diagnosis information if applicable (optional). Refer to Diagnosis for complete structure.
Next Steps
- Learn about token refresh to keep sessions alive
- Explore error handling for note submission failures