Exemplo n.º 1
0
        ///<summary></summary>
        public static ProviderSupplementalID[] GetRequiredIdents(string payorID)
        {
            //No need to check RemotingRole; no call to db.
            ElectID electID = GetID(payorID);

            if (electID == null)
            {
                return(new ProviderSupplementalID[0]);
            }
            if (electID.ProviderTypes == "")
            {
                return(new ProviderSupplementalID[0]);
            }
            string[] provTypes = electID.ProviderTypes.Split(',');
            if (provTypes.Length == 0)
            {
                return(new ProviderSupplementalID[0]);
            }
            ProviderSupplementalID[] retVal = new ProviderSupplementalID[provTypes.Length];
            for (int i = 0; i < provTypes.Length; i++)
            {
                retVal[i] = (ProviderSupplementalID)(Convert.ToInt32(provTypes[i]));
            }

            /*
             * if(electID=="SB601"){//BCBS of GA
             *      retVal=new ProviderSupplementalID[2];
             *      retVal[0]=ProviderSupplementalID.BlueShield;
             *      retVal[1]=ProviderSupplementalID.SiteNumber;
             * }*/
            return(retVal);
        }
Exemplo n.º 2
0
        /// <summary></summary>
        public static bool IdentExists(ProviderSupplementalID type, long provNum, string payorID)
        {
            //No need to check RemotingRole; no call to db.
            ProviderIdent providerIdent = GetFirstOrDefault(x => x.ProvNum == provNum && x.SuppIDType == type && x.PayorID == payorID);

            return(providerIdent != null);
        }
Exemplo n.º 3
0
Arquivo: ElectIDs.cs Projeto: mnisl/OD
		///<summary></summary>
		public static ProviderSupplementalID[] GetRequiredIdents(string payorID){
			//No need to check RemotingRole; no call to db.
			ElectID electID=GetID(payorID);
			if(electID==null){
				return new ProviderSupplementalID[0];
			}
			if(electID.ProviderTypes==""){
				return new ProviderSupplementalID[0];
			}
			string[] provTypes=electID.ProviderTypes.Split(',');
			if(provTypes.Length==0){
				return new ProviderSupplementalID[0];
			}
			ProviderSupplementalID[] retVal=new ProviderSupplementalID[provTypes.Length];
			for(int i=0;i<provTypes.Length;i++){
				retVal[i]=(ProviderSupplementalID)(Convert.ToInt32(provTypes[i]));
			}
			/*
			if(electID=="SB601"){//BCBS of GA
				retVal=new ProviderSupplementalID[2];
				retVal[0]=ProviderSupplementalID.BlueShield;
				retVal[1]=ProviderSupplementalID.SiteNumber;
			}*/
			return retVal;
		}
Exemplo n.º 4
0
 /// <summary></summary>
 public static bool IdentExists(ProviderSupplementalID type, int provNum, string payorID)
 {
     for (int i = 0; i < List.Length; i++)
     {
         if (List[i].ProvNum == provNum &&
             List[i].SuppIDType == type &&
             List[i].PayorID == payorID)
         {
             return(true);
         }
     }
     return(false);
 }
Exemplo n.º 5
0
 /// <summary></summary>
 public static bool IdentExists(ProviderSupplementalID type, long provNum, string payorID)
 {
     //No need to check RemotingRole; no call to db.
     if (list == null)
     {
         RefreshCache();
     }
     for (int i = 0; i < list.Length; i++)
     {
         if (list[i].ProvNum == provNum &&
             list[i].SuppIDType == type &&
             list[i].PayorID == payorID)
         {
             return(true);
         }
     }
     return(false);
 }
Exemplo n.º 6
0
		/// <summary></summary>
		public static bool IdentExists(ProviderSupplementalID type,long provNum,string payorID) {
			//No need to check RemotingRole; no call to db.
			if(list==null) {
				RefreshCache();
			}
			for(int i=0;i<list.Length;i++) {
				if(list[i].ProvNum==provNum
					&& list[i].SuppIDType==type
					&& list[i].PayorID==payorID)
				{
					return true;
				}
			}
			return false;
		}
Exemplo n.º 7
0
		/// <summary></summary>
		public static bool IdentExists(ProviderSupplementalID type,int provNum,string payorID){
			for(int i=0;i<List.Length;i++){
				if(List[i].ProvNum==provNum
					&& List[i].SuppIDType==type
					&& List[i].PayorID==payorID)
				{
					return true;
				}
			}
			return false;
		}
Exemplo n.º 8
0
 private static string GetProvTypeQualifier(ProviderSupplementalID provType)
 {
     switch(provType) {
         case ProviderSupplementalID.BlueCross:
             return "1A";
         case ProviderSupplementalID.BlueShield:
             return "1B";
         case ProviderSupplementalID.SiteNumber:
             return "G5";
         case ProviderSupplementalID.CommercialNumber:
             return "G2";
     }
     return "";
 }