protected void BuildHPI() { if (patientID != 0) { try { PatientDa pDa = new PatientDa(); DataSet hpiDs = pDa.GetPatientHPIBladder(this.patientID); hpi.DataSource = hpiDs.Tables[0].DefaultView; hpi.DataBind(); int rowCount = hpiDs.Tables[0].Rows.Count; /* if (rowCount < NumHpiRowsAllowed) * { * int newHeight = (NumHpiRowsAllowed-rowCount)*10; * HpiSpacer.Height = newHeight; * } */ } catch (Exception ex) { // HpiSpacer.Height = NumHpiRowsAllowed*10; //Caisis.UI.Other.EmailError.SendErrorEmail( "Clinic Form: " + this._formTitle, "error creating hpi output"); ExceptionHandler.Publish(ex); } } /* else * { * HpiSpacer.Height = NumHpiRowsAllowed*14; * } */ }
protected void BuildHPI() { if (patientID != 0) { try { PatientDa pDa = new PatientDa(); DataSet hpiDs = pDa.GetPatientHPIBladder(this.patientID); int rowCount = hpiDs.Tables[0].Rows.Count; if (rowCount > 0) { hpi.DataSource = hpiDs.Tables[0].DefaultView; hpi.DataBind(); if (rowCount > (NumHpiRowsAllowed / 5)) { BlankHPITable.Visible = false; } } else { PopulatedHPITable.Visible = false; } } catch (Exception ex) { BlankHPITable.Visible = true; PopulatedHPITable.Visible = false; //Caisis.UI.Other.EmailError.SendErrorEmail( "Clinic Form: " + this._formTitle, "error creating hpi output"); ExceptionHandler.Publish(ex); } } else { PopulatedHPITable.Visible = false; } }
protected void BuildHPI() { try { PatientDa pDa = new PatientDa(); DataSet hpiDs = pDa.GetPatientHPIBladder(this._patientId); DataView view = new DataView(hpiDs.Tables[0]); if (view.Count > 0) { hpi.DataSource = view; hpi.DataBind(); NoHPIMsgTr.Visible = false; } } catch (Exception ex) { hpi.Visible = false; ExceptionHandler.Publish(ex); NoHPIMsgTr.Visible = true; NoHPIMsgTd.InnerHtml = "There was an error retreiving the HPI for this patient."; NoHPIMsgTd.InnerHtml += ex.Message; } }
//Get HPI data; formatted OnItemBound protected void BuildHPI() { try { DataSet hpiDs = new DataSet(); Caisis.Controller.DiseaseController dc = new Caisis.Controller.DiseaseController(); string currentDisease = dc.GetDiseaseView(); PatientDa pDa = new PatientDa(); // show most relevant HPI if (currentDisease.ToUpper().Contains("BREAST")) { hpiDs = pDa.GetPatientHPIBreast(this.patientID); HpiTypeDisplay.Text = " (" + currentDisease + ")"; } else if (currentDisease.ToUpper().Contains("BLADDER")) { hpiDs = pDa.GetPatientHPIBladder(this.patientID); HpiTypeDisplay.Text = " (" + currentDisease + ")"; } else if (currentDisease.ToUpper().Contains("KIDNEY")) { hpiDs = pDa.GetPatientHPIKidney(this.patientID); HpiTypeDisplay.Text = " (" + currentDisease + ")"; } else if (currentDisease.ToUpper().Contains("TESTIS")) { hpiDs = pDa.GetPatientHPITestis(this.patientID); HpiTypeDisplay.Text = " (" + currentDisease + ")"; } else { hpiDs = pDa.GetPatientHPI(this.patientID, 0, 0); } int HpiRecordCount = hpiDs.Tables[0].Rows.Count; if (HpiRecordCount > 6) { double rowsPerColumn = HpiRecordCount / 2; RowsAllowed = ((int)Math.Round(rowsPerColumn)) - 1; } else { RowsAllowed = HpiRecordCount; } if (currentDisease.ToUpper().Contains("BREAST")) { hpiBreast.DataSource = hpiDs.Tables[0].DefaultView; hpiBreast.DataBind(); } else { hpi.DataSource = hpiDs.Tables[0].DefaultView; hpi.DataBind(); } } catch (Exception ex) { HPIerrorMsg.Visible = true; HPIerrorMsg.Text = "Error creating the hpi. The administrator has been notified."; ExceptionHandler.Publish(ex); } }
protected void BuildHPI() { if (patientID != 0) { try { PatientDa pDa = new PatientDa(); DataSet hpiDs = pDa.GetPatientHPIBladder(this.patientID); hpi.DataSource = hpiDs.Tables[0].DefaultView; hpi.DataBind(); int rowCount = hpiDs.Tables[0].Rows.Count; /* if (rowCount < NumHpiRowsAllowed) * { * int newHeight = (NumHpiRowsAllowed-rowCount)*10; * HpiSpacer.Height = newHeight; * } */ NomogramDa nda = new NomogramDa(); try { preRP5Nomo.Text = ((int)Math.Round(nda.GetPreRPResult(patientID, 5), 0)).ToString(); } catch { } try { preRP10Nomo.Text = ((int)Math.Round(nda.GetPreRPResult(patientID, 10), 0)).ToString(); } catch { } try { preXRTNomo.Text = ((int)Math.Round(nda.GetPreXRTResult(patientID), 0)).ToString(); } catch { } try { preBrachyNomo.Text = ((int)Math.Round(nda.GetPreBrachyResult(patientID), 0)).ToString(); } catch { } try { postRP7yrNomo.Text = ((int)Math.Round(nda.GetPostRPResult(patientID, 7), 0)).ToString(); } catch { } try { postRP10yrNomo.Text = ((int)Math.Round(nda.GetPostRPResult(patientID, 10), 0)).ToString(); } catch { } } catch (Exception ex) { // HpiSpacer.Height = NumHpiRowsAllowed*10; //Caisis.UI.Other.EmailError.SendErrorEmail( "Clinic Form: " + this._formTitle, "error creating hpi output"); ExceptionHandler.Publish(ex); } } }
protected void BuildHPI() { if (patientID != 0) { try { PatientDa pDa = new PatientDa(); DataSet hpiDs = pDa.GetPatientHPIBladder(this.patientID); if (hpiDs != null && hpiDs.Tables.Count > 0 && hpiDs.Tables[0].Rows.Count > 0) { int rowCount = hpiDs.Tables[0].Rows.Count; // -------- this section bolds certain lines in the HPI ------------------ bool FirstPosTURFound = false; for (int i = 0; i < rowCount; i++) { if (hpiDs.Tables[0].Rows[i]["PatientHPI"] != null && hpiDs.Tables[0].Rows[i]["PatientHPI"].ToString().Length > 0) { // check for first positive TUR ********************* if (!FirstPosTURFound && hpiDs.Tables[0].Rows[i]["VarName"] != null && hpiDs.Tables[0].Rows[i]["VarName"].ToString().StartsWith("TUR")) { // check if postitive if ((hpiDs.Tables[0].Rows[i]["PatientHPI"].ToString().ToUpper().IndexOf("ABNORMAL") > -1 || (hpiDs.Tables[0].Rows[i]["PatientHPI"].ToString().Length > 13 && hpiDs.Tables[0].Rows[i]["PatientHPI"].ToString().ToUpper().IndexOf(" T", 14) > -1))) { hpiDs.Tables[0].Rows[i]["PatientHPI"] = "<strong>" + hpiDs.Tables[0].Rows[i]["PatientHPI"].ToString() + "</strong>"; FirstPosTURFound = true; if (hpiDs.Tables[0].Rows[i]["VarDate"] != null && hpiDs.Tables[0].Rows[i]["VarDate"].ToString().Length > 0) { DxDateLabel.Text = hpiDs.Tables[0].Rows[i]["VarDate"].ToString(); } } } // bold if cystectomy else if (hpiDs.Tables[0].Rows[i]["VarName"] != null && hpiDs.Tables[0].Rows[i]["VarName"].ToString().ToUpper().Equals("CYSTECTOMY")) { hpiDs.Tables[0].Rows[i]["PatientHPI"] = "<strong>" + hpiDs.Tables[0].Rows[i]["PatientHPI"].ToString() + "</strong>"; if (hpiDs.Tables[0].Rows[i]["ExtraInfo"] != null && hpiDs.Tables[0].Rows[i]["ExtraInfo"].ToString().Length > 0) { CystectomyStageLabel.Text = hpiDs.Tables[0].Rows[i]["ExtraInfo"].ToString(); } // write nodes and stage below ************************** if (hpiDs.Tables[0].Rows[i]["PatientHPI"].ToString().LastIndexOf("Nodes:") > -1) { int NodesStringLocation = hpiDs.Tables[0].Rows[i]["PatientHPI"].ToString().LastIndexOf("Nodes:") + 6; string NodesText = hpiDs.Tables[0].Rows[i]["PatientHPI"].ToString().Remove(0, NodesStringLocation); if (NodesText != null && NodesText.Length > 0) { CystectomyNodesLabel.Text = NodesText; } } } // bold if systemic CHEMO else if (hpiDs.Tables[0].Rows[i]["VarName"] != null && hpiDs.Tables[0].Rows[i]["VarName"].ToString().ToUpper().StartsWith("CHEMO")) { if (hpiDs.Tables[0].Rows[i]["ExtraInfo"] != null && hpiDs.Tables[0].Rows[i]["ExtraInfo"].ToString() == "Systemic") { hpiDs.Tables[0].Rows[i]["PatientHPI"] = "<strong>" + hpiDs.Tables[0].Rows[i]["PatientHPI"].ToString() + "</strong>"; } } } } // ------------------------------------------------------------------------ hpi.DataSource = hpiDs.Tables[0].DefaultView; hpi.DataBind(); /* * if (rowCount < NumHpiRowsAllowed) * { * int newHeight = (NumHpiRowsAllowed-rowCount)*10; * HpiSpacer.Height = newHeight; * } * * */ } } catch (Exception ex) { hpi.Visible = false; // HpiSpacer.Height = NumHpiRowsAllowed*10; //Caisis.UI.Other.EmailError.SendErrorEmail( "Clinic Form: " + this._formTitle, "error creating hpi output"); ExceptionHandler.Publish(ex); } } /* * else * { * HpiSpacer.Height = NumHpiRowsAllowed*10; * } */ }