public ClientBillingFacilityCollection()
        {
            NeogenomicsIrvine  neogenomicsIrvine  = new NeogenomicsIrvine();
            NeogenomicsFlorida neogenomicsFlorida = new NeogenomicsFlorida();

            YellowstonePathologyInstituteBillings ypii = new YellowstonePathologyInstituteBillings();

            YellowstonePathology.Business.Client.Model.ClientGroupClientCollection clientGroupStVincent  = YellowstonePathology.Business.Gateway.PhysicianClientGateway.GetClientGroupClientCollectionByClientGroupId(1);
            YellowstonePathology.Business.Client.Model.ClientGroupClientCollection clientGroupAllClients = YellowstonePathology.Business.Gateway.PhysicianClientGateway.GetClientGroupClientCollection();

            this.Add(new ClientBillingFacility(neogenomicsIrvine, ypii, clientGroupStVincent, "Technical"));
            this.Add(new ClientBillingFacility(neogenomicsFlorida, ypii, clientGroupStVincent, "Technical"));

            this.Add(new ClientBillingFacility(neogenomicsIrvine, neogenomicsIrvine, clientGroupAllClients, "Professional"));
            this.Add(new ClientBillingFacility(neogenomicsFlorida, neogenomicsFlorida, clientGroupAllClients, "Professional"));

            this.Add(new ClientBillingFacility(ypii, ypii, clientGroupAllClients, "Technical"));
            this.Add(new ClientBillingFacility(ypii, ypii, clientGroupAllClients, "Professional"));
        }
示例#2
0
        public static string GetBillBy(string professionalComponentBillingFacilityId, string technicalComponentBillingFacilityId, string billingComponent, string billTo)
        {
            string result = null;

            FacilityCollection allFacilities        = FacilityCollection.GetAllFacilities();
            Facility           technicalFacility    = allFacilities.GetByFacilityId(technicalComponentBillingFacilityId);
            Facility           professionalFacility = allFacilities.GetByFacilityId(professionalComponentBillingFacilityId);
            Facility           ypiFacility          = new YellowstonePathologyInstituteBillings();
            Facility           ypFacility           = new YellowstonePathologistBillings();

            if (FacilityCollection.IsAYellowstonePathologyFacility(technicalFacility) == true && FacilityCollection.IsAYellowstonePathologyFacility(professionalFacility) == true)
            {
                if (billingComponent == "Global" && billTo == "Client")
                {
                    result = ypFacility.FacilityId;
                }
                else
                {
                    result = ypiFacility.FacilityId;
                }
            }
            else
            {
                if (billingComponent == "Professional")
                {
                    result = professionalComponentBillingFacilityId;
                }
                else if (billingComponent == "Technical")
                {
                    result = technicalComponentBillingFacilityId;
                }
                else if (billingComponent == "Global")
                {
                    result = technicalComponentBillingFacilityId;
                }
            }

            return(result);
        }