private void GetConceptByCodeSystemCodeCompleted(object sender, ProxyEventArgs e) { if (e.Exception == null) { var results = e.LoadResult <TerminologyConcept> (); if (results != null) { SearchResults = results; } else { _userDialogService .ShowDialog( "Unable to find a concept with a matching Code System Code", "No results found", UserDialogServiceOptions.Ok); } } else { _userDialogService.ShowDialog( "An error occurred when retrieving the Terminology Concept. Error: " + e.Exception.Message, "An error has occurred", UserDialogServiceOptions.Ok); } }
private void GetConceptByCodeSystemCodeCompleted(object sender, ProxyEventArgs e) { if (e.Exception == null) { var result = e.LoadResult <TerminologyConcept> (); if (result != null) { ChangeSearchState( SearchState.AdvancedSearchFoundState, new PagedCollectionView(MapTerminolgyConceptsToSearchResult(new List <TerminologyConcept> { result })), 1, 100, 1); } else { ChangeSearchState(SearchState.AdvancedSearchNotFoundState, null); } } else { _userDialogService.ShowDialog(e.Exception.Message, "Search Failed", UserDialogServiceOptions.Ok); } }
private void GetVocabularyListCompleted(object sender, ProxyEventArgs e) { if (e.Exception == null) { var list = e.LoadResult <ObservableCollection <TerminologyVocabulary> > (); var snomed = list.Where(n => n.BusinessCode == "SNOMED").FirstOrDefault(); Namespaces = list; SelectedNamespace = snomed; } else { _userDialogService .ShowDialog(e.Exception.Message, "Could not retrieve the Vocabulary List", UserDialogServiceOptions.Ok); } }
private void FindConceptsWithNameMatchingCompleted(object sender, ProxyEventArgs e) { if (e.Exception == null) { var result = e.LoadResult <ObservableCollection <TerminologyConcept> > (); if (result != null) { if (result.Count > 0) { ChangeSearchState( SearchState.QuickSearchFoundState, new PagedCollectionView(MapTerminolgyConceptsToSearchResult(result)), 1, 100, result.Count); } else { ChangeSearchState( SearchState.QuickSearchNotFoundState, new PagedCollectionView(MapTerminolgyConceptsToSearchResult(result)), 1, 100, result.Count); } } else { ChangeSearchState(SearchState.QuickSearchNotFoundState, null); } } else { _userDialogService.ShowDialog(e.Exception.Message, "Search Failed", UserDialogServiceOptions.Ok); } }
private void GetVocabularyListCompleted(object sender, ProxyEventArgs e) { if (e.Exception == null) { var results = e.LoadResult <ObservableCollection <TerminologyVocabulary> > (); if (results != null) { _namspace = results.FirstOrDefault(tv => tv.BusinessCode == _namespaceToUse); if (_namspace == null) { throw new Exception("Dts Vocabulary not found."); } (ManualSearchCommand as DelegateCommand).RaiseCanExecuteChanged(); } } else { _userDialogService.ShowDialog( "An error occurred when retrieving the Terminology Vocabularies. Error: " + e.Exception.Message, "An error has occurred", UserDialogServiceOptions.Ok); } }
private void GetVocabularyListCompleted( object sender, ProxyEventArgs e ) { if ( e.Exception == null ) { var results = e.LoadResult<ObservableCollection<TerminologyVocabulary>> (); if ( results != null ) { _namspace = results.FirstOrDefault ( tv => tv.BusinessCode == _namespaceToUse ); if ( _namspace == null ) { throw new Exception ( "Dts Vocabulary not found." ); } ( ManualSearchCommand as DelegateCommand ).RaiseCanExecuteChanged (); } } else { _userDialogService.ShowDialog ( "An error occurred when retrieving the Terminology Vocabularies. Error: " + e.Exception.Message, "An error has occurred", UserDialogServiceOptions.Ok ); } }
private void GetConceptByCodeSystemCodeCompleted( object sender, ProxyEventArgs e ) { if ( e.Exception == null ) { var result = e.LoadResult<TerminologyConcept> (); if ( result != null ) { ChangeSearchState ( SearchState.AdvancedSearchFoundState, new PagedCollectionView ( MapTerminolgyConceptsToSearchResult ( new List<TerminologyConcept> { result } ) ), 1, 100, 1 ); } else { ChangeSearchState ( SearchState.AdvancedSearchNotFoundState, null ); } } else { _userDialogService.ShowDialog ( e.Exception.Message, "Search Failed", UserDialogServiceOptions.Ok ); } }
private void FindConceptsWithNameMatchingCompleted( object sender, ProxyEventArgs e ) { if ( e.Exception == null ) { var result = e.LoadResult<ObservableCollection<TerminologyConcept>> (); if ( result != null ) { if ( result.Count > 0 ) { ChangeSearchState ( SearchState.QuickSearchFoundState, new PagedCollectionView ( MapTerminolgyConceptsToSearchResult ( result ) ), 1, 100, result.Count ); } else { ChangeSearchState ( SearchState.QuickSearchNotFoundState, new PagedCollectionView ( MapTerminolgyConceptsToSearchResult ( result ) ), 1, 100, result.Count ); } } else { ChangeSearchState ( SearchState.QuickSearchNotFoundState, null ); } } else { _userDialogService.ShowDialog ( e.Exception.Message, "Search Failed", UserDialogServiceOptions.Ok ); } }
private void GetVocabularyListCompleted( object sender, ProxyEventArgs e ) { if ( e.Exception == null ) { var list = e.LoadResult<ObservableCollection<TerminologyVocabulary>> (); var snomed = list.Where ( n => n.BusinessCode == "SNOMED" ).FirstOrDefault (); Namespaces = list; SelectedNamespace = snomed; } else { _userDialogService .ShowDialog ( e.Exception.Message, "Could not retrieve the Vocabulary List", UserDialogServiceOptions.Ok ); } }
private void FindConceptsWithNameMatchingCompleted( object sender, ProxyEventArgs e ) { SearchResults = e.LoadResult<ObservableCollection<TerminologyConcept>> (); }
private void FindConceptsWithNameMatchingCompleted(object sender, ProxyEventArgs e) { SearchResults = e.LoadResult <ObservableCollection <TerminologyConcept> > (); }