true
: Enables multilingual processing for this session.false
: Defaults to English.SukiAmbientCoreError
.setSessionContext
method allows setting patient, provider context and LOINC codes for section generation and (newly added) diagnosis information for an already created session.
All such data should instead be passed using the new setSessionContext
method.
context
: A dictionary of type [String: AnyHashable]
that may contain the following keys:
SukiAmbientConstant.kPatientInfo
: Dictionary containing:
SukiAmbientConstant.kBirthdate
: DateSukiAmbientConstant.kGender
: StringSukiAmbientConstant.kProviderContext
: Dictionary containing:
SukiAmbientConstant.kSpeciality
: StringSukiAmbientConstant.kSections
: Array of dictionaries: Each with SukiAmbientConstant.kCode
and SukiAmbientConstant.kCodeType
(e.g., “loinc”)SukiAmbientConstant.kDiagnosisInfo
: An Array of Dictionaries used to pass structured diagnosis context for the session.
SukiAmbientConstant.kDiagnosisNote
: String (Optional note related to the diagnosis)SukiAmbientConstant.kCodes
: [Dictionary] (Array of dictionaries) — must contain at least one valid diagnosis code.
SukiAmbientConstant.kCodeType
: String (e.g., “ICD-10”, “IMO”, “SNOMED”) (Required)SukiAmbientConstant.kCode
: String (Required)SukiAmbientConstant.kCodeDescription
: String (Optional)diagnosisNote
is optional.codeType
and code
.codeDescription
is optional but recommended for clarity.setSessionContext
function now internally uses a PATCH API that supports partial updates.SukiAmbientCoreError
.appIsNotActive
errors with user notifications if needed.getStructuredData(for:onCompletion:)
method retrieves structured output data for a given recording ID. This includes structured diagnoses and other generated entities from the session.
SukiAmbientCoreError
in all operations to provide robust error feedback.