Exemplo n.º 1
0
        public bool SaveCheckList(MedicareStandingOrderViewModel standingOrder)
        {
            _logger.Info("Saving CheckList from HRA for Visit : " + standingOrder.PatientVisitId + ", version :" + standingOrder.Version + "-> Started");
            var evtCust = _eventCustomerRepository.GetByMedicareVisitId(standingOrder.PatientVisitId);

            if (evtCust != null)
            {
                var model = new CheckListAnswerEditModel();
                model.EventCustomerId = evtCust.Id;
                model.Answers         = standingOrder.Questions.Select(ques => new CheckListQuestionAnswerEditModel {
                    QuestionId = ques.QuestionId, Answer = ques.Answer
                }).ToList();
                _customerCheckListService.SaveCheckListAnswer(model, _sessionContext.UserSession.CurrentOrganizationRole.OrganizationRoleUserId, _sessionContext.UserSession.UserLoginLogId, "");
            }
            _logger.Info("Saving CheckList from HRA for Visit : " + standingOrder.PatientVisitId + ", version :" + standingOrder.Version + "-> Completed");
            return(true);
        }