Пример #1
0
        public ActionResult PatientView(Patient patient)

        {
            var patients    = PatientTable.GetPatientById(Properties.UserId);
            var description = MedicalDescriptionTable.GetDataByPatientId(Properties.UserId);
            var visit       = VisitTable.GetDataByPatientId(Properties.UserId);
            var prescript   = PrescriptionTable.GetData(Properties.UserId);
            var test        = TestTable.GetData(Properties.UserId);
            var leavesick   = SickLeaveTable.GetDataByPatientId(Properties.UserId);
            var doc         = DocumentationTable.GetDataByPatientId(Properties.UserId);

            //  ViewData["PatientName"] = PatientTable.GetPatientById(patient.Id);
            ViewData["PatientName"]        = patients[0];
            ViewData["visitData"]          = visit;
            ViewData["prescriptioneData"]  = prescript;
            ViewData["Tests"]              = test;
            ViewData["sickLeaveData"]      = leavesick;
            ViewData["medicalDescription"] = description;
            ViewData["documentation"]      = doc;

            return(View());
        }