コード例 #1
0
        public ActionResult RequestAppointment(int patientId)
        {
            Patient patient = _patientManagementService.ViewPatient(patientId);

            ViewBag.ReturnUrl = Url.Action("RequestAppointment");
            return(View(new AppointmentRequestViewModel {
                Patient = patient
            }));
        }
コード例 #2
0
ファイル: DoctorController.cs プロジェクト: alikaraki/Shafam
        public ActionResult ReferPatient(int patientId)
        {
            int             thisDocId          = _identityProvider.GetAuthenticatedUserId();
            Patient         patient            = _patientManagementService.ViewPatient(patientId);
            List <Doctor>   allDoctors         = _doctorRepository.GetDoctors();
            List <Referral> referralsForDoctor = _referralRepository.GetReferralsForReferringDoctor(thisDocId).ToList();

            var referredDoctors = new List <Doctor>();

            foreach (Referral r in referralsForDoctor)
            {
                if (r.PatientId == patientId)
                {
                    referredDoctors.Add(_doctorRepository.GetDoctor(r.ReferredDoctorId));
                }
            }

            return(View(new ReferPatientViewModel {
                Patient = patient, Doctors = allDoctors, ReferredDoctors = referredDoctors
            }));
        }
コード例 #3
0
ファイル: StaffController.cs プロジェクト: alikaraki/Shafam
        public ActionResult PatientProfile(int patientId)
        {
            Patient patient = _patientManagementService.ViewPatient(patientId);

            return(View(patient));
        }