public int updatePsychosocialCircumstnces(PsychosocialCircumstances PC)
        {
            IAdherencePsychosocialRepository psychosocialRepository = new AdherencePsychosocialRepository();

            psychosocialRepository.updatePsychosocialCircumstnces(PC);
            return(PC.Id);
        }
        public List <PsychosocialCircumstances> getPsychosocialCircumstances(int personId, int patientMasterVisitId)
        {
            IAdherencePsychosocialRepository psychosocialRepository = new AdherencePsychosocialRepository();
            var psychosocialList = psychosocialRepository.GetAll().Where(x => x.PatientId == personId && x.PatientMasterVisitId == patientMasterVisitId).OrderBy(x => x.Id);

            return(psychosocialList.ToList());
        }