SessionContext type
Below is the type definition for theSessionContext type. You provide this context using the setSessionContext method to help Suki’s AI generate more accurate and meaningful clinical notes.
Patient identity and name
- An empty
nameobject is dropped and is not sent. - Name values are passed through as provided. The SDK does not force normalization.
- Web SDK handoff: If you capture audio in Headless but the clinician reviews the note in the Web SDK, send
patient_idand structurednamewithsetSessionContext. Suki uses those fields to fill in the patient header in the Web SDK. Refer to Seed patient context for Web SDK handoff.
setSessionContext return type
setSessionContext returns Promise<void>. On success the promise resolves with no value. On failure it throws a ContextUpdateFailed error. Refer to Error handling.