apikey, userid, and patientid. The component validates their presence and type before establishing the connection. baseurl is only required for some keys — see Connection and authentication below.
Quick Reference
All SofIA SDK properties in a single table. For detailed documentation, see Connection and authentication and Optional Properties.For migration guidance on deprecated properties, see the Migration Guide.
Connection and authentication
Theapikey is the only connection property you always need. For newer keys, the SDK selects the endpoint automatically — so you do not pass baseurl.
Does my key need
baseurl? Newer keys don’t — the SDK resolves the endpoint for you, so you can omit baseurl. Other keys do — keep passing the baseurl value Omniloy assigned you. If you’re unsure, Omniloy will tell you which applies to your key.Session Identifiers
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.
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 the resolved
baseurluses the secure HTTPS protocol
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 a newer key,apikey, userid, and patientid are all you need:
baseurl? Add the one Omniloy assigned you:
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 (only needed for keys that require it) -
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