Beispiel #1
0
 public void DoCasesNotAcknowledgedSearch()
 {
     YellowstonePathology.YpiConnect.Contract.Search.Search search = new YpiConnect.Contract.Search.Search();
     search.SearchType        = YellowstonePathology.YpiConnect.Contract.Search.SearchTypeEnum.NotAcknowledged;
     search.WebServiceAccount = YellowstonePathology.YpiConnect.Contract.Identity.ApplicationIdentity.Instance.WebServiceAccount;
     this.m_SearchResults     = this.m_SearchServiceProxy.ExecuteClientSearch(search);
     this.NotifyPropertyChanged("");
 }
Beispiel #2
0
 public void DoClientLastNameSearch(string lastName)
 {
     YellowstonePathology.YpiConnect.Contract.Search.Search search = new YellowstonePathology.YpiConnect.Contract.Search.Search();
     search.SearchType       = YellowstonePathology.YpiConnect.Contract.Search.SearchTypeEnum.PatientLastNameSearch;
     search.SearchParameters = new List <object>();
     search.SearchParameters.Add(lastName);
     search.WebServiceAccount = YellowstonePathology.YpiConnect.Contract.Identity.ApplicationIdentity.Instance.WebServiceAccount;
     this.m_SearchResults     = this.m_SearchServiceProxy.ExecuteClientSearch(search);
     this.NotifyPropertyChanged("");
 }
Beispiel #3
0
 public void DoClientRecentCaseSearch()
 {
     YellowstonePathology.YpiConnect.Contract.Search.Search search = new YellowstonePathology.YpiConnect.Contract.Search.Search();
     search.SearchType       = YellowstonePathology.YpiConnect.Contract.Search.SearchTypeEnum.RecentCases;
     search.SearchParameters = new List <object>();
     search.SearchParameters.Add(DateTime.Today.AddDays(-30));
     search.WebServiceAccount = YellowstonePathology.YpiConnect.Contract.Identity.ApplicationIdentity.Instance.WebServiceAccount;
     this.m_SearchResults     = this.m_SearchServiceProxy.ExecuteClientSearch(search);
     this.NotifyPropertyChanged("");
 }
Beispiel #4
0
 public void DoPathologistSSNSearch(string ssn)
 {
     YellowstonePathology.YpiConnect.Contract.Search.Search search = new YellowstonePathology.YpiConnect.Contract.Search.Search();
     search.SearchType       = YellowstonePathology.YpiConnect.Contract.Search.SearchTypeEnum.SocialSecurityNumber;
     search.SearchParameters = new List <object>();
     search.SearchParameters.Add(ssn);
     search.SearchParameters.Add(YellowstonePathology.YpiConnect.Contract.Identity.ApplicationIdentity.Instance.WebServiceAccount.SystemUserId);
     search.WebServiceAccount = YellowstonePathology.YpiConnect.Contract.Identity.ApplicationIdentity.Instance.WebServiceAccount;
     this.m_SearchResults     = this.m_SearchServiceProxy.ExecutePathologistSearch(search);
     this.NotifyPropertyChanged("");
 }
Beispiel #5
0
 public void DoPathologistDateOfBirthSearch(DateTime dateOfBirth)
 {
     YellowstonePathology.YpiConnect.Contract.Search.Search search = new YellowstonePathology.YpiConnect.Contract.Search.Search();
     search.SearchType       = YellowstonePathology.YpiConnect.Contract.Search.SearchTypeEnum.DateOfBirth;
     search.SearchParameters = new List <object>();
     search.SearchParameters.Add(dateOfBirth);
     search.SearchParameters.Add(YellowstonePathology.YpiConnect.Contract.Identity.ApplicationIdentity.Instance.WebServiceAccount.SystemUserId);
     search.WebServiceAccount = YellowstonePathology.YpiConnect.Contract.Identity.ApplicationIdentity.Instance.WebServiceAccount;
     this.m_SearchResults     = this.m_SearchServiceProxy.ExecutePathologistSearch(search);
     this.NotifyPropertyChanged("");
 }
Beispiel #6
0
        public Contract.Search.SearchResultCollection ExecuteClientSearch(Contract.Search.Search search)
        {
            YellowstonePathology.YpiConnect.Service.SearchGateway gateway = new YellowstonePathology.YpiConnect.Service.SearchGateway();
            YellowstonePathology.YpiConnect.Contract.Search.SearchResultCollection searchResults = null;

            switch (search.SearchType)
            {
            case YellowstonePathology.YpiConnect.Contract.Search.SearchTypeEnum.PatientLastNameSearch:
                searchResults = gateway.GetClientCasesByPatientLastName(search);
                break;

            case YellowstonePathology.YpiConnect.Contract.Search.SearchTypeEnum.PatientLastAndFirstNameSearch:
                searchResults = gateway.GetClientCasesByPatientLastNameAndFirstName(search);
                break;

            case YellowstonePathology.YpiConnect.Contract.Search.SearchTypeEnum.RecentCases:
                searchResults = gateway.GetClientRecentCases(search);
                break;

            case YellowstonePathology.YpiConnect.Contract.Search.SearchTypeEnum.NotDownloaded:                     //Not Downloaded is Depricated SH 5/17/2010
            case YellowstonePathology.YpiConnect.Contract.Search.SearchTypeEnum.NotAcknowledged:
                searchResults = gateway.GetClientCasesNotAcknowledged(search);
                break;

            case YellowstonePathology.YpiConnect.Contract.Search.SearchTypeEnum.DateOfBirth:
                searchResults = gateway.GetClientCasesByPBirthDate(search);
                break;

            case YellowstonePathology.YpiConnect.Contract.Search.SearchTypeEnum.SocialSecurityNumber:
                searchResults = gateway.GetClientCasesByPSSN(search);
                break;
            }

            if (searchResults == null)
            {
                searchResults = new Contract.Search.SearchResultCollection();
            }
            return(searchResults);
        }
Beispiel #7
0
        public Contract.Search.SearchResultCollection ExecutePathologistSearch(Contract.Search.Search search)
        {
            YellowstonePathology.YpiConnect.Service.SearchGateway gateway = new YellowstonePathology.YpiConnect.Service.SearchGateway();
            YellowstonePathology.YpiConnect.Contract.Search.SearchResultCollection searchResults = null;

            switch (search.SearchType)
            {
            case YellowstonePathology.YpiConnect.Contract.Search.SearchTypeEnum.PatientLastNameSearch:
                searchResults = gateway.GetPathologistCasesByPatientLastName(search);
                break;

            case YellowstonePathology.YpiConnect.Contract.Search.SearchTypeEnum.PatientLastAndFirstNameSearch:
                searchResults = gateway.GetPathologistCasesByPatientLastNameAndFirstName(search);
                break;

            case YellowstonePathology.YpiConnect.Contract.Search.SearchTypeEnum.RecentCases:
                searchResults = gateway.GetPathologistRecentCases(search);
                break;

            case YellowstonePathology.YpiConnect.Contract.Search.SearchTypeEnum.DateOfBirth:
                searchResults = gateway.GetPathologistCasesByPBirthDate(search);
                break;

            case YellowstonePathology.YpiConnect.Contract.Search.SearchTypeEnum.SocialSecurityNumber:
                searchResults = gateway.GetPathologistCasesByPSSN(search);
                break;

            case YellowstonePathology.YpiConnect.Contract.Search.SearchTypeEnum.RecentCasesForFacilityId:
                searchResults = gateway.GetRecentProfessionalCasesByFacilityId(search);
                break;
            }

            if (searchResults == null)
            {
                searchResults = new Contract.Search.SearchResultCollection();
            }
            return(searchResults);
        }