コード例 #1
0
        private void GetToxicityHx(int PatientID, string FormName, string FormType)
        {
            ToxicityDa toxDa = new ToxicityDa();
            DataSet    toxDs = toxDa.FormListToxicities(PatientID, FormName, FormType, "");

            if (toxDs.Tables.Count > 0 && toxDs.Tables[0].Rows.Count > 0)
            {
                Toxicities.DataSource = toxDs.Tables[0].DefaultView;
                Toxicities.DataBind();
            }
        }
コード例 #2
0
        protected void BuildComplications(int PatientId, string EformName, string FormType)
        {
            ToxicityDa toxDa = new ToxicityDa();
            DataSet    toxDs = toxDa.FormListToxicities(PatientId, EformName, FormType, null);
            DataView   dv    = new DataView(toxDs.Tables[0]);

            if (dv.Count > 0)
            {
                ComplicationsRptr.DataSource = dv;
                ComplicationsRptr.DataBind();
            }
        }
コード例 #3
0
        protected void BuildComplications()
        {
            if (patientID != 0)
            {
                ToxicityDa tDa = new ToxicityDa();
                DataSet    tDs = tDa.FormListToxicities(patientID, this._formName, "Dynamic", "Late");

                if (tDs.Tables.Count > 0 && tDs.Tables[0].Rows.Count > 0)
                {
                    ComplicationsCheckbox.Checked = true;
                    complications.DataSource      = tDs.Tables[0].DefaultView;
                    complications.DataBind();
                }
            }
        }
コード例 #4
0
        protected virtual void BuildPriorToxicities()
        {
            ToxicityDa tDa = new ToxicityDa();
            DataSet    tDs = tDa.FormListToxicities(this._patientId, "", "Dynamic", ""); // using no value for eform name to get all prior toxicities


            if (tDs.Tables.Count > 0 && tDs.Tables[0].Rows.Count > 0)
            {
                DataView myView = tDs.Tables[0].DefaultView;
                myView.RowFilter = "(" + BOL.Toxicity.ToxScale + " LIKE '%CTC%') AND (" + BOL.Toxicity.ToxCategory + " <> '' OR " + BOL.Toxicity.ToxName + " <> '') AND (" + BOL.Toxicity.ToxStopDateText + " IS NULL OR " + BOL.Toxicity.ToxStopDateText + " = '')";
                myView.Sort      = BOL.Toxicity.ToxDateText + " ASC";

                if (myView.Count > 0)
                {
                    PriorToxicities.DataSource = myView;
                    PriorToxicities.DataBind();
                }
            }
        }
コード例 #5
0
ファイル: UroTestFU_NoMD.ascx.cs プロジェクト: aomiit/caisis
//		Removed this section and replaced with simpler Image section
//		protected void BuildImages()
//		{
//			if (patientID != 0)
//			{
//				DiagnosticDa imagesDa = new DiagnosticDa();
//				DataSet imagesDs = imagesDa.FormGetDxImages(this.patientID, this._formName, "Dynamic");
//
//				if (imagesDs.Tables.Count > 0 && imagesDs.Tables[0].Rows.Count > 0)
//				{
//					BuildImagesRpt(imagesDs.Tables[0], "X-ray Chest", XRayChest, BlankCXRTable);
//					BuildImagesRpt(imagesDs.Tables[0], "US Scrotum", ScrotalUS, BlankScrotalUSTable);
//					BuildImagesRpt(imagesDs.Tables[0], "CT Chest", CTChest, BlankChestCTTable);
////					BuildImagesRpt(imagesDs.Tables[0], "CT Abdomen/Pelvis", CTAbdomenPelvis, BlankCTAbdomenPelvisTable);
//					BuildImagesRpt(imagesDs.Tables[0], "CT Abdomen/Pelvis", CTAbdomenPelvis, null);
//					BuildImagesRpt(imagesDs.Tables[0], "Brain Scan", BrainScan, BlankBrainScanTable);
//					BuildImagesRpt(imagesDs.Tables[0], "PET Scan", PETScan, BlankPETScanTable);
//
//				}
//			}
//		}
//
//		protected void BuildImagesRpt(DataTable CompleteImageTable, string ImageType, Repeater ImageRepeater, HtmlTable BlankImageTable)
//		{
//			int numRows = CompleteImageTable.Rows.Count;
//			DataTable ImageTable = CompleteImageTable.Clone();
//
//
//			for (int i=0; i<(numRows-1); i++)
//			{
//				if (CompleteImageTable.Rows[i]["FormMapping"].ToString() == ImageType)
//				{
//					ImageTable.ImportRow(CompleteImageTable.Rows[i]);
//				}
//
//			}
//
//			if (ImageTable.Rows.Count > 0)
//			{
//				ImageRepeater.DataSource = ImageTable.DefaultView;
//				ImageRepeater.DataBind();
//
//				if (BlankImageTable != null)
//				{
//					BlankImageTable.Visible = false;
//				}
//			}
//			else
//			{
//				ImageRepeater.Visible = false;
//			}
//
//		}


        protected virtual void BuildEarlyComplications()
        {
            if (patientID != 0)
            {
                ToxicityDa Da = new ToxicityDa();
                DataSet    Ds = Da.FormListToxicities(patientID, this._formName, "Dynamic", "Early");

                if (Ds.Tables.Count > 0 && Ds.Tables[0].Rows.Count > 0)
                {
                    EarlyComplications.DataSource = Ds.Tables[0].DefaultView;
                    EarlyComplications.DataBind();
                }
                else
                {
                    EarlyComplications.Visible = false;
                }
            }
            else
            {
                EarlyComplications.Visible = false;
            }
        }
コード例 #6
0
        protected void GetComplications(int PatientID, string FormName, string FormType)
        {
            ToxicityDa toxDa = new ToxicityDa();
            DataSet    toxDs = toxDa.FormListToxicities(PatientID, FormName, FormType, "");

            if (toxDs.Tables.Count > 0 && toxDs.Tables[0].Rows.Count > 0)
            {
                // limit to last 10 records
                PastRecordsCountComplication = toxDs.Tables[0].Rows.Count;
                DataView toxDv = new DataView(toxDs.Tables[0]);
                toxDv.Sort = Toxicity.ToxDate + " DESC ";
                toxDv      = GetTopDataViewRows(toxDv, 10);
                toxDv.Sort = Toxicity.ToxDate + " ASC ";

                ComplicationsHx.DataSource = toxDv;
                ComplicationsHx.DataBind();
            }
            else
            {
                PastRecordsCountComplication = 0;
            }
        }
コード例 #7
0
        protected virtual void BuildReviewOfSystemsWithBaslineToxicities()
        {
            if (patientID != 0)
            {
                ToxicityDa tDa = new ToxicityDa();
                DataSet    tDs = tDa.FormListToxicities(this.patientID, this._formName, "Dynamic", "");


                if (tDs.Tables.Count > 0 && tDs.Tables[0].Rows.Count > 0)
                {
                    DataTable SymptomsTable = new DataTable();

                    DataColumn Symptoms = new DataColumn();
                    Symptoms.ColumnName = "Symptoms";
                    Symptoms.DataType   = System.Type.GetType("System.String");
                    SymptomsTable.Columns.Add(Symptoms);

                    DataColumn BaselineGradeLabel = new DataColumn();
                    BaselineGradeLabel.ColumnName = "BaselineGradeLabel";
                    BaselineGradeLabel.DataType   = System.Type.GetType("System.Object");
                    SymptomsTable.Columns.Add(BaselineGradeLabel);

                    AddSymptomToToxicityList(SymptomsTable, "Fatigue", BaselineGrade_Fatigue);
                    AddSymptomToToxicityList(SymptomsTable, "Fever", BaselineGrade_Fever);
                    AddSymptomToToxicityList(SymptomsTable, "Anorexia", BaselineGrade_Anorexia);
                    AddSymptomToToxicityList(SymptomsTable, "Rash", BaselineGrade_Rash);
                    AddSymptomToToxicityList(SymptomsTable, "Oral Mucositis", BaselineGrade_OralMucositis);
                    AddSymptomToToxicityList(SymptomsTable, "Dyspnea", BaselineGrade_Dyspnea);
                    AddSymptomToToxicityList(SymptomsTable, "Edema", BaselineGrade_Edema);
                    AddSymptomToToxicityList(SymptomsTable, "Chest Pain", BaselineGrade_ChestPain);
                    AddSymptomToToxicityList(SymptomsTable, "Nausea", BaselineGrade_Nausea);
                    AddSymptomToToxicityList(SymptomsTable, "Vomiting", BaselineGrade_Vomiting);
                    AddSymptomToToxicityList(SymptomsTable, "Diarrhea", BaselineGrade_Diarrhea);
                    AddSymptomToToxicityList(SymptomsTable, "Constipation", BaselineGrade_Constipation);
                    AddSymptomToToxicityList(SymptomsTable, "Sensory Neuropathy", BaselineGrade_SensoryNeuropathy);
                    AddSymptomToToxicityList(SymptomsTable, "Motor Neuropathy", BaselineGrade_MotorNeuropathy);
                    AddSymptomToToxicityList(SymptomsTable, "Urinary Frequency", BaselineGrade_UrinaryFrequency);
                    AddSymptomToToxicityList(SymptomsTable, "Hemorrhage - Urinary NOS", BaselineGrade_HemorrhageUrinaryNOS);
                    AddSymptomToToxicityList(SymptomsTable, "Pain - Urethra", BaselineGrade_PainUrethra);
                    AddSymptomToToxicityList(SymptomsTable, "Incontinence", BaselineGrade_Incontinence);
                    AddSymptomToToxicityList(SymptomsTable, "Pain", BaselineGrade_Pain);


                    string filterExpression = "(1 = 1) ";

                    foreach (DataRow sRow in SymptomsTable.Rows)
                    {
                        filterExpression += "AND (ToxName <> '" + sRow["Symptoms"].ToString() + "')";
                        CheckForBaselineToxicity(tDs.Tables[0], sRow["Symptoms"].ToString(), (Label)sRow["BaselineGradeLabel"]);
                    }

                    DataView myView = tDs.Tables[0].DefaultView;
                    myView.RowFilter = filterExpression;

                    if (myView.Count > 0)
                    {
                        OtherBaselineToxicitiesHtmlRow.Visible = true;
                        OtherBaselineToxicitiesRpt.DataSource  = myView;
                        OtherBaselineToxicitiesRpt.DataBind();
                    }
                }
            }
        }