public bool HasProduct(string doente, string episodio)
        {
            DBDeslocacoesContext efInt = new DBDeslocacoesContext();
            VwDeslocProd         d     = efInt.vwDeslocProd.Where(q => q.DOENTE == doente && q.EPISODIO == episodio).FirstOrDefault();

            if (d != null)
            {
                return(true);
            }
            else
            {
                return(false);
            }
        }
        public bool IsDoenteDesloc(string doente, string ncons)
        {
            DBDeslocacoesContext efInt = new DBDeslocacoesContext();
            VwDoentesPresentes   d     = efInt.vwDoentesPresentes.Where(q => q.DOENTE == doente && q.N_CONS == ncons).FirstOrDefault();

            if (d != null)
            {
                if (!String.IsNullOrEmpty(d.U_LOCAL) && d.U_LOCAL != d.COD_SERV)
                {
                    return(true);
                }
                else
                {
                    return(false);
                }
            }
            else
            {
                return(false);
            }
        }