Exemplo n.º 1
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;
        }
Exemplo n.º 2
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;
        }
Exemplo n.º 3
0
 private YellowstonePathology.YpiConnect.Contract.Search.SearchResultCollection BuildSearchResultCollection(SqlCommand cmd)
 {
     YellowstonePathology.YpiConnect.Contract.Search.SearchResultCollection searchResultCollection = new Contract.Search.SearchResultCollection();
     using (SqlConnection cn = new SqlConnection(YpiConnect.Service.Properties.Settings.Default.ServerSqlConnectionString))
     {
         cn.Open();
         cmd.Connection = cn;
         using (SqlDataReader dr = cmd.ExecuteReader())
         {
             while (dr.Read())
             {
                 YellowstonePathology.Business.Domain.Persistence.DataReaderPropertyWriter propertyWriter = new Business.Domain.Persistence.DataReaderPropertyWriter(dr);
                 YellowstonePathology.YpiConnect.Contract.Search.SearchResult searchResult = new Contract.Search.SearchResult();
                 searchResult.WriteProperties(propertyWriter);
                 searchResultCollection.Add(searchResult);
             }
         }
     }
     return(searchResultCollection);
 }
Exemplo n.º 4
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);
        }
Exemplo n.º 5
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);
        }
Exemplo n.º 6
0
 private YellowstonePathology.YpiConnect.Contract.Search.SearchResultCollection BuildSearchResultCollection(SqlCommand cmd)
 {
     YellowstonePathology.YpiConnect.Contract.Search.SearchResultCollection searchResultCollection = new Contract.Search.SearchResultCollection();
     using (SqlConnection cn = new SqlConnection(YpiConnect.Service.Properties.Settings.Default.ServerSqlConnectionString))
     {
         cn.Open();
         cmd.Connection = cn;
         using (SqlDataReader dr = cmd.ExecuteReader())
         {
             while (dr.Read())
             {
                 YellowstonePathology.Business.Domain.Persistence.DataReaderPropertyWriter propertyWriter = new Business.Domain.Persistence.DataReaderPropertyWriter(dr);
                 YellowstonePathology.YpiConnect.Contract.Search.SearchResult searchResult = new Contract.Search.SearchResult();
                 searchResult.WriteProperties(propertyWriter);
                 searchResultCollection.Add(searchResult);
             }
         }
     }
     return searchResultCollection;
 }