public ActionResult PatientConsent(PatientConsentMain patientConsentMain) { LoadPatients(Request.Form["RdoLocation"]); if (!string.IsNullOrEmpty(patientConsentMain.EmployeeId)) { var consentFormSvcClient = new ConsentFormSvcClient(); if (consentFormSvcClient.IsValidEmployee(patientConsentMain.EmployeeId)) { ViewBag.Loggedin = true; var patientDetails = consentFormSvcClient.GetPatientfromLocation(patientConsentMain.BHELocation ? "BHE" : "BHW"); foreach (DataRow patientDetail in patientDetails.Rows) { } if (string.IsNullOrEmpty(patientConsentMain.SelectedPatientID)) { } } else { patientConsentMain.ErrorInfo = "Invalid employee id entered!"; ResetIndexView(patientConsentMain); } } patientConsentMain.PatientsList = new SelectList(new string[0]); patientConsentMain.ConsentFormList = new SelectList(new string[0]); return View("Index", patientConsentMain); }
public ActionResult Index() { var patientConsentMain = new PatientConsentMain(); patientConsentMain.PatientsList = new SelectList(new string[0]); patientConsentMain.ConsentFormList = new SelectList(new string[0]); return View(patientConsentMain); }
private void ResetIndexView(PatientConsentMain patientConsentMain) { patientConsentMain.AdmissionDate = string.Empty; patientConsentMain.AttendingPhysician = string.Empty; patientConsentMain.BloodConsent = false; patientConsentMain.CardioVascularConsent = false; patientConsentMain.EmployeeId = string.Empty; patientConsentMain.EndoscopyConsent = false; patientConsentMain.Gender = string.Empty; patientConsentMain.OORConsent = false; patientConsentMain.PICCConsent = false; patientConsentMain.PatientAge = string.Empty; patientConsentMain.PatientHash = string.Empty; patientConsentMain.PatientMRHash = string.Empty; patientConsentMain.PatientName = string.Empty; patientConsentMain.SurgicalConsent = false; }