Quick summary
After you call the End ambient session API and status is
This guide explains when to call these APIs, which APIs to use, and how to use their responses in your application’s note review UI.
completed, retrieve session content for your note editor. Optionally retrieve the transcript and structured data for diagnoses and orders. Choose session, note, or encounter structured data based on how your chart is organized or what your end user needs.This guide explains when to call these APIs, which APIs to use, and how to use their responses in your application’s note review UI.
completed, your backend must retrieve the generated note content and render it in your chart UI for clinician review. You can also optionally retrieve the transcript and structured data for diagnoses and orders.
What you need to build
- A Generating -> Note ready flow driven by Ambient session status API.
- A note editor mapped by
loinc_codeto the corresponding sections in your EHR or chart. - An optional transcript drawer and data panel for diagnoses and orders.
- Clear handling for
skippedandfailedsessions so they are not treated as successful note generation.
Retrieval flow
Content retrieval starts after the ambient session ends and note generation finishes. Do not retrieve generated content while status is stillrunning.
1
End the Ambient Session
After the clinician taps Stop, send
RU9G, close the WebSocket, and call the End ambient session API. See Complete an ambient visit.2
Wait for a Completed Status
Poll Get ambient session status until the status is
completed, skipped, failed, or aborted. See Check note status.3
Retrieve Session Content
When status is
completed, call Get session content. Optionally call Get transcript.4
Retrieve Structured Data
Call the structured-data endpoint that matches your chart scope once. Diagnosis codes, including ICD10, are already generated and do not change if you call again.
5
Show the Note Review UI
Render section text, optional transcript and Data panel, then let the clinician approve or save.
6
Optionally Collect Feedback
After review, submit feedback if your product uses it. Feedback must not block approve or save.
Ambient does not provide a finished note while the visit is in progress. Note generation happens after the End ambient session API succeeds, so fetching content while status is
running is too early.Build the note review experience
The note review screen is the clinician’s destination after Ambient generation succeeds. At minimum, your UI should let the clinician read generated sections, edit the content, and approve or save the note.Note Editor
Generated section text mapped to your chart template by
loinc_code.Transcript
Optional drawer for reviewing the conversation, or
lang_id when you show detected language.Data Panel
Optional diagnoses and orders from structured data. Show ICD chips only when
type is ICD10.Feedback and Approve
Optional rating after review. Keep Approve / Save independent of feedback.
Map note sections to your chart
Session content returns note sections in thesummary[] array. Each section includes loinc_code, title, and content.
Use loinc_code as the stable join key when mapping Suki sections to your EHR or chart template. You can display your own EHR section labels in the your UI. Keep the LOINC code available for if you build a Dictation section later.
If a requested section has no generated text, that section is omitted from the response. Hide the corresponding section in your UI. Do not invent Ambient text.
For more information, see Note sections.
Retrieve optional transcript and structured data
Not every application needs every type of Ambient content.When to Use the Transcript
When to Use the Transcript
The transcript is optional. Use Get transcript when your application needs a transcript drawer for the clinician or
lang_id to show detected language.When to Use Structured Data
When to Use Structured Data
Structured data is optional. Use it when your application needs diagnoses and orders in a separate Data panel.For a typical single Start/Stop flow, use session structured data. If your application groups multiple ambient sessions into one note or loads data by encounter, use the corresponding note or encounter endpoint instead.
When Not to Retrieve
When Not to Retrieve
Do not call content or structured-data APIs while status is
running. Do not retrieve after skipped, failed, or aborted and present an empty chart as success.Choose the structured-data scope
Choose the structured-data endpoint based on how your application organizes the chart.One Recording Just Finished
One Recording Just Finished
Use Session structured data for diagnoses and orders from the ambient session you just ended. This is the default choice for a single Start/Stop flow.
The Note Spans Multiple Ambient Sessions
The Note Spans Multiple Ambient Sessions
Use Note structured data with
composition_id / note_id when diagnoses and orders should be cumulative across recordings in the same note.The Chart Is Keyed by Encounter
The Chart Is Keyed by Encounter
Use Encounter structured data when your product loads structured data by encounter scope.
Render diagnoses and codes
Each diagnosis includes acodes array. Treat codes as a flat list of objects with type, code, and description:
IMO and SNOMED entries with these three fields. Do not expect nested shapes such as codes.values. That is not the partner contract.
After the session reaches
completed, one structured-data call is enough. Codes do not appear later simply because the endpoint is called again.
See Diagnosis codes and Get ambient session structured data.
Example code: Load the note after completion
Call these APIs only after status iscompleted.
- TypeScript
- Python
The session content response uses
summary[] with loinc_code, title, and content. Use loinc_code as the join key when mapping sections to your template. See Note sections.Support multi-session and interoperable notes
If capture continues across products or multiple ambient sessions contribute to the same note, use note-level APIs instead of treating each session as an independent note.- Use note-level APIs with
note_id/composition_idto retrieve the latest shared content. - Use Note structured data when diagnoses and orders should be cumulative across recordings in the same note.
Implementation checklist
- Retrieve content only after status is
completed. - Do not retrieve generated content while status is
running. - Stop the retrieval flow for
skipped,failed, oraborted. - Map note sections using
loinc_code. Hide sections omitted because no generated text is available. - Retrieve the transcript only when your application needs it.
- Choose session, note, or encounter structured data based on your chart scope.
- Call the structured-data endpoint once after
completed. - Show an ICD code only when a diagnosis contains a code with
typeset toICD10. - Continue to show
diagnosis_notewhen ICD10 is missing. - Do not send HCC codes back into Provide visit context.
- Keep optional feedback independent from Approve / Save.
- Never present
skippedorfailedas a successful empty chart.