Overview
The v2.0.0 release of Suki.js includes significant improvements that enhance clinical documentation workflows and standardize healthcare integrations. This guide will walk you through the migration process step by step.Changes Snapshot
Thev2.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
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
Use the UI configuration options to control the visibility and functionality of various interface elements like buttons and editing features.Step 5: Update Note Submission Handling
The note submission payload now includes LOINC codes for better standardization.Before (v1.x)
JavaScript
After (v2.0)
JavaScript
Example Response Structure
JSON
Complete Migration Example
Here’s a complete example showing the migration from v1.x to v2.0:- JavaScript
- React
Breaking Changes Summary
The following breaking changes require immediate attention when migrating from v1.x to v2.0. Each change is designed to improve functionality, standardization, and developer experience.Provider Information
The provider’s full name. This field is now required during SDK initialization to enable automatic provider onboarding to the Suki system.Migration Impact: Previously optional, now required in
InitializationConfig.The unique identifier for the provider’s organization. This field is now required during SDK initialization.Migration Impact: Previously optional, now required in
InitializationConfig. This enables seamless provider registration without manual onboarding steps.AmbientOptions Structure
An array of section objects that define which note sections to generate. Each section is identified by a LOINC code for improved standardization and interoperability with healthcare systems.v1.x Deprecated Approach:v2.0 Required Approach:Migration Impact: You must replace all
TypeScript
TypeScript
noteTypeIds references with LOINC-based section configurations. Refer to the Note Sections documentation for complete LOINC code mappings.Theme Configuration
Renamed from
primaryColor. Defines the primary brand color for the SDK interface.Migration Impact: Update all primaryColor references to primary in your theme configuration.New property. Defines the main background color for the SDK interface.Migration Impact: This is a new optional property that enhances UI customization capabilities.
New property. Defines the secondary background color for panels and cards within the SDK interface.Migration Impact: This is a new optional property that provides more granular control over the visual hierarchy.
New property. Defines the primary text color for the SDK interface.Migration Impact: This is a new optional property that ensures text readability across different background colors.
New property. Defines the color used for warning messages and alerts.Migration Impact: This is a new optional property that improves the visibility of important notifications.
Mount Configuration
Configuration options for ambient mode functionality. This field is now required when mounting the SDK.Migration Impact: Previously optional in v1.x, now required in v2.0. You must provide
ambientOptions with at least one section defined when calling mount().Example:TypeScript
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