public int updateAdherenceScreening(AdherenceScreening _AS)
        {
            IAdherenceScreeningRepository screeningRepository = new AdherenceScreeningRepository();

            screeningRepository.updateAdherenceScreening(_AS);
            return(_AS.Id);
        }
        public List <AdherenceScreening> getAdherenceScreening(int personId, int patientMasterVisitId)
        {
            IAdherenceScreeningRepository screeningRepository = new AdherenceScreeningRepository();
            var screeningList = screeningRepository.GetAll().Where(x => x.PatientId == personId && x.PatientMasterVisitId == patientMasterVisitId).OrderBy(x => x.Id);

            return(screeningList.ToList());
        }