CreateOutboundReferral Class
Use this class to create an outbound referral record.
This Apex class is available to use with the Provider Management and Provider Search features enabled in your Salesforce org.
The CreateOutboundReferral class uses the default call(String action, Map<String, Object> args) method of the Callable interface. For more information on the Callable interface and its methods, see Callable Interface.
Specify the implemented CreateOutboundReferral class name in the CreateReferrals Remote Actions section of the Create Outbound Referral OmniScript page. A Remote Action calls the specified Apex class and its method to create the outbound referral records. This Apex class can create a maximum of up to three outbound referral records.
This screenshot shows how the Apex class name and its method are specified in Omniscript Remote Action:

The CreateOutboundReferral remote action accepts a JSON object with the following format as an input:
Here’s an example of the JSON object that the CreateOutboundReferral Apex class receives as input.
Here’s an example of the JSON object that the CreateOutboundReferral Apex class response returns, which contain an array of referral IDs.