<Omniscribe> component.
Initial setup
1. Installation
2. Import in your application
Basic React component
Implementation with hooks
Props
Required
Report generation (required together)
Optional
Callbacks
Retrieving the last report
ThesetGetLastReport callback receives an async function that you can store and call later:
Patient data updates
Use React state to dynamically update patient context. The SDK automatically re-initializes whenpatientid or userid change.
Patient data structure
extraData fields
Full example
State management with context
For applications that need to share SofIA state across multiple components:Complete example
For a complete implementation with React and TypeScript, check our examples repository: View complete React example The example includes:- Complete setup with Vite + React 19 + TypeScript
- Development console with real-time controls
- Template and patient data editors with JSON validation
- Dynamic User ID, Patient ID, and Template ID switching
Best practices
Performance
- Use
useCallbackfor stable callbacks (handleReport,setGetLastReport) - Implement lazy loading for components on non-critical routes
State
- Pass
setIsOpendirectly — the SDK controls visibility - Changing
useridorpatientidautomatically remounts the SDK