コード例 #1
0
        public int updateSocialHistory(PatientSocialHistory SH)
        {
            ISocialHistoryRepository socialHistoryRepository = new SocialHistoryRepository();

            socialHistoryRepository.updateSocialHistory(SH);
            return(SH.Id);
        }
コード例 #2
0
        public List <PatientSocialHistory> getSocialHistory(int personId, int patientMasterVisitId)
        {
            ISocialHistoryRepository socialHistoryRepository = new SocialHistoryRepository();
            var socialHistoryList = socialHistoryRepository.GetAll().Where(x => x.PatientId == personId && x.PatientMasterVisitId == patientMasterVisitId).OrderBy(x => x.Id);

            return(socialHistoryList.ToList());
        }