private void Initialize()
#endif
        {
#if ESAPI_13
            _esapiApp = Application.CreateApplication(userId, password);
#elif ESAPI_15
            _esapiApp = Application.CreateApplication();
#endif
            _search         = new PatientSummarySearch(_esapiApp.PatientSummaries, MaxSearchResults);
            _dataRepository = new DataRepository(GetDataPath());
        }
 private Task InitializeSearchAsync() =>
 RunAsync(app => _search = new PatientSummarySearch(app.PatientSummaries, 10));