Configuration Properties
| Property | Type | Description |
|---|---|---|
| baseurl | string | URL of the SofIA REST API endpoint. Must use HTTPS protocol (e.g.: https://api.example.com/v1) |
| wssurl | string | WebSocket URL for real-time streaming. Must use WSS protocol (e.g.: wss://ws.example.com) |
| apikey | string | Authentication key provided by Omniloy for access to SofIA services |
Session Identifiers
| Property | Type | Description |
|---|---|---|
| userid | string | Unique identifier of the healthcare professional in the EHR/HIS system |
| patientid | string | Unique identifier of the patient for the current session |
Schema Configuration
| Property | Type | Description |
|---|---|---|
| toolsargs | string (JSON) | Complete JSON Schema Draft-07 schema that defines the clinical data structure to generate |
| templateid | string | Unique identifier for the clinical template being used (mandatory if isonlychat is not “true”) |
Automatic Validation
The SofIA SDK component performs automatic validation of all required properties:- Type verification: Confirms that each property has the correct type
- URL validation: Verifies that
baseurlandwssurluse secure protocols (HTTPS/WSS) - JSON schema: Validates that
toolsargscontains a valid JSON Schema
Validation Error Messages
When validation fails, the SofIA SDK will display detailed error messages in the browser console and prevent the component from mounting. This ensures that integration issues are identified early in the development process. Example validation error output:- Property name: Identifies which property failed validation
- Description: Explains the purpose of each property
- Current value: Shows the invalid value that was provided (when applicable)
- Documentation link: Provides direct access to this reference guide
- The SofIA SDK component will not establish connections
- No medical data processing will occur
- The component remains in a safe, non-functional state
- Error messages are logged to help developers identify and resolve issues quickly
Minimal Example
userid (Required)
Unique identifier for the healthcare professional using the system.
- Use persistent, unique identifiers
- Avoid personally identifiable information
- Maintain consistency across sessions
- Consider using professional license numbers or internal IDs
patientid (Required)
Unique identifier for the patient in the current session.
- Must be unique within your system
- Should not contain direct personal identifiers
- Can be changed dynamically for different consultations
- Must comply with data protection regulations
Schema Configuration
toolsargs (Required)
JSON Schema defining the structure for clinical data capture.
- Must be valid JSON Schema Draft-07
- Must include
$schemaproperty - Should define required fields appropriately
- Must not exceed 100KB in size
templateid (Required)
Unique identifier for the clinical template that defines the specific workflow and data structure for the consultation.
- Must be a non-empty string
- Should correspond to a valid template configured in your Omniloy account
- Templates define the clinical workflow and output format
- Different templates support different clinical specialties and documentation formats
- SOAP Template:
"soap-general-v1"for structured SOAP note generation - Emergency Template:
"emergency-triage-v2"for emergency department workflows - Specialty Templates:
"cardiology-consult-v1","radiology-report-v1", etc. - Custom Templates: User-defined templates for specific organizational needs
- This property is mandatory when
isonlychatis not set to"true" - The template ID must be configured in your Omniloy account before use
- Templates determine the available fields in the generated reports
- Contact support@omniloy.com to configure custom templates
Complete Configuration Example
Dynamic Configuration
Updating properties programmatically
Framework-specific configuration
ReactValidation
Property validation checklist
-
apikeyis valid and not expired -
baseurluses HTTPS protocol -
wssurluses WSS protocol -
useridis unique and consistent -
patientidis unique for the consultation -
templateidis configured in your Omniloy account before use -
toolsargsis valid JSON Schema Draft-07 - All required properties are present
- No properties exceed size limits