コード例 #1
0
 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);
     }
 }
コード例 #2
0
ファイル: DTSSearchViewModel.cs プロジェクト: girish66/REM
        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);
            }
        }
コード例 #3
0
        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);
            }
        }
コード例 #4
0
ファイル: DTSSearchViewModel.cs プロジェクト: girish66/REM
        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);
            }
        }
コード例 #5
0
ファイル: DTSSearchViewModel.cs プロジェクト: girish66/REM
 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);
     }
 }
コード例 #6
0
ファイル: DTSSearchViewModel.cs プロジェクト: divyang4481/REM
 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 );
     }
 }
コード例 #7
0
ファイル: DTSSearchViewModel.cs プロジェクト: divyang4481/REM
        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 );
            }
        }
コード例 #8
0
ファイル: DTSSearchViewModel.cs プロジェクト: divyang4481/REM
        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 );
            }
        }
コード例 #9
0
        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 );
            }
        }
コード例 #10
0
 private void FindConceptsWithNameMatchingCompleted( object sender, ProxyEventArgs e )
 {
     SearchResults = e.LoadResult<ObservableCollection<TerminologyConcept>> ();
 }
コード例 #11
0
 private void FindConceptsWithNameMatchingCompleted(object sender, ProxyEventArgs e)
 {
     SearchResults = e.LoadResult <ObservableCollection <TerminologyConcept> > ();
 }