Overview of Changes
The v2.0.0 release introduces several key improvements:- Enhanced Provider Onboarding: Automatic provider registration with required provider information
- LOINC Standardization: Standardized clinical note sections using LOINC codes
- Expanded Theme Customization: More comprehensive UI styling options
- Improved Section Editing: New dictation and copy capabilities
- Better Error Handling: Enhanced validation and error reporting
This is a breaking change release. Please review all changes carefully before upgrading.
Step 1: Update Package Version
Begin by updating to the latest version of the Suki SDK:- JavaScript
- React
Step 2: Update Provider Initialization
The initialization process now requires additional provider information for automatic onboarding.New Required Fields
providerName (Required)
providerName (Required)
The full name of the healthcare provider using the SDK, including first name, middle name (if applicable), and last name separated by spaces.This information enables automatic provider onboarding in the Suki system without manual registration.Example:
"Dr. Jane Marie Smith"
providerOrgId (Required)
providerOrgId (Required)
The unique identifier of the healthcare organization to which the provider belongs in your system.This ID facilitates automatic organizational mapping and ensures proper data segregation in the Suki platform. This should match the organization ID in your system’s database for consistency across platforms.Example:
"northwell-1234"
or "memorial-hermann-5678"
providerSpecialty (Optional)
providerSpecialty (Optional)
The medical specialty of the provider, which helps tailor the SDK’s functionality to specific clinical contexts.If omitted, the system defaults to
"FAMILY_MEDICINE"
as the provider specialty. This information improves the relevance of automated suggestions and templates during onboarding.Refer to the Specialties documentation for a comprehensive list of supported specialties.Step 3: Update Ambient Options Configuration
The ambient options structure has been completely redesigned to use standardized LOINC codes instead of custom note type IDs.The
prefill.noteTypeIds
approach is still supported but deprecated and will be removed in future versions. We strongly recommend migrating to the new section-based configuration using LOINC codes.Refer to the Note Sections documentation for a complete list of supported sections and corresponding LOINC codes.Step 4: Update UI Options Configuration
TheuiOptions
property now provides more granular control over the SDK’s user interface elements.
UI Options Reference
Field | Description | Default | Type | Required |
---|---|---|---|---|
showCloseButton | Controls visibility of the close button in the header | false | Boolean | No |
showCreateEmptyNoteButton | Controls visibility of the “Create Empty Note” button on the patient profile | false | Boolean | No |
showStartAmbientButton | Controls visibility of the “Start Ambient” button for ambient mode initiation | true | Boolean | No |
sectionEditing.enableDictation | Controls the microphone icon for voice input (activates voice-to-text feature) | false | Boolean | No |
sectionEditing.enableCopy | Controls the copy icon for text copying functionality | false | Boolean | No |
You should only provide explicit values when you need to enable specific features. For example:
Step 5: Update Note Submission Handling
The note submission payload now includes LOINC codes for better standardization.Before (v1.x)
After (v2.0)
Example Response Structure
Complete Migration Example
Here’s a complete example showing the migration from v1.x to v2.0:- JavaScript
- React
Breaking Changes Summary
Required Provider Information
Required Provider Information
providerName
andproviderOrgId
are now required fields in initialization- These fields enable automatic provider onboarding to the Suki system without manual registration
AmbientOptions Structure
AmbientOptions Structure
- Complete restructuring from
prefill.noteTypeIds
to a section-based configuration using LOINC codes - This change improves standardization and interoperability with healthcare systems
- The old approach is deprecated but still supported temporarily
Theme Property Names
Theme Property Names
primaryColor
renamed toprimary
- Added new theme properties:
background
,secondaryBackground
,foreground
, andwarning
- Enables more comprehensive UI customization
Required Mount Options
Required Mount Options
ambientOptions
is now required when mounting the SDK (was optional in v1.x)- Ensures proper configuration of ambient mode capabilities
Common Migration Errors
Initialization Errors
Initialization Errors
missing-partner-details
: Provider information is incompleteno-partner-token
: Authentication token is missingno-init
: SDK not properly initialized
Ambient Mode Errors
Ambient Mode Errors
no-ambient
: Ambient mode not availableambient-in-progress
: Another ambient session is activealready-started
: Ambient session already running
LOINC Code Errors
LOINC Code Errors
unsupported-loinc-codes
: One or more LOINC codes are not supportedno-supported-loinc-codes
: No valid LOINC codes provided
Validation Checklist
After migration, verify the following:- All required provider information is supplied in initialization
- AmbientOptions uses the new section-based configuration with LOINC codes
- Theme configuration uses the new property names
- Section editing features are configured as needed
- All UI options are properly configured
- Note submission handlers account for new LOINC code fields