protected void Page_Load(object sender, EventArgs e) { string patientId; try { patientId = Request.QueryString["PatientID"]; } catch (Exception) { patientId = string.Empty; } if (!string.IsNullOrEmpty(patientId)) { var formHandlerServiceClient = new FormHandlerServiceClient(); var patientDetails = formHandlerServiceClient.GetPatientDetail(patientId); if (patientDetails != null) { LblPatientName.Text = patientDetails.name; ImgPatientSignature.ImageUrl = "/GetImage.ashx?PatientId=" + patientId + "&Signature=8&ConsentType=PICCConsent"; ImgWitnessSignature.ImageUrl = "/GetImage.ashx?PatientId=" + patientId + "&Signature=10&ConsentType=PICCConsent"; ImgPICCNurse.ImageUrl = "/GetImage.ashx?PatientId=" + patientId + "&Signature=9&ConsentType=PICCConsent"; LblSignature1DateTime.Text = DateTime.Now.ToString("MMM dd yyyy hh:mm:ss"); LblWitnessDateTime.Text = DateTime.Now.ToString("MMM dd yyyy hh:mm:ss"); LblImgPICCNurseDateTime.Text = DateTime.Now.ToString("MMM dd yyyy hh:mm:ss"); } } }
protected void Page_Load(object sender, EventArgs e) { string patientId; try { patientId = Request.QueryString["PatientID"]; } catch (Exception) { patientId = string.Empty; } if (!string.IsNullOrEmpty(patientId)) { var formHandlerServiceClient = new FormHandlerServiceClient(); var patientDetails = formHandlerServiceClient.GetPatientDetail(patientId, ConsentType.ToString()); if (patientDetails != null) { LblPatientMRID.Text = patientDetails.MRHash; LblPatientName.Text = patientDetails.name; LblDate.Text = patientDetails.AdmDate.ToString("MM dd yyyy"); LblTime.Text = DateTime.Now.ToShortTimeString(); } } }
protected void Page_Load(object sender, EventArgs e) { string PatientId; try { PatientId = Request.QueryString["PatientID"]; } catch (Exception) { PatientId = string.Empty; } if(!string.IsNullOrEmpty(PatientId)) { var formHandlerServiceClient = new FormHandlerServiceClient(); var patientDetails = formHandlerServiceClient.GetPatientDetail(PatientId); if (patientDetails != null) { LblPatientMRID.Text = patientDetails.MRHash; LblPatientName.Text = patientDetails.name; LblDate.Text = patientDetails.AdmDate.ToString("MM dd yyyy"); LblTime.Text = DateTime.Now.ToShortTimeString(); LblPatientName2.Text = patientDetails.name; LblProcedureName.Text = patientDetails.ProcedureName; var primaryDoctor = formHandlerServiceClient.GetPrimaryDoctorDetail(patientDetails.PrimaryDoctorId); if (primaryDoctor != null) { LblPrimaryDoctor.Text = primaryDoctor.Fname + " " + primaryDoctor.Lname; LblAuthoriseDoctors.Text = primaryDoctor.Fname + " " + primaryDoctor.Lname; } //var secondaryDoctor = formHandlerServiceClient.GetAssociateDoctorDetail(patientDetails.PrimaryDoctorId); //if (secondaryDoctor != null) //LblAuthoriseDoctors.Text = secondaryDoctor.Fname + " , " + secondaryDoctor.Lname; foreach (DataRow row in formHandlerServiceClient.GetAssociatedPhysiciansList(patientDetails.PrimaryDoctorId).Rows) { LblAuthoriseDoctors.Text += " , " + row["Lname"].ToString().Trim() + " " + row["Fname"].ToString().Trim(); } ImgSignature1.ImageUrl = "/GetImage.ashx?PatientId=" + PatientId + "&Signature=1"; ImgSignature2.ImageUrl = "/GetImage.ashx?PatientId=" + PatientId + "&Signature=2"; ImgSignature3.ImageUrl = "/GetImage.ashx?PatientId=" + PatientId + "&Signature=3"; ImgSignature4.ImageUrl = "/GetImage.ashx?PatientId=" + PatientId + "&Signature=4"; ImgSignature5.ImageUrl = "/GetImage.ashx?PatientId=" + PatientId + "&Signature=5"; ImgPatientSignature.ImageUrl = "/GetImage.ashx?PatientId=" + PatientId + "&Signature=7"; } } }
protected void Page_Load(object sender, EventArgs e) { string PatientId; try { PatientId = Request.QueryString["PatientID"]; } catch (Exception) { PatientId = string.Empty; } if (!string.IsNullOrEmpty(PatientId)) { var formHandlerServiceClient = new FormHandlerServiceClient(); var patientDetails = formHandlerServiceClient.GetPatientDetail(PatientId); if (patientDetails != null) { LblPatientMRID.Text = patientDetails.MRHash; LblPatientName.Text = patientDetails.name; LblDate.Text = patientDetails.AdmDate.ToString("MM dd yyyy"); LblTime.Text = DateTime.Now.ToShortTimeString(); LblPatientName2.Text = patientDetails.name; LblProcedureName.Text = patientDetails.ProcedureName; var primaryDoctor = formHandlerServiceClient.GetPrimaryDoctorDetail(patientDetails.PrimaryDoctorId); if (primaryDoctor != null) { LblPrimaryDoctor.Text = primaryDoctor.Fname + " " + primaryDoctor.Lname; LblAuthoriseDoctors.Text = primaryDoctor.Fname + " " + primaryDoctor.Lname; } //var secondaryDoctor = formHandlerServiceClient.GetAssociateDoctorDetail(patientDetails.PrimaryDoctorId); //if (secondaryDoctor != null) //LblAuthoriseDoctors.Text = secondaryDoctor.Fname + " , " + secondaryDoctor.Lname; foreach (DataRow row in formHandlerServiceClient.GetAssociatedPhysiciansList(patientDetails.PrimaryDoctorId).Rows) { LblAuthoriseDoctors.Text += " , " + row["Lname"].ToString().Trim() + " " + row["Fname"].ToString().Trim(); } ImgSignature1.ImageUrl = "/GetImage.ashx?PatientId=" + PatientId + "&Signature=1"; ImgSignature2.ImageUrl = "/GetImage.ashx?PatientId=" + PatientId + "&Signature=2"; ImgSignature3.ImageUrl = "/GetImage.ashx?PatientId=" + PatientId + "&Signature=3"; ImgSignature4.ImageUrl = "/GetImage.ashx?PatientId=" + PatientId + "&Signature=4"; ImgSignature5.ImageUrl = "/GetImage.ashx?PatientId=" + PatientId + "&Signature=5"; ImgPatientSignature.ImageUrl = "/GetImage.ashx?PatientId=" + PatientId + "&Signature=7"; } } }
protected void Page_Load(object sender, EventArgs e) { string patientId; try { patientId = Request.QueryString["PatientID"]; } catch (Exception) { patientId = string.Empty; } if (!string.IsNullOrEmpty(patientId)) { var formHandlerServiceClient = new FormHandlerServiceClient(); var patientDetails = formHandlerServiceClient.GetPatientDetail(patientId); if (patientDetails != null) { var primaryDoctor = formHandlerServiceClient.GetPrimaryDoctorDetail(patientDetails.PrimaryDoctorId); if (primaryDoctor != null) { //LblPrimaryDoctor.Text = primaryDoctor.Fname + " " + primaryDoctor.Lname; LblAuthoriseDoctors.Text = primaryDoctor.Fname + " " + primaryDoctor.Lname; } LblPatientName2.Text = patientDetails.name; LblProcedureName.Text = patientDetails.ProcedureName; foreach ( DataRow row in formHandlerServiceClient.GetAssociatedPhysiciansList(patientDetails.PrimaryDoctorId).Rows) { LblAuthoriseDoctors.Text += " , " + row["Lname"].ToString().Trim() + " " + row["Fname"].ToString().Trim(); } ImgSignature1.ImageUrl = "/GetImage.ashx?PatientId=" + patientId + "&Signature=1"; ImgSignature2.ImageUrl = "/GetImage.ashx?PatientId=" + patientId + "&Signature=2"; ImgSignature3.ImageUrl = "/GetImage.ashx?PatientId=" + patientId + "&Signature=3"; ImgSignature4.ImageUrl = "/GetImage.ashx?PatientId=" + patientId + "&Signature=4"; ImgSignature5.ImageUrl = "/GetImage.ashx?PatientId=" + patientId + "&Signature=5"; ImgSignature7.ImageUrl = "/GetImage.ashx?PatientId=" + patientId + "&Signature=7"; ImgSignature8.ImageUrl = "/GetImage.ashx?PatientId=" + patientId + "&Signature=8"; ImgSignature9.ImageUrl = "/GetImage.ashx?PatientId=" + patientId + "&Signature=9"; ImgSignature10.ImageUrl = "/GetImage.ashx?PatientId=" + patientId + "&Signature=10"; ImgSignature11.ImageUrl = "/GetImage.ashx?PatientId=" + patientId + "&Signature=11"; } } }
protected void Page_Load(object sender, EventArgs e) { string patientId; try { patientId = Request.QueryString["PatientID"]; } catch (Exception) { patientId = string.Empty; } if (!string.IsNullOrEmpty(patientId)) { var formHandlerServiceClient = new FormHandlerServiceClient(); var patientDetails = formHandlerServiceClient.GetPatientDetail(patientId); if (patientDetails != null) { var primaryDoctor = formHandlerServiceClient.GetPrimaryDoctorDetail(patientDetails.PrimaryDoctorId); if (primaryDoctor != null) { LblAssociatedDoctor.Text = primaryDoctor.Fname + " " + primaryDoctor.Lname; LblAuthoriseDoctors.Text = primaryDoctor.Fname + " " + primaryDoctor.Lname; } foreach (DataRow row in formHandlerServiceClient.GetAssociatedPhysiciansList(patientDetails.PrimaryDoctorId).Rows) { LblAuthoriseDoctors.Text += " , " + row["Lname"].ToString().Trim() + " " + row["Fname"].ToString().Trim(); } LblDOB.Text = DateTime.Now.ToString("MMM dd yyyy"); LblPatientAdminDate.Text = patientDetails.AdmDate.ToString("MMM dd yyyy"); LblPatientAdminTime.Text = patientDetails.AdmDate.ToLongTimeString(); LblPatientId.Text = patientId; LblPatientMrHash.Text = patientDetails.MRHash; LblPatientName.Text = patientDetails.name; LblPatientName2.Text = patientDetails.name; LblPatientUnableToSignBecause.Text = patientDetails.UnableToSignReason; LblProcedureName.Text = patientDetails.ProcedureName; LblSignatureDateTime.Text = DateTime.Now.ToString("MMM dd yyyy") + " <br /> " + DateTime.Now.ToLongTimeString(); LblTranslatedDateTime.Text = DateTime.Now.ToString("MMM dd yyyy") + " <br /> " + DateTime.Now.ToLongTimeString(); LblAuthorizedSignDateTime.Text = DateTime.Now.ToString("MMM dd yyyy") + " <br /> " + DateTime.Now.ToLongTimeString(); LblAssociatedDoctorTimeStamp.Text = DateTime.Now.ToString("MMM dd yyyy") + " <br /> " + DateTime.Now.ToLongTimeString(); LblDate.Text = DateTime.Now.ToString("MMM dd yyyy"); LblAge.Text = patientDetails.age.ToString(); LblGender.Text = patientDetails.gender; ImgSignature1.ImageUrl = "/GetImage.ashx?PatientId=" + patientId + "&Signature=1&ConsentType=OutsideORConsent"; ImgSignature2.ImageUrl = "/GetImage.ashx?PatientId=" + patientId + "&Signature=2&ConsentType=OutsideORConsent"; ImgSignature3.ImageUrl = "/GetImage.ashx?PatientId=" + patientId + "&Signature=3&ConsentType=OutsideORConsent"; ImgSignature4.ImageUrl = "/GetImage.ashx?PatientId=" + patientId + "&Signature=4&ConsentType=OutsideORConsent"; ImgSignature5.ImageUrl = "/GetImage.ashx?PatientId=" + patientId + "&Signature=5&ConsentType=OutsideORConsent"; if (!string.IsNullOrEmpty(LblPatientUnableToSignBecause.Text.Trim())) { PnlPatientSignature.Visible = false; PnlPatientUnableToSignBecause.Visible = true; PnlAuthorizedSignature.Visible = true; } else { PnlPatientSignature.Visible = true; PnlPatientUnableToSignBecause.Visible = false; PnlAuthorizedSignature.Visible = false; } ImgSignature6.ImageUrl = "/GetImage.ashx?PatientId=" + patientId + "&Signature=7&ConsentType=OutsideORConsent"; ImgSignature7.ImageUrl = "/GetImage.ashx?PatientId=" + patientId + "&Signature=8&ConsentType=OutsideORConsent"; ImgSignature8.ImageUrl = "/GetImage.ashx?PatientId=" + patientId + "&Signature=9&ConsentType=OutsideORConsent"; ImgSignature9.ImageUrl = "/GetImage.ashx?PatientId=" + patientId + "&Signature=10&ConsentType=OutsideORConsent"; } } }
protected void Page_Load(object sender, EventArgs e) { try { DdLProcedures.Attributes["multiple"] = "multiple"; bool isItNewSession = true; try { isItNewSession = (bool)Session["NewSession"]; } catch (Exception) { } for (int i = 0; i < 7; i++) ViewState["Signature" + i] = string.Empty; var formHandlerServiceClient = new FormHandlerServiceClient(); if (!IsPostBack) { DdLProcedures.Items.Clear(); //DdLProcedures.Items.Add("--------Selected Procedures--------"); foreach (string procedureName in formHandlerServiceClient.GetProcedurenameList()) DdLProcedures.Items.Add(procedureName.Trim()); } string patientId = string.Empty; try { patientId = Session["PatientID"].ToString(); } catch (Exception) { try { patientId = Request.QueryString["PatientId"]; } catch (Exception) { // Response.Redirect("/PatientConsent.aspx"); } } if (!IsPostBack) { DdlPrimaryDoctors.Items.Add("----Select Primary Doctor----"); var physicians = formHandlerServiceClient.GetPrimaryPhysiciansList(); if (physicians != null) { foreach (DataRow row in physicians.Rows) { DdlPrimaryDoctors.Items.Add(new System.Web.UI.WebControls.ListItem(row["Lname"] + ", " + row["Fname"], row["PhysicianId"].ToString())); } } if (!string.IsNullOrEmpty(patientId)) { var patientDetail = formHandlerServiceClient.GetPatientDetail(patientId); if (patientDetail != null) { LblPatientName.Text = patientDetail.name; LblDate.Text = patientDetail.AdmDate.ToString("MMM dd yyyy"); LblPatientMRId.Text = patientDetail.MRHash; LblTime.Text = DateTime.Now.ToShortTimeString(); if (!isItNewSession) { //var primaryDoctor = formHandlerServiceClient.GetPrimaryDoctorDetail(patientDetail.PrimaryDoctorId); //DdlPrimaryDoctors.SelectedValue = primaryDoctor.Lname + ", " + primaryDoctor.Fname; LoadAssociatedDoctors(patientDetail.PrimaryDoctorId); //var associatedDoctor = formHandlerServiceClient.GetAssociateDoctorDetail(patientDetail.AssociatedDoctorId); // DdlAssociatedDoctors.SelectedValue = associatedDoctor.Lname + ", " + associatedDoctor.Fname; if (!string.IsNullOrEmpty(patientDetail.PrimaryDoctorId)) DdlPrimaryDoctors.Items.FindByValue(patientDetail.PrimaryDoctorId).Selected = true; //if (!string.IsNullOrEmpty(patientDetail.AssociatedDoctorId)) // DdlAssociatedDoctors.Items.FindByValue(patientDetail.AssociatedDoctorId).Selected = true; //if (!string.IsNullOrEmpty(patientDetail.ProcedureName)) // DdLProcedures.Items.FindByText(patientDetail.ProcedureName.Trim()).Selected = true; if (!string.IsNullOrEmpty(patientDetail.ProcedureName)) { HdnSelectedProcedures.Value = patientDetail.ProcedureName; } } } else DdlPrimaryDoctors.SelectedIndex = 0; } } if (!isItNewSession) { // Loading Signatures based on the selected patient ViewState["Signature1"] = formHandlerServiceClient.GetPatientSignature(patientId, "SurgicalConsent", "signature1"); ViewState["Signature2"] = formHandlerServiceClient.GetPatientSignature(patientId, "SurgicalConsent", "signature2"); ViewState["Signature3"] = formHandlerServiceClient.GetPatientSignature(patientId, "SurgicalConsent", "signature3"); ViewState["Signature4"] = formHandlerServiceClient.GetPatientSignature(patientId, "SurgicalConsent", "signature4"); ViewState["Signature5"] = formHandlerServiceClient.GetPatientSignature(patientId, "SurgicalConsent", "signature5"); } } catch (Exception) { Response.Redirect("/PatientConsent.aspx"); } }
protected void Page_Load(object sender, EventArgs e) { try { DdLProcedures.Attributes["multiple"] = "multiple"; bool isItNewSession = true; try { isItNewSession = (bool)Session["NewSession"]; } catch (Exception) { } for (int i = 0; i < 7; i++) { ViewState["Signature" + i] = string.Empty; } var formHandlerServiceClient = new FormHandlerServiceClient(); if (!IsPostBack) { DdLProcedures.Items.Clear(); //DdLProcedures.Items.Add("--------Selected Procedures--------"); foreach (string procedureName in formHandlerServiceClient.GetProcedurenameList()) { DdLProcedures.Items.Add(procedureName.Trim()); } } string patientId = string.Empty; try { patientId = Session["PatientID"].ToString(); } catch (Exception) { try { patientId = Request.QueryString["PatientId"]; } catch (Exception) { // Response.Redirect("/PatientConsent.aspx"); } } if (!IsPostBack) { DdlPrimaryDoctors.Items.Add("----Select Primary Doctor----"); var physicians = formHandlerServiceClient.GetPrimaryPhysiciansList(); if (physicians != null) { foreach (DataRow row in physicians.Rows) { DdlPrimaryDoctors.Items.Add(new System.Web.UI.WebControls.ListItem(row["Lname"] + ", " + row["Fname"], row["PhysicianId"].ToString())); } } if (!string.IsNullOrEmpty(patientId)) { var patientDetail = formHandlerServiceClient.GetPatientDetail(patientId); if (patientDetail != null) { LblPatientName.Text = patientDetail.name; LblDate.Text = patientDetail.AdmDate.ToString("MMM dd yyyy"); LblPatientMRId.Text = patientDetail.MRHash; LblTime.Text = DateTime.Now.ToShortTimeString(); if (!isItNewSession) { //var primaryDoctor = formHandlerServiceClient.GetPrimaryDoctorDetail(patientDetail.PrimaryDoctorId); //DdlPrimaryDoctors.SelectedValue = primaryDoctor.Lname + ", " + primaryDoctor.Fname; LoadAssociatedDoctors(patientDetail.PrimaryDoctorId); //var associatedDoctor = formHandlerServiceClient.GetAssociateDoctorDetail(patientDetail.AssociatedDoctorId); // DdlAssociatedDoctors.SelectedValue = associatedDoctor.Lname + ", " + associatedDoctor.Fname; if (!string.IsNullOrEmpty(patientDetail.PrimaryDoctorId)) { DdlPrimaryDoctors.Items.FindByValue(patientDetail.PrimaryDoctorId).Selected = true; } //if (!string.IsNullOrEmpty(patientDetail.AssociatedDoctorId)) // DdlAssociatedDoctors.Items.FindByValue(patientDetail.AssociatedDoctorId).Selected = true; //if (!string.IsNullOrEmpty(patientDetail.ProcedureName)) // DdLProcedures.Items.FindByText(patientDetail.ProcedureName.Trim()).Selected = true; if (!string.IsNullOrEmpty(patientDetail.ProcedureName)) { HdnSelectedProcedures.Value = patientDetail.ProcedureName; } } } else { DdlPrimaryDoctors.SelectedIndex = 0; } } } if (!isItNewSession) { // Loading Signatures based on the selected patient ViewState["Signature1"] = formHandlerServiceClient.GetPatientSignature(patientId, "SurgicalConsent", "signature1"); ViewState["Signature2"] = formHandlerServiceClient.GetPatientSignature(patientId, "SurgicalConsent", "signature2"); ViewState["Signature3"] = formHandlerServiceClient.GetPatientSignature(patientId, "SurgicalConsent", "signature3"); ViewState["Signature4"] = formHandlerServiceClient.GetPatientSignature(patientId, "SurgicalConsent", "signature4"); ViewState["Signature5"] = formHandlerServiceClient.GetPatientSignature(patientId, "SurgicalConsent", "signature5"); } } catch (Exception) { Response.Redirect("/PatientConsent.aspx"); } }
protected void Page_Load(object sender, EventArgs e) { try { if (!IsPostBack) { SetPanels(false); if (Utilities.IsDevelopmentMode) { Session["PatientID"] = 1; } for (int i = 0; i < 7; i++) { ViewState["Signature" + i] = string.Empty; } string patientId = string.Empty; try { patientId = Session["PatientID"].ToString(); } catch (Exception) { try { patientId = Request.QueryString["PatientId"]; } catch (Exception) { Response.Redirect("/PatientConsent.aspx"); } } var formHandlerServiceClient = new FormHandlerServiceClient(); var patientDetail = formHandlerServiceClient.GetPatientDetail(patientId); if (patientDetail != null) { LbldoctorName.Text = string.Empty; if (!string.IsNullOrEmpty(patientDetail.PrimaryDoctorId)) { var doctorDetail = formHandlerServiceClient.GetPrimaryDoctorDetail(patientDetail.PrimaryDoctorId); if (doctorDetail != null) { LbldoctorName.Text += doctorDetail.Fname + " " + doctorDetail.Lname; } LblAssociateDoctors.Text = string.Empty; foreach (DataRow row in formHandlerServiceClient.GetAssociatedPhysiciansList(patientDetail.PrimaryDoctorId).Rows) { LbldoctorName.Text += " " + row["Lname"].ToString().Trim() + " " + row["Fname"].ToString().Trim(); //if (!string.IsNullOrEmpty(LblAssociateDoctors.Text)) // LblAssociateDoctors.Text += " , "; //LblAssociateDoctors.Text += row["Lname"].ToString().Trim() + " " + row["Fname"].ToString().Trim(); } } LblProcedurename.Text = patientDetail.ProcedureName; // Loading Signatures based on the selected patient /*ViewState["Signature1"] = formHandlerServiceClient.GetPatientSignature(patientId, "SurgicalConsent", "signature7"); * ViewState["Signature2"] = formHandlerServiceClient.GetPatientSignature(patientId, "SurgicalConsent", "signature8"); * ViewState["Signature3"] = formHandlerServiceClient.GetPatientSignature(patientId, "SurgicalConsent", "signature9"); * ViewState["Signature4"] = formHandlerServiceClient.GetPatientSignature(patientId, "SurgicalConsent", "signature10"); * ViewState["Signature5"] = formHandlerServiceClient.GetPatientSignature(patientId, "SurgicalConsent", "signature11"); */ } } else { for (int i = 1; i < 6; i++) { if (Request.Form["HdnImage" + i.ToString()] != null) { ViewState["Signature" + i.ToString()] = Request.Form["HdnImage" + i.ToString()]; } } } } catch (Exception) { return; //Response.Redirect("/PatientConsent.aspx"); } }
protected void Page_Load(object sender, EventArgs e) { try { if (!IsPostBack) { SetPanels(false); if (Utilities.IsDevelopmentMode) { Session["PatientID"] = 1; } for (int i = 0; i < 7; i++) ViewState["Signature" + i] = string.Empty; string patientId = string.Empty; try { patientId = Session["PatientID"].ToString(); } catch (Exception) { try { patientId = Request.QueryString["PatientId"]; } catch (Exception) { Response.Redirect("/PatientConsent.aspx"); } } var formHandlerServiceClient = new FormHandlerServiceClient(); var patientDetail = formHandlerServiceClient.GetPatientDetail(patientId); if (patientDetail != null) { LbldoctorName.Text = string.Empty; if (!string.IsNullOrEmpty(patientDetail.PrimaryDoctorId)) { var doctorDetail = formHandlerServiceClient.GetPrimaryDoctorDetail(patientDetail.PrimaryDoctorId); if (doctorDetail != null) LbldoctorName.Text += doctorDetail.Fname + " " + doctorDetail.Lname; LblAssociateDoctors.Text = string.Empty; foreach (DataRow row in formHandlerServiceClient.GetAssociatedPhysiciansList(patientDetail.PrimaryDoctorId).Rows) { LbldoctorName.Text += " " + row["Lname"].ToString().Trim() + " " + row["Fname"].ToString().Trim(); //if (!string.IsNullOrEmpty(LblAssociateDoctors.Text)) // LblAssociateDoctors.Text += " , "; //LblAssociateDoctors.Text += row["Lname"].ToString().Trim() + " " + row["Fname"].ToString().Trim(); } } LblProcedurename.Text = patientDetail.ProcedureName; // Loading Signatures based on the selected patient /*ViewState["Signature1"] = formHandlerServiceClient.GetPatientSignature(patientId, "SurgicalConsent", "signature7"); ViewState["Signature2"] = formHandlerServiceClient.GetPatientSignature(patientId, "SurgicalConsent", "signature8"); ViewState["Signature3"] = formHandlerServiceClient.GetPatientSignature(patientId, "SurgicalConsent", "signature9"); ViewState["Signature4"] = formHandlerServiceClient.GetPatientSignature(patientId, "SurgicalConsent", "signature10"); ViewState["Signature5"] = formHandlerServiceClient.GetPatientSignature(patientId, "SurgicalConsent", "signature11"); */ } } else { for (int i = 1; i < 6; i++) { if (Request.Form["HdnImage" + i.ToString()] != null) ViewState["Signature" + i.ToString()] = Request.Form["HdnImage" + i.ToString()]; } } } catch (Exception) { return; //Response.Redirect("/PatientConsent.aspx"); } }
protected void Page_Load(object sender, EventArgs e) { try { DdLProcedures.Attributes["multiple"] = "multiple"; for (int i = 0; i < 7; i++) { ViewState["Signature" + i] = string.Empty; } var formHandlerServiceClient = new FormHandlerServiceClient(); if (!IsPostBack) { DdLProcedures.Items.Clear(); //DdLProcedures.Items.Add("--------Selected Procedures--------"); foreach (string procedureName in formHandlerServiceClient.GetProcedurenameList()) { DdLProcedures.Items.Add(procedureName.Trim()); } DdLProcedures.Items.Add("Other"); } string patientId; try { patientId = Session["PatientID"].ToString(); } catch (Exception) { try { patientId = Request.QueryString["PatientId"]; } catch (Exception) { patientId = string.Empty; } } if (!IsPostBack) { DdlPrimaryDoctors.Items.Add("----Select Primary Doctor----"); var physicians = formHandlerServiceClient.GetPrimaryPhysiciansList(); if (physicians != null) { foreach (DataRow row in physicians.Rows) { DdlPrimaryDoctors.Items.Add(new ListItem(row["Lname"] + ", " + row["Fname"], row["PhysicianId"].ToString())); } } if (!string.IsNullOrEmpty(patientId)) { var patientDetail = formHandlerServiceClient.GetPatientDetail(patientId, ConsentType.OutsideOR.ToString()); if (patientDetail != null) { LblPatientName.Text = patientDetail.name; LblDate.Text = patientDetail.AdmDate.ToString("MMM dd yyyy"); LblPatientMRId.Text = patientDetail.MRHash; LblTime.Text = DateTime.Now.ToShortTimeString(); LoadAssociatedDoctors(patientDetail.PrimaryDoctorId); if (!string.IsNullOrEmpty(patientDetail.PrimaryDoctorId)) { DdlPrimaryDoctors.Items.FindByValue(patientDetail.PrimaryDoctorId).Selected = true; } if (!string.IsNullOrEmpty(patientDetail.ProcedureName)) { HdnSelectedProcedures.Value = patientDetail.ProcedureName; } } else { DdlPrimaryDoctors.SelectedIndex = 0; } } } } catch (Exception) { Response.Redirect("/PatientConsent.aspx"); } }
protected void Page_Load(object sender, EventArgs e) { try { DdLProcedures.Attributes["multiple"] = "multiple"; for (int i = 0; i < 7; i++) ViewState["Signature" + i] = string.Empty; var formHandlerServiceClient = new FormHandlerServiceClient(); if (!IsPostBack) { DdLProcedures.Items.Clear(); //DdLProcedures.Items.Add("--------Selected Procedures--------"); foreach (string procedureName in formHandlerServiceClient.GetProcedurenameList()) DdLProcedures.Items.Add(procedureName.Trim()); DdLProcedures.Items.Add("Other"); } string patientId; try { patientId = Session["PatientID"].ToString(); } catch (Exception) { try { patientId = Request.QueryString["PatientId"]; } catch (Exception) { patientId = string.Empty; } } if (!IsPostBack) { DdlPrimaryDoctors.Items.Add("----Select Primary Doctor----"); var physicians = formHandlerServiceClient.GetPrimaryPhysiciansList(); if (physicians != null) { foreach (DataRow row in physicians.Rows) { DdlPrimaryDoctors.Items.Add(new ListItem(row["Lname"] + ", " + row["Fname"], row["PhysicianId"].ToString())); } } if (!string.IsNullOrEmpty(patientId)) { var patientDetail = formHandlerServiceClient.GetPatientDetail(patientId, ConsentType.OutsideOR.ToString()); if (patientDetail != null) { LblPatientName.Text = patientDetail.name; LblDate.Text = patientDetail.AdmDate.ToString("MMM dd yyyy"); LblPatientMRId.Text = patientDetail.MRHash; LblTime.Text = DateTime.Now.ToShortTimeString(); LoadAssociatedDoctors(patientDetail.PrimaryDoctorId); if (!string.IsNullOrEmpty(patientDetail.PrimaryDoctorId)) DdlPrimaryDoctors.Items.FindByValue(patientDetail.PrimaryDoctorId).Selected = true; if (!string.IsNullOrEmpty(patientDetail.ProcedureName)) { HdnSelectedProcedures.Value = patientDetail.ProcedureName; } } else DdlPrimaryDoctors.SelectedIndex = 0; } } } catch (Exception) { Response.Redirect("/PatientConsent.aspx"); } }
protected void Page_Load(object sender, EventArgs e) { try { if (!IsPostBack) { SetPanels(false); if (Utilities.IsDevelopmentMode) { Session["PatientID"] = 1; } for (int i = 0; i < 7; i++) { ViewState["Signature" + i] = string.Empty; } string patientId = string.Empty; try { patientId = Session["PatientID"].ToString(); } catch (Exception) { try { patientId = Request.QueryString["PatientId"]; } catch (Exception) { // Response.Redirect("/PatientConsent.aspx"); } } var formHandlerServiceClient = new FormHandlerServiceClient(); var patientDetail = formHandlerServiceClient.GetPatientDetail(patientId); if (patientDetail != null) { LblPatientName.Text = patientDetail.name; LblDate.Text = patientDetail.AdmDate.ToString("MMM dd yyyy"); LblPatientMRId.Text = patientDetail.MRHash; LblTime.Text = DateTime.Now.ToShortTimeString(); LbldoctorName.Text = string.Empty; if (!string.IsNullOrEmpty(patientDetail.PrimaryDoctorId)) { var doctorDetail = formHandlerServiceClient.GetPrimaryDoctorDetail(patientDetail.PrimaryDoctorId); if (doctorDetail != null) { LbldoctorName.Text += doctorDetail.Fname + " " + doctorDetail.Lname; } foreach (DataRow row in formHandlerServiceClient.GetAssociatedPhysiciansList(patientDetail.PrimaryDoctorId).Rows) { LbldoctorName.Text += " " + row["Lname"].ToString().Trim() + " " + row["Fname"].ToString().Trim(); } } //if (!string.IsNullOrEmpty(patientDetail.AssociatedDoctorId)) //{ //var doctorDetail = formHandlerServiceClient.GetAssociateDoctorDetail(patientDetail.PrimaryDoctorId); //if (doctorDetail != null) //{ // if (!string.IsNullOrEmpty(LbldoctorName.Text)) // LbldoctorName.Text += " , "; // LbldoctorName.Text += doctorDetail.Fname + " " + doctorDetail.Lname; //} //} LblProcedurename.Text = patientDetail.ProcedureName; //TxtPatientNotSignedBecause.Text = patientDetail.UnableToSignReason; /* * * // Loading Signatures based on the selected patient * ViewState["Signature1"] = formHandlerServiceClient.GetPatientSignature(patientId, "SurgicalConsent", "signature7"); * ViewState["Signature2"] = formHandlerServiceClient.GetPatientSignature(patientId, "SurgicalConsent", "signature8"); * ViewState["Signature3"] = formHandlerServiceClient.GetPatientSignature(patientId, "SurgicalConsent", "signature9"); * ViewState["Signature4"] = formHandlerServiceClient.GetPatientSignature(patientId, "SurgicalConsent", "signature10"); * ViewState["Signature5"] = formHandlerServiceClient.GetPatientSignature(patientId, "SurgicalConsent", "signature11"); */ } } } catch (Exception ex) { //Response.Redirect("/PatientConsent.aspx"); } }
protected void Page_Load(object sender, EventArgs e) { try { if (!IsPostBack) { SetPanels(false); if (Utilities.IsDevelopmentMode) { Session["PatientID"] = 1; } for (int i = 0; i < 7; i++) { ViewState["Signature" + i] = string.Empty; } string patientId = string.Empty; try { patientId = Session["PatientID"].ToString(); } catch (Exception) { try { patientId = Request.QueryString["PatientId"]; } catch (Exception) { // Response.Redirect("/PatientConsent.aspx"); } } var formHandlerServiceClient = new FormHandlerServiceClient(); var patientDetail = formHandlerServiceClient.GetPatientDetail(patientId, ConsentType.OutsideOR.ToString()); if (patientDetail != null) { LblPatientName.Text = patientDetail.name; LblDate.Text = patientDetail.AdmDate.ToString("MMM dd yyyy"); LblPatientMRId.Text = patientDetail.MRHash; LblTime.Text = DateTime.Now.ToShortTimeString(); LbldoctorName.Text = string.Empty; if (!string.IsNullOrEmpty(patientDetail.PrimaryDoctorId)) { var doctorDetail = formHandlerServiceClient.GetPrimaryDoctorDetail(patientDetail.PrimaryDoctorId); if (doctorDetail != null) { LbldoctorName.Text += doctorDetail.Fname + " " + doctorDetail.Lname; } LblAssociateDoctors.Text = string.Empty; foreach (DataRow row in formHandlerServiceClient.GetAssociatedPhysiciansList(patientDetail.PrimaryDoctorId).Rows) { LbldoctorName.Text += " " + row["Lname"].ToString().Trim() + " " + row["Fname"].ToString().Trim(); if (!string.IsNullOrEmpty(LblAssociateDoctors.Text)) { LblAssociateDoctors.Text += " , "; } LblAssociateDoctors.Text += row["Lname"].ToString().Trim() + " " + row["Fname"].ToString().Trim(); } } LblProcedurename.Text = patientDetail.ProcedureName; } } } catch (Exception) { return; //Response.Redirect("/PatientConsent.aspx"); } }
protected void Page_Load(object sender, EventArgs e) { try { if (!IsPostBack) { SetPanels(false); if (Utilities.IsDevelopmentMode) { Session["PatientID"] = 1; } for (int i = 0; i < 7; i++) ViewState["Signature" + i] = string.Empty; string patientId = string.Empty; try { patientId = Session["PatientID"].ToString(); } catch (Exception) { try { patientId = Request.QueryString["PatientId"]; } catch (Exception) { // Response.Redirect("/PatientConsent.aspx"); } } var formHandlerServiceClient = new FormHandlerServiceClient(); var patientDetail = formHandlerServiceClient.GetPatientDetail(patientId, ConsentType.OutsideOR.ToString()); if (patientDetail != null) { LblPatientName.Text = patientDetail.name; LblDate.Text = patientDetail.AdmDate.ToString("MMM dd yyyy"); LblPatientMRId.Text = patientDetail.MRHash; LblTime.Text = DateTime.Now.ToShortTimeString(); LbldoctorName.Text = string.Empty; if (!string.IsNullOrEmpty(patientDetail.PrimaryDoctorId)) { var doctorDetail = formHandlerServiceClient.GetPrimaryDoctorDetail(patientDetail.PrimaryDoctorId); if (doctorDetail != null) LbldoctorName.Text += doctorDetail.Fname + " " + doctorDetail.Lname; LblAssociateDoctors.Text = string.Empty; foreach (DataRow row in formHandlerServiceClient.GetAssociatedPhysiciansList(patientDetail.PrimaryDoctorId).Rows) { LbldoctorName.Text += " " + row["Lname"].ToString().Trim() + " " + row["Fname"].ToString().Trim(); if (!string.IsNullOrEmpty(LblAssociateDoctors.Text)) LblAssociateDoctors.Text += " , "; LblAssociateDoctors.Text += row["Lname"].ToString().Trim() + " " + row["Fname"].ToString().Trim(); } } LblProcedurename.Text = patientDetail.ProcedureName; } } } catch (Exception) { return; //Response.Redirect("/PatientConsent.aspx"); } }
protected void Page_Load(object sender, EventArgs e) { try { if (!IsPostBack) { SetPanels(false); if (Utilities.IsDevelopmentMode) { Session["PatientID"] = 1; } for (int i = 0; i < 7; i++) ViewState["Signature" + i] = string.Empty; string patientId = string.Empty; try { patientId = Session["PatientID"].ToString(); } catch (Exception) { try { patientId = Request.QueryString["PatientId"]; } catch (Exception) { // Response.Redirect("/PatientConsent.aspx"); } } var formHandlerServiceClient = new FormHandlerServiceClient(); var patientDetail = formHandlerServiceClient.GetPatientDetail(patientId); if (patientDetail != null) { LblPatientName.Text = patientDetail.name; LblDate.Text = patientDetail.AdmDate.ToString("MMM dd yyyy"); LblPatientMRId.Text = patientDetail.MRHash; LblTime.Text = DateTime.Now.ToShortTimeString(); LbldoctorName.Text = string.Empty; if (!string.IsNullOrEmpty(patientDetail.PrimaryDoctorId)) { var doctorDetail = formHandlerServiceClient.GetPrimaryDoctorDetail(patientDetail.PrimaryDoctorId); if (doctorDetail != null) LbldoctorName.Text += doctorDetail.Fname + " " + doctorDetail.Lname; foreach (DataRow row in formHandlerServiceClient.GetAssociatedPhysiciansList(patientDetail.PrimaryDoctorId).Rows) { LbldoctorName.Text += " " + row["Lname"].ToString().Trim() + " " + row["Fname"].ToString().Trim(); } } //if (!string.IsNullOrEmpty(patientDetail.AssociatedDoctorId)) //{ //var doctorDetail = formHandlerServiceClient.GetAssociateDoctorDetail(patientDetail.PrimaryDoctorId); //if (doctorDetail != null) //{ // if (!string.IsNullOrEmpty(LbldoctorName.Text)) // LbldoctorName.Text += " , "; // LbldoctorName.Text += doctorDetail.Fname + " " + doctorDetail.Lname; //} //} LblProcedurename.Text = patientDetail.ProcedureName; //TxtPatientNotSignedBecause.Text = patientDetail.UnableToSignReason; /* // Loading Signatures based on the selected patient ViewState["Signature1"] = formHandlerServiceClient.GetPatientSignature(patientId, "SurgicalConsent", "signature7"); ViewState["Signature2"] = formHandlerServiceClient.GetPatientSignature(patientId, "SurgicalConsent", "signature8"); ViewState["Signature3"] = formHandlerServiceClient.GetPatientSignature(patientId, "SurgicalConsent", "signature9"); ViewState["Signature4"] = formHandlerServiceClient.GetPatientSignature(patientId, "SurgicalConsent", "signature10"); ViewState["Signature5"] = formHandlerServiceClient.GetPatientSignature(patientId, "SurgicalConsent", "signature11"); */ } } } catch (Exception ex) { //Response.Redirect("/PatientConsent.aspx"); } }