This article details the process of integrating your application with Epic using Vidyo SDK. This integration enables launching video calls directly from the Epic workflow. A critical component is the proper handling of Epic's context data (extData) to ensure seamless data flow.
Prerequisites
Connector SDK integrated into your application.
Access to an Epic environment configured on your VidyoPortal
Integration Steps
Obtain Epic data from VidyoPortal
At this step you acquire the room key and display name by making an https request to the VidyoPortal, passing it the Epic encrypted data.
roomKey: The unique identifier for the video call.
displayName: The name of the user joining the call.
extData: Epic's context data.
Set Epic context into Connector SDK
Before connecting to the call, use the setAdvancedOptions() API of the Video Conferencing SDK to provide the extData. This step is essential for the Epic integration, as it passes context about the patient into the call.
NSString *advancedOptions = [NSString stringWithFormat:@"{ \"extDataType\": \"1\", \"extData\": \"%@\" }", [encryptedData text]]; // Use original Epic encryptedData
[vc setAdvancedOptions:[advancedOptions UTF8String]];