public void OnGet()
 {
     try
     {
         CoverageData = new BeratenHealthcareModels.Coverage();
     }
     catch (Exception ex)
     {
         m_Log.CriticalEntry(User.Identity.Name, ex.ToString());
         throw;
     }
 }
 public void OnGet(int clientId)
 {
     try
     {
         CoverageData = m_Client.GetClientCoverage(clientId);
     }
     catch (Exception ex)
     {
         m_Log.CriticalEntry(User.Identity.Name, ex.ToString());
         throw;
     }
 }
 public void OnGet(int caseIntakeId)
 {
     try
     {
         MentalHealthAssessmentData = new BeratenHealthcareModels.MentalHealthAssessment { CaseIntakeId = caseIntakeId, AssessmentDate = TimeZoneUtility.DateTimeNow };
     }
     catch (Exception ex)
     {
         m_Log.CriticalEntry(User.Identity.Name, ex.ToString());
         throw;
     }
 }
        public void OnGet(int AssessmentId)
        {
            try
            {
                ComprehensiveAssessmentData = m_Assessment.GetComprehensiveAssessment(AssessmentId);
            }
            catch (Exception ex)

            {
                m_Log.CriticalEntry(User.Identity.Name, ex.ToString());
                throw;
            }
        }
        public void OnGet(int progressNoteId)
        {
            try
            {
                ProgressNoteData = m_ProgressNote.GetProgressNote(progressNoteId);
            }
            catch (Exception ex)

            {
                m_Log.CriticalEntry(User.Identity.Name, ex.ToString());
                throw;
            }
        }
 public void OnGet(int caseIntakeId)
 {
     try
     {
         TreatmentPlanData = new BeratenHealthcareModels.TreatmentPlan {
             CaseIntakeId = caseIntakeId, PlanDate = TimeZoneUtility.DateTimeNow, PlanTime = TimeZoneUtility.DateTimeNow
         };
     }
     catch (Exception ex)
     {
         m_Log.CriticalEntry(User.Identity.Name, ex.ToString());
         throw;
     }
 }
Ejemplo n.º 7
0
 public void OnGet(int caseIntakeId)
 {
     try
     {
         ProgressNoteData = new BeratenHealthcareModels.ProgressNote {
             CaseIntakeId = caseIntakeId, DateOfService = TimeZoneUtility.DateTimeNow, TimeOfService = TimeZoneUtility.DateTimeNow
         };
     }
     catch (Exception ex)
     {
         m_Log.CriticalEntry(User.Identity.Name, ex.ToString());
         throw;
     }
 }
 public void OnGet(int clientId)
 {
     try
     {
         CaseIntakeData = new CaseIntake {
             ClientId = clientId, IntakeTime = TimeZoneUtility.DateTimeNow, IntakeDate = TimeZoneUtility.DateTimeNow
         };
     }
     catch (Exception ex)
     {
         m_Log.CriticalEntry(User.Identity.Name, ex.ToString());
         throw;
     }
 }
Ejemplo n.º 9
0
        public IActionResult OnPost()
        {
            try
            {
                if (ModelState.IsValid != true)
                {
                    return(Page());
                }

                bool Ischanged = m_Security.ChangePassword(ChangePasswordModelData.LoginID, ChangePasswordModelData.Password, ChangePasswordModelData.NewPassword);

                if (Ischanged)
                {
                    return(RedirectToPage(Navigator.Dashboard));
                }
                else
                {
                    ModelState.AddModelError(" ", "Your Current Login ID & Password Do Not Match.  Please Try Again");
                    return(Page());
                }
            }
            catch (Exception ex)
            {
                m_Log.CriticalEntry(User.Identity.Name, ex.ToString());
                throw;
            }
        }
        public void OnGet(int appUserId)
        {
            try
            {
                UserWidgetsList = m_Dashboard.GetMyWidgets(appUserId);

                WidgetData = new Widget {
                    UserId = appUserId
                };
            }
            catch (Exception ex)
            {
                m_Log.CriticalEntry(User.Identity.Name, ex.ToString());
                throw;
            }
        }
        public void OnGet(int caseIntakeId)
        {
            try
            {
                CaseIntakeData = m_CaseIntake.GetCaseIntake(caseIntakeId);

                if (CaseIntakeData.PresentingProblems != null)
                {
                    CaseIntakeData.PresentingProblemsArray = CaseIntakeData.PresentingProblems.Split("@").ToList();
                }
            }
            catch (Exception ex)

            {
                m_Log.CriticalEntry(User.Identity.Name, ex.ToString());
                throw;
            }
        }
        public void OnGet(int treatmentPlanId)
        {
            try
            {
                TreatmentGoalList = m_TreatmentPlan.GetAllTreatmentGoals(treatmentPlanId);
                TreatmentPlanData = m_TreatmentPlan.GetTreatmentPlan(treatmentPlanId);

                if (TreatmentPlanData.AttendingStaffNames != null)
                {
                    TreatmentPlanData.AttendingStaffArray = TreatmentPlanData.AttendingStaffNames.Split("@").ToList();
                }
            }
            catch (Exception ex)

            {
                m_Log.CriticalEntry(User.Identity.Name, ex.ToString());
                throw;
            }
        }
        public void OnGet(int treatmentGoalId, int caseIntakeId)
        {
            try
            {
                CaseIntakeId = caseIntakeId;

                TreatmentGoalData = m_TreatmentPlan.GetTreatmentGoal(treatmentGoalId);

                if (TreatmentGoalData.Modalities != null)
                {
                    TreatmentGoalData.ModalitiesArray = TreatmentGoalData.Modalities.Split("@").ToList();
                }
            }
            catch (Exception ex)

            {
                m_Log.CriticalEntry(User.Identity.Name, ex.ToString());
                throw;
            }
        }
Ejemplo n.º 14
0
 public void OnGet(int caseIntakeId)
 {
     try
     {
         CaseIntakeId = caseIntakeId;
     }
     catch (Exception ex)
     {
         m_Log.CriticalEntry(User.Identity.Name, ex.ToString());
         throw;
     }
 }
        public void OnGet(int caseIntakeId)
        {
            try
            {
                CaseDischargeData = m_CaseIntake.GetCaseDischarge(caseIntakeId);

                if (CaseDischargeData == null)
                {
                    CaseDischargeData = new CaseDischarge {
                        CaseIntakeId = caseIntakeId
                    };
                    CaseDischargeData.DischargeDate = TimeZoneUtility.DateTimeNow;
                    CaseDischargeData.DischargeTime = TimeZoneUtility.DateTimeNow;
                }
            }
            catch (Exception ex)
            {
                m_Log.CriticalEntry(User.Identity.Name, ex.ToString());
                throw;
            }
        }
Ejemplo n.º 16
0
 public void OnGet(int caseIntakeId)
 {
     try
     {
         CaseIntakeId = caseIntakeId;
         MentalHealthAssessmentList = m_Assessment.GetAllMentalHealthAssessments(caseIntakeId);
     }
     catch (Exception ex)
     {
         m_Log.CriticalEntry(User.Identity.Name, ex.ToString());
         throw;
     }
 }
Ejemplo n.º 17
0
 public void OnGet()
 {
     try
     {
         int userId = int.Parse(User.Claims.FirstOrDefault(s => s.Type == "UserId").Value);
         UserWidgetsList = m_Dashboard.GetMyWidgets(userId);
     }
     catch (Exception ex)
     {
         m_Log.CriticalEntry(User.Identity.Name, ex.ToString());
         throw;
     }
 }
 public void OnGet(int caseIntakeId)
 {
     try
     {
         CaseIntakeId     = caseIntakeId;
         ProgressNoteList = m_ProgressNote.GetAllProgressNotes(caseIntakeId);
     }
     catch (Exception ex)
     {
         m_Log.CriticalEntry(User.Identity.Name, ex.ToString());
         throw;
     }
 }
Ejemplo n.º 19
0
 public void OnGet(int caseIntakeId)
 {
     try
     {
         CaseIntakeId      = caseIntakeId;
         TreatmentPlanList = m_TreatmentPlan.GetAllTreatmentPlans(caseIntakeId);
     }
     catch (Exception ex)
     {
         m_Log.CriticalEntry(User.Identity.Name, ex.ToString());
         throw;
     }
 }
Ejemplo n.º 20
0
 public IActionResult OnPost()
 {
     try
     {
         CaseList = m_Intake.SearchCases(SearchData);
         return(Page());
     }
     catch (Exception ex)
     {
         m_Log.CriticalEntry(User.Identity.Name, ex.ToString());
         throw;
     }
 }
        public IActionResult OnPost(AppUser appUserData)
        {
            try
            {
                bool Ischanged = m_Security.ResetPassword(appUserData.LoginId, appUserData.Password);

                return(RedirectToPage(Navigator.CreateAppUser));
            }
            catch (Exception ex)
            {
                m_Log.CriticalEntry(User.Identity.Name, ex.ToString());
                throw;
            }
        }
        public IActionResult OnPost()
        {
            try
            {
                if (ModelState.IsValid != true)
                {
                    return(Page());
                }

                m_Client.UpdateClient(ClientData);

                return(RedirectToPage(Navigator.UpdateClient, new { clientId = ClientData.Id }));
            }
            catch (Exception ex)
            {
                m_Log.CriticalEntry(User.Identity.Name, ex.ToString());
                throw;
            }
        }
Ejemplo n.º 23
0
        public IActionResult OnPost(AppUser appUserData)
        {
            try
            {
                if (ModelState.IsValid != true)
                {
                    return(Page());
                }

                m_Security.UpdateAppUser(AppUserData);

                return(RedirectToPage(Navigator.CreateAppUser));
            }
            catch (Exception ex)
            {
                m_Log.CriticalEntry(User.Identity.Name, ex.ToString());
                throw;
            }
        }
        public IActionResult OnPost(AppUser appUserData, [FromForm] IFormCollection coll)
        {
            try
            {
                if (ModelState.IsValid != true)
                {
                    return(Page());
                }

                int roleId = int.Parse(coll.Where(x => x.Key == "AppRoleId").Select(x => x.Value).FirstOrDefault());

                m_Security.CreateAppUser(AppUserData, roleId);

                return(RedirectToPage(Navigator.CreateAppUser));
            }
            catch (Exception ex)
            {
                m_Log.CriticalEntry(User.Identity.Name, ex.ToString());
                throw;
            }
        }
Ejemplo n.º 25
0
        public async Task <IActionResult> OnPost()
        {
            try
            {
                if (ModelState.IsValid)
                {
                    var user = m_UserSecurity.AuthenticateUserCredentials(UserLogin.LoginID, UserLogin.Password);

                    if (user != null)
                    {
                        var claims = new List <Claim>
                        {
                            new Claim(ClaimTypes.IsPersistent, "false", "bool"),
                            new Claim(ClaimTypes.Name, user.LoginId),
                            new Claim(ClaimTypes.GivenName, user.DisplayName),
                            new Claim("UserId", user.Id.ToString())
                        };

                        foreach (var role in user.AppUserRoles)
                        {
                            claims.Add(new Claim(ClaimTypes.Role, role.AppRole.Role));

                            if (claims.FirstOrDefault(x => x.Type == "Group") == null)
                            {
                                //if (role.AppRole.Role == BeratenHealthcareModels.Roles.Supervisor.ToString())
                                //    claims.Add(new Claim("Group", "Super"));
                            }
                        }

                        HttpContext.Session.SetInt32("UserAuthId", user.Id);

                        var claimsPrincipal = new ClaimsPrincipal(new ClaimsIdentity(claims, CookieAuthenticationDefaults.AuthenticationScheme));
                        await HttpContext.SignInAsync(CookieAuthenticationDefaults.AuthenticationScheme, claimsPrincipal);

                        if (user.AppUserRoles.Count() != 0)
                        {
                            return(RedirectToPage(Navigator.Dashboard));
                        }
                        else
                        {
                            HttpContext.Session.Clear();
                            //await HttpContext.SignOutAsync();
                            return(RedirectToPage(Navigator.Login));
                        }
                    }
                    else
                    {
                        ModelState.AddModelError(string.Empty, "Invalid login attempt. Please try again.");
                        return(Page());
                    }
                }
                else
                {
                    return(Page());
                }
            }
            catch (Exception ex)
            {
                m_Log.CriticalEntry(User.Identity.Name, ex.ToString());
                throw;
            }
        }
        public void OnGet(int AssessmentId)
        {
            try
            {
                MentalHealthAssessmentData = m_Assessment.GetMentalHealthAssessment(AssessmentId);

                if (MentalHealthAssessmentData.Appearance != null)
                {
                    MentalHealthAssessmentData.AppearanceArray = MentalHealthAssessmentData.Appearance.Split("@").ToList();
                }

                if (MentalHealthAssessmentData.BodyType != null)
                {
                    MentalHealthAssessmentData.BodyTypeArray = MentalHealthAssessmentData.BodyType.Split("@").ToList();
                }

                if (MentalHealthAssessmentData.EyeContact != null)
                {
                    MentalHealthAssessmentData.EyeContactArray = MentalHealthAssessmentData.EyeContact.Split("@").ToList();
                }

                if (MentalHealthAssessmentData.Hygiene != null)
                {
                    MentalHealthAssessmentData.HygieneArray = MentalHealthAssessmentData.Hygiene.Split("@").ToList();
                }

                if (MentalHealthAssessmentData.Attitude != null)
                {
                    MentalHealthAssessmentData.AttitudeArray = MentalHealthAssessmentData.Attitude.Split("@").ToList();
                }

                if (MentalHealthAssessmentData.BodyMovement != null)
                {
                    MentalHealthAssessmentData.BodyMovementArray = MentalHealthAssessmentData.BodyMovement.Split("@").ToList();
                }

                if (MentalHealthAssessmentData.BehaviorWithExaminers != null)
                {
                    MentalHealthAssessmentData.BehaviorWithExaminersArray = MentalHealthAssessmentData.BehaviorWithExaminers.Split("@").ToList();
                }

                if (MentalHealthAssessmentData.BehaviorWithCareGivers != null)
                {
                    MentalHealthAssessmentData.BehaviorWithCareGiversArray = MentalHealthAssessmentData.BehaviorWithCareGivers.Split("@").ToList();
                }

                if (MentalHealthAssessmentData.FacialExpression != null)
                {
                    MentalHealthAssessmentData.FacialExpressionArray = MentalHealthAssessmentData.FacialExpression.Split("@").ToList();
                }

                if (MentalHealthAssessmentData.Interview != null)
                {
                    MentalHealthAssessmentData.InterviewArray = MentalHealthAssessmentData.Interview.Split("@").ToList();
                }

                if (MentalHealthAssessmentData.FineMotor != null)
                {
                    MentalHealthAssessmentData.FineMotorArray = MentalHealthAssessmentData.FineMotor.Split("@").ToList();
                }

                if (MentalHealthAssessmentData.Gait != null)
                {
                    MentalHealthAssessmentData.GaitArray = MentalHealthAssessmentData.Gait.Split("@").ToList();
                }

                if (MentalHealthAssessmentData.GrossMotor != null)
                {
                    MentalHealthAssessmentData.GrossMotorArray = MentalHealthAssessmentData.GrossMotor.Split("@").ToList();
                }

                if (MentalHealthAssessmentData.Mascular != null)
                {
                    MentalHealthAssessmentData.MascularArray = MentalHealthAssessmentData.Mascular.Split("@").ToList();
                }

                if (MentalHealthAssessmentData.MotorBehavior != null)
                {
                    MentalHealthAssessmentData.MotorBehaviorArray = MentalHealthAssessmentData.MotorBehavior.Split("@").ToList();
                }

                if (MentalHealthAssessmentData.ActivityLevel != null)
                {
                    MentalHealthAssessmentData.ActivityLevelArray = MentalHealthAssessmentData.ActivityLevel.Split("@").ToList();
                }

                if (MentalHealthAssessmentData.Affect != null)
                {
                    MentalHealthAssessmentData.AffectArray = MentalHealthAssessmentData.Affect.Split("@").ToList();
                }

                if (MentalHealthAssessmentData.Alertness != null)
                {
                    MentalHealthAssessmentData.AlertnessArray = MentalHealthAssessmentData.Alertness.Split("@").ToList();
                }

                if (MentalHealthAssessmentData.Attention != null)
                {
                    MentalHealthAssessmentData.AttentionArray = MentalHealthAssessmentData.Attention.Split("@").ToList();
                }

                if (MentalHealthAssessmentData.Concentration != null)
                {
                    MentalHealthAssessmentData.ConcentrationArray = MentalHealthAssessmentData.Concentration.Split("@").ToList();
                }

                if (MentalHealthAssessmentData.FrustrationTolerance != null)
                {
                    MentalHealthAssessmentData.FrustrationToleranceArray = MentalHealthAssessmentData.FrustrationTolerance.Split("@").ToList();
                }

                if (MentalHealthAssessmentData.IntellectualLevel != null)
                {
                    MentalHealthAssessmentData.IntellectualLevelArray = MentalHealthAssessmentData.IntellectualLevel.Split("@").ToList();
                }

                if (MentalHealthAssessmentData.IntellectualFunction != null)
                {
                    MentalHealthAssessmentData.IntellectualFunctionArray = MentalHealthAssessmentData.IntellectualFunction.Split("@").ToList();
                }

                if (MentalHealthAssessmentData.Mood != null)
                {
                    MentalHealthAssessmentData.MoodArray = MentalHealthAssessmentData.Mood.Split("@").ToList();
                }

                if (MentalHealthAssessmentData.SelfSoothingCapacity != null)
                {
                    MentalHealthAssessmentData.SelfSoothingCapacityArray = MentalHealthAssessmentData.SelfSoothingCapacity.Split("@").ToList();
                }

                if (MentalHealthAssessmentData.SensoryCognition != null)
                {
                    MentalHealthAssessmentData.SensoryCognitionArray = MentalHealthAssessmentData.SensoryCognition.Split("@").ToList();
                }

                if (MentalHealthAssessmentData.SensoryIntegration != null)
                {
                    MentalHealthAssessmentData.SensoryIntegrationArray = MentalHealthAssessmentData.SensoryIntegration.Split("@").ToList();
                }

                if (MentalHealthAssessmentData.Transitions != null)
                {
                    MentalHealthAssessmentData.TransitionsArray = MentalHealthAssessmentData.Transitions.Split("@").ToList();
                }

                if (MentalHealthAssessmentData.Associations != null)
                {
                    MentalHealthAssessmentData.AssociationsArray = MentalHealthAssessmentData.Associations.Split("@").ToList();
                }

                if (MentalHealthAssessmentData.Delusions != null)
                {
                    MentalHealthAssessmentData.DelusionsArray = MentalHealthAssessmentData.Delusions.Split("@").ToList();
                }

                if (MentalHealthAssessmentData.Hallucinations != null)
                {
                    MentalHealthAssessmentData.HallucinationsArray = MentalHealthAssessmentData.Hallucinations.Split("@").ToList();
                }

                if (MentalHealthAssessmentData.Insight != null)
                {
                    MentalHealthAssessmentData.InsightArray = MentalHealthAssessmentData.Insight.Split("@").ToList();
                }

                if (MentalHealthAssessmentData.Judgement != null)
                {
                    MentalHealthAssessmentData.JudgementArray = MentalHealthAssessmentData.Judgement.Split("@").ToList();
                }

                if (MentalHealthAssessmentData.Memory != null)
                {
                    MentalHealthAssessmentData.MemoryArray = MentalHealthAssessmentData.Memory.Split("@").ToList();
                }

                if (MentalHealthAssessmentData.Phobia != null)
                {
                    MentalHealthAssessmentData.PhobiaArray = MentalHealthAssessmentData.Phobia.Split("@").ToList();
                }

                if (MentalHealthAssessmentData.Orientation != null)
                {
                    MentalHealthAssessmentData.OrientationArray = MentalHealthAssessmentData.Orientation.Split("@").ToList();
                }

                if (MentalHealthAssessmentData.FutureOrient != null)
                {
                    MentalHealthAssessmentData.FutureOrientArray = MentalHealthAssessmentData.FutureOrient.Split("@").ToList();
                }

                if (MentalHealthAssessmentData.ThoughtContent != null)
                {
                    MentalHealthAssessmentData.ThoughtContentArray = MentalHealthAssessmentData.ThoughtContent.Split("@").ToList();
                }

                if (MentalHealthAssessmentData.ThoughtProcess != null)
                {
                    MentalHealthAssessmentData.ThoughtProcessArray = MentalHealthAssessmentData.ThoughtProcess.Split("@").ToList();
                }

                if (MentalHealthAssessmentData.ExpressiveLanguage != null)
                {
                    MentalHealthAssessmentData.ExpressiveLanguageArray = MentalHealthAssessmentData.ExpressiveLanguage.Split("@").ToList();
                }

                if (MentalHealthAssessmentData.GeneralKnowledge != null)
                {
                    MentalHealthAssessmentData.GeneralKnowledgeArray = MentalHealthAssessmentData.GeneralKnowledge.Split("@").ToList();
                }

                if (MentalHealthAssessmentData.ReceptiveLanguage != null)
                {
                    MentalHealthAssessmentData.ReceptiveLanguageArray = MentalHealthAssessmentData.ReceptiveLanguage.Split("@").ToList();
                }

                if (MentalHealthAssessmentData.Speech != null)
                {
                    MentalHealthAssessmentData.SpeechArray = MentalHealthAssessmentData.Speech.Split("@").ToList();
                }

                if (MentalHealthAssessmentData.EatingPatterns != null)
                {
                    MentalHealthAssessmentData.EatingPatternsArray = MentalHealthAssessmentData.EatingPatterns.Split("@").ToList();
                }

                if (MentalHealthAssessmentData.SleepPatterns != null)
                {
                    MentalHealthAssessmentData.SleepPatternsArray = MentalHealthAssessmentData.SleepPatterns.Split("@").ToList();
                }

                if (MentalHealthAssessmentData.UnusualBehaviorPattern != null)
                {
                    MentalHealthAssessmentData.UnusualBehaviorPatternArray = MentalHealthAssessmentData.UnusualBehaviorPattern.Split("@").ToList();
                }

                if (MentalHealthAssessmentData.DegreeOfRisk != null)
                {
                    MentalHealthAssessmentData.DegreeOfRiskArray = MentalHealthAssessmentData.DegreeOfRisk.Split("@").ToList();
                }

                if (MentalHealthAssessmentData.SelfHarm != null)
                {
                    MentalHealthAssessmentData.SelfHarmArray = MentalHealthAssessmentData.SelfHarm.Split("@").ToList();
                }

                if (MentalHealthAssessmentData.OtherHarm != null)
                {
                    MentalHealthAssessmentData.OtherHarmArray = MentalHealthAssessmentData.OtherHarm.Split("@").ToList();
                }

                if (MentalHealthAssessmentData.ImpulseControl != null)
                {
                    MentalHealthAssessmentData.ImpulseControlArray = MentalHealthAssessmentData.ImpulseControl.Split("@").ToList();
                }

                if (MentalHealthAssessmentData.Suicide != null)
                {
                    MentalHealthAssessmentData.SuicideArray = MentalHealthAssessmentData.Suicide.Split("@").ToList();
                }
            }
            catch (Exception ex)

            {
                m_Log.CriticalEntry(User.Identity.Name, ex.ToString());
                throw;
            }
        }