Setup a Service Client

To get started, we need to setup a service client for the Event library. If you are not familiar with how Recuro Health uses service clients, you can learn more here.

Configuration

Using the example below, swap the placeholder value for SubscriptionKey with the Subscription Key that was provided to you.

using WellViaSDK.Core;
using WellViaSDK.Clinical;

// Variables
var config; // Created in earlier tutorial
var creds; // Created in earlier tutorial

var clnClient = new WellViaClinicalServiceClient(config, creds);

Our new service client has been assigned to a variable called clnClient. You will see this variable referenced throughout the rest of the Clinical library guide.