Quick Reference
All SofIA SDK properties in a single table. For detailed documentation, see Required Properties and Optional Properties.| Property | Type | Default | Status | Description |
|---|---|---|---|---|
| baseurl | string | — | Required | REST API endpoint URL (HTTPS) |
| wssurl | string | — | Required | WebSocket URL for real-time streaming (WSS) |
| apikey | string | — | Required | Authentication key provided by Omniloy |
| userid | string | — | Required | Unique identifier of the healthcare professional |
| patientid | string | — | Required | Unique identifier of the patient for the session |
| template | object | — | Optional | JSON Schema Draft-07 defining the clinical data structure. Enables report generation when used with templateid |
| templateid | string | — | Optional | Integrator-defined identifier for the template. Required with template to enable report generation |
| isopen | boolean | true | Optional | Component visibility state (open/closed) |
| handleReport | function | — | Optional | Callback that receives the generated clinical report |
| setIsOpen | function | — | Optional | Callback for visibility change events |
| setGetLastReport | function | — | Optional | Callback that receives a function to retrieve the last report |
| patientdata | string | object | — | Optional | Contextual patient information for enriched processing |
| language | string | "es" | Optional | Interface language ("es" or "en") |
| debug | boolean | false | Optional | Enables detailed console logging |
object | — | Deprecated | Use template instead | |
boolean | — | Deprecated | Auto-detected — omit template/templateid for chat-only | |
boolean | — | Deprecated | Do not mount the component instead | |
boolean | — | Deprecated | Omit template/templateid instead | |
string | — | Deprecated | Title is always “SofIA” | |
boolean | — | Deprecated | Not available in Chat-based UI | |
array | — | Deprecated | No effect | |
function | — | Deprecated | Not available in Chat-based UI | |
function | — | Deprecated | Not available in Chat-based UI | |
function | — | Deprecated | No effect |
For migration guidance on deprecated properties, see the Migration Guide.
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 |
userid best practices
userid best practices
- Use persistent, unique identifiers
- Avoid personally identifiable information
- Maintain consistency across sessions
- Consider using professional license numbers or internal IDs
patientid important notes
patientid important notes
- 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
Report Generation
These properties enable report generation. When bothtemplate and templateid are provided, the generate button becomes available in the interface. Without them, SofIA operates in chat-only mode automatically.
| Property | Type | Required | Description |
|---|---|---|---|
| template | object | Optional | Complete JSON Schema Draft-07 schema that defines the clinical data structure to generate. Required together with templateid to enable report generation. Pass as a JSON string in HTML attributes or as a JavaScript object programmatically |
| templateid | string | Optional | Integrator-defined identifier for the template. Each unique template should have its own templateid. Required together with template to enable report generation |
template (Optional — required for report generation)
JSON Schema defining the structure for clinical data capture. When provided together with templateid, enables the report generation feature and shows the generate button in the interface.
- Must be valid JSON Schema Draft-07
- Must include
$schemaproperty - Should define required fields appropriately
- Must not exceed 100KB in size
templateid (Optional — required for report generation)
Integrator-defined identifier that you assign to each template. Must be provided together with template to enable report generation.
- You choose the
templateidvalue — it is not provided by Omniloy - Each unique template must have its own
templateid - SofIA uses this ID to associate configurations and report history on the server
- If you reuse the same
templateidwith a differenttemplateschema, the previous configuration will be overwritten
"soap-general-v1"— SOAP notes for general practice"emergency-triage-v2"— emergency department triage"cardiology-consult-v1"— cardiology consultations"my-clinic-intake-form"— custom intake form for your clinic
Automatic Validation
The SofIA SDK component performs automatic validation of the required configuration properties:- Type verification: Confirms that each property has the correct type
- URL validation: Verifies that
baseurlandwssurluse secure protocols (HTTPS/WSS)
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 (chat-only mode)
With report generation
To enable report generation, add bothtemplate and templateid:
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 unique per template and consistent across sessions (if using report generation) -
templateis valid JSON Schema Draft-07 (if using report generation) - All required properties are present
- No properties exceed size limits