예제 #1
0
        public ActionResult TimeBill(int caseID)
        {
            if (!HasTimeBillPermission)
            {
                throw new UnauthorizedAccessException();
            }
            ViewBag.AvailableDates      = GetAvailableTimeBillDates();
            ViewBag.SelectedDate        = GetDefaultTimeBillDate();
            ViewBag.ServiceList         = repository.GetAllServicesExceptSSG();
            ViewBag.CaseProviderList    = repository.GetCaseManagementProvidersList(caseID);
            ViewBag.ServiceLocationList = repository.GetServiceLocationList();
            var model    = _service.GetCaseTimeBillModel(caseID, GetDefaultTimeBillDate().Date);
            var services = repository.GetAllServicesExceptSSG();
            var auths    = repository.GetCaseAuthorizationsForTimeBillGrid(caseID);

            ViewBag.ServiceList  = services;
            ViewBag.CaseAuthList = auths;
            ViewBag.CaseID       = caseID;
            ViewBag.HoursMatrix  = model.HoursMatrix;
            var @case   = Context.Cases.Find(caseID);
            var patient = PatientMappings.Patient(@case.Patient);

            model.PatientName   = patient.CommonName;
            model.PatientGender = patient.Gender.HasValue ? patient.Gender.Value.ToString().First().ToString() : string.Empty;
            model.PatientID     = @case.PatientID;
            model.Base          = new ViewModelBase(PushState, "/Case/" + caseID + "/Manage/TimeAndBilling", "Case Manager - Time and Billing", "/Patients/Search");
            return(GetView("ManageTimeBill", model));
        }
예제 #2
0
        public ActionResult NotesTrack(int caseID)
        {
            var c       = Context.Cases.Find(caseID);
            var patient = PatientMappings.Patient(c.Patient);
            var model   = new NotesVM
            {
                CaseID        = c.ID,
                PatientID     = c.PatientID,
                PatientName   = patient.CommonName,
                PatientGender = patient.Gender.HasValue ? patient.Gender.Value.ToString().First().ToString() : string.Empty,
                Base          = new ViewModelBase(PushState, "/Case/" + caseID + "/Manage/Notes", "Case Manager - Notes", "/Patients/Search")
            };

            return(PartialView("ManageNotes", model));
        }
예제 #3
0
        public ActionResult Providers(int caseID, bool showAll = false)
        {
            var caseOld = Context.Cases.Find(caseID);
            var patient = PatientMappings.Patient(caseOld.Patient);
            var model   = new CaseProviderVM
            {
                ID            = caseID,
                PatientName   = patient.CommonName,
                PatientGender = patient.Gender.HasValue ? patient.Gender.Value.ToString().First().ToString() : string.Empty,
                Items         = _service.GetCaseProviderListItems(caseID, showAll)
            };

            model.ViewHelper.Providers = _service.GetProvidersDropdown();
            model.Base = new ViewModelBase(PushState, "/Case/" + caseID + "/Manage/Providers", "Case Manager - Providers", "/Patients/Search");
            return(GetView("ManageProviders", model));
        }