Ejemplo n.º 1
0
        protected void BuildProstateImages()
        {
            DiagnosticDa imagesDa = new DiagnosticDa();
            DataTable    imagesDt = imagesDa.GetImagingAll(this._patientId);

            if (imagesDt.Rows.Count > 0)
            {
                images.DataSource = imagesDt.DefaultView;
                images.DataBind();
            }
        }
Ejemplo n.º 2
0
        protected void BuildImaging(int PatientID, string FormName, string FormType)
        {
            DiagnosticDa imagesDa = new DiagnosticDa();
            DataTable    imagesDt = imagesDa.GetImagingAll(PatientID);
            DataView     dv       = new DataView(imagesDt);

            dv.RowFilter = Diagnostic.DxType + " IN ('Colonoscopy', 'Stress Test')";

            if (dv.Count > 0)
            {
                images.DataSource = dv;
                images.DataBind();
            }
        }
Ejemplo n.º 3
0
        protected void BuildImaging(int PatientID, string FormName, string FormType)
        {
            DiagnosticDa imagesDa = new DiagnosticDa();
            DataTable    imagesDt = imagesDa.GetImagingAll(PatientID);
            DataView     dv       = new DataView(imagesDt);

            dv.RowFilter = Diagnostic.DxType + " IN ('TRUS', 'MRUS')";

            if (dv.Count > 0)
            {
                NoImagesMsg.Visible = false;
                images.DataSource   = dv;
                images.DataBind();
            }
        }
Ejemplo n.º 4
0
        protected void BuildImaging(int PatientID, string FormName, string FormType)
        {
            DiagnosticDa imagesDa = new DiagnosticDa();
            DataTable    imagesDt = imagesDa.GetImagingAll(PatientID);
            DataView     dv       = new DataView(imagesDt);

            dv.RowFilter = Diagnostic.DxType + " IN ('MRI', 'MRSI', 'EMRI') and " + BOL.Diagnostic.DxTarget + " = 'Prostate'";



            if (dv.Count > 0)
            {
//                NoImagesMsg.Visible = false;
                images.DataSource = dv;
                images.DataBind();
            }
        }
Ejemplo n.º 5
0
        override protected void BuildImages(int MinNumImageRowsToShow, int minNumBlankImageRows)
        {
            if (patientID != 0)
            {
                DiagnosticDa imagesDa = new DiagnosticDa();
                DataTable    imagesDt = imagesDa.GetImagingAll(this.patientID);

                if (imagesDt.Rows.Count > 0)
                {
                    int numBlankImageRows = MinNumImageRowsToShow - imagesDt.Rows.Count;

                    /* this code truncated the text in the notes field.  removed 11/17 from development.
                     *                  if (imagesDs.Tables[0].Rows.Count > 0)
                     *                  {
                     *
                     *                          for (int i=0; i<imagesDs.Tables[0].Rows.Count; i++)
                     *                          {
                     *                                  int DxNotesLength = imagesDs.Tables[0].Rows[i]["DxNotes"].ToString().Length;
                     *                                  if (DxNotesLength > 255)
                     *                                  {
                     *                                          imagesDs.Tables[0].Rows[i]["DxNotes"] = imagesDs.Tables[0].Rows[i]["DxNotes"].ToString().Remove(255, (DxNotesLength-255)) + "...";
                     *                                  }
                     *                          }
                     *                  }
                     */



                    // be sure you have at least the number of blank rows specified earlier
                    if (numBlankImageRows < minNumBlankImageRows)
                    {
                        numBlankImageRows = minNumBlankImageRows;
                    }

                    // add the blank rows
                    for (int i = 0; i < numBlankImageRows; i++)
                    {
                        DataRow blankImageRow;
                        blankImageRow = imagesDt.NewRow();
                        blankImageRow["DxDateText"] = "/&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/";
                        blankImageRow["DxType"]     = "";
                        blankImageRow["DxResult"]   = "";
                        blankImageRow["DxNotes"]    = "";
                        blankImageRow["DxTarget"]   = "";
                        imagesDt.Rows.Add(blankImageRow);
                    }



                    images.DataSource = imagesDt.DefaultView;
                }
                else
                {
                    images.DataSource = BlankImages(MinNumImageRowsToShow).DefaultView;
                }
            }
            else
            {
                images.DataSource = BlankImages(MinNumImageRowsToShow).DefaultView;
            }

            images.DataBind();
        }