Пример #1
0
        public static FacilityCollection GetAllFacilities()
        {
            FacilityCollection result = new FacilityCollection();

            result.Add(new NullFacility());
            result.Add(new YellowstonePathologyInstituteBillings());
            result.Add(new YellowstonePathologistBillings());
            result.Add(new YellowstonePathologyInstituteCody());
            result.Add(new YellowstonePathologistCody());
            result.Add(new NeogenomicsIrvine());
            result.Add(new ARUP());
            result.Add(new BillingsClinic());
            result.Add(new Showdair());
            result.Add(new Therapath());
            result.Add(new UniversityOfWashington());
            result.Add(new MontanaDermatology());
            result.Add(new GenomicHealth());
            result.Add(new MLabs());
            result.Add(new UCSanFrancisco());
            result.Add(new UCSFDermPathService());
            result.Add(new WesternMontanaClinic());
            result.Add(new JohnHopkins());
            result.Add(new EmoryUniversity());
            result.Add(new UniPath());
            result.Add(new NationalInstituteOfHealth());
            result.Add(new MayoClinic());
            result.Add(new TXChildrensHospital());
            result.Add(new MUSC());
            result.Add(new CockerellDermatology());
            result.Add(new CarisLifeSciences());
            result.Add(new BigSkyDermatology());
            result.Add(new HuntsmanCancerInstitute());
            result.Add(new MDAndersonCancerCenter());
            result.Add(new ChildrensHospitalColorado());
            result.Add(new FoundationMedicine());
            result.Add(new BreastPathologyConsultants());
            result.Add(new ButtePathology());
            result.Add(new ColoradoGeneticsLaboratory());
            result.Add(new PhenoPath());
            result.Add(new UAMS());
            result.Add(new StVincentHealthcare());
            result.Add(new UniversityOfArkansasMedicalSciences());
            result.Add(new SeattleCancerCenterAlliance());
            result.Add(new CancerTreatmentCentersOfAmerica());
            result.Add(new PathologyAssociatesOfIdahoFalls());
            result.Add(new LoweLawGroup());
            result.Add(new ProfessionalPathologyOfWyoming());
            result.Add(new TallmanDermatology());
            result.Add(new BozemanDeaconess());
            result.Add(new CMMC());
            result.Add(new StJamesHospital());
            result.Add(new MontanaDepartmentofJustice());
            result.Add(new UniversityOfMichigan());
            return(Sort(result));
        }
Пример #2
0
        private static FacilityCollection Sort(FacilityCollection facilityCollection)
        {
            FacilityCollection            result        = new FacilityCollection();
            IOrderedEnumerable <Facility> orderedResult = facilityCollection.OrderBy(i => i.FacilityName);

            foreach (Facility facility in orderedResult)
            {
                result.Add(facility);
            }
            return(result);
        }
Пример #3
0
        public static FacilityCollection GetAllYPFacilities()
        {
            FacilityCollection result = new FacilityCollection();

            YellowstonePathology.Business.Facility.Model.YellowstonePathologistBillings        ypBlgs  = new YellowstonePathology.Business.Facility.Model.YellowstonePathologistBillings();
            YellowstonePathology.Business.Facility.Model.YellowstonePathologyInstituteBillings ypiBlgs = new YellowstonePathology.Business.Facility.Model.YellowstonePathologyInstituteBillings();

            YellowstonePathology.Business.Facility.Model.YellowstonePathologistCody        ypCdy  = new YellowstonePathology.Business.Facility.Model.YellowstonePathologistCody();
            YellowstonePathology.Business.Facility.Model.YellowstonePathologyInstituteCody ypiCdy = new YellowstonePathology.Business.Facility.Model.YellowstonePathologyInstituteCody();

            result.Add(ypBlgs);
            result.Add(ypiBlgs);
            result.Add(ypCdy);
            result.Add(ypiCdy);

            return(result);
        }
Пример #4
0
        public static FacilityCollection GetAllYPFacilities()
        {
            FacilityCollection result = new FacilityCollection();

            foreach (Facility facility in FacilityCollection.Instance)
            {
                if (facility.FacilityId == "YPBLGS" ||  //YellowstonePathologistBillings
                    facility.FacilityId == "YPIBLGS" || //YellowstonePathologyInstituteBillings
                    facility.FacilityId == "YPCDY" ||   //YellowstonePathologistCody
                    facility.FacilityId == "YPICDY" ||  //YellowstonePathologyInstituteCody
                    facility.FacilityId == "YPBZMN")    //YellowstonePathologistBozeman
                {
                    result.Add(facility);
                }
            }

            return(result);
        }
Пример #5
0
        public static FacilityCollection GetPathGroupFacilities()
        {
            FacilityCollection result = new FacilityCollection();

            foreach (Facility facility in FacilityCollection.Instance)
            {
                if (facility.FacilityId == null ||
                    facility.FacilityId == "YPBLGS" ||      //YellowstonePathologistBillings
                    facility.FacilityId == "YPBZMN" ||      //YellowstonePathologistBozeman
                    facility.FacilityId == "BTTPTHLGY" ||   //ButtePathology
                    facility.FacilityId == "PAOIF" ||       //PathologyAssociatesOfIdahoFalls
                    facility.FacilityId == "PCOWM" ||       //PathologyConsultantsOfWesternMontana
                    facility.FacilityId == "PPWY" ||        //ProfessionalPathologyOfWyoming
                    facility.FacilityId == "SHPTHASS")      //SheridanPathologyAssociates
                {
                    result.Add(facility);
                }
            }
            return(result);
        }
Пример #6
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);
        }
Пример #7
0
 public static FacilityCollection Refresh()
 {
     instance = null;
     return(Instance);
 }