Exemple #1
0
        override protected void BuildFamilyHistory()
        {
            if (patientID != 0)
            {
                //				BlankFamilyHistoryTable.Visible = false;

                FamilyMemberDa fDa             = new FamilyMemberDa();
                DataSet        familyHistoryDs = fDa.FormGetRecords(this.patientID, this._formName, "Dynamic");


                if (familyHistoryDs.Tables.Count > 0 && familyHistoryDs.Tables[0].Rows.Count > 0)
                {
                    BlankFamilyHistoryTable.Visible = false;
                    familyHistory.DataSource        = familyHistoryDs.Tables[0].DefaultView;
                    familyHistory.DataBind();
                }
                else
                {
                    familyHistory.Visible = false;
                }
            }
            else
            {
                familyHistory.Visible = false;
            }
        }
Exemple #2
0
        override protected void BuildFamilyHistory()
        {
            if (patientID != 0)
            {
//				BlankFamilyHistoryTable.Visible = false;

                FamilyMemberDa fDa             = new FamilyMemberDa();
                DataSet        familyHistoryDs = fDa.FormGetRecords(this.patientID, this._formName, "Dynamic");


                if (familyHistoryDs.Tables.Count > 0 && familyHistoryDs.Tables[0].Rows.Count > 0)
                {
                    BlankFamilyHistoryTable.Visible = false;
                    familyHistory.DataSource        = familyHistoryDs.Tables[0].DefaultView;
                    familyHistory.DataBind();
                }
                else
                {
                    /*					DataRow blankFamHistoryRow;
                     *                                      blankFamHistoryRow = familyHistoryDs.Tables[0].NewRow();
                     *                                      blankFamHistoryRow["FamMemRelation"] = "<br><br><img src=\"../images/shim.gif\" border=\"0\" width=\"12\" height=\"1\">- Cancer:<br><br><br><br><br><img src=\"../images/shim.gif\" border=\"0\" width=\"12\" height=\"1\">- Other:";
                     *                                      familyHistoryDs.Tables[0].Rows.Add(blankFamHistoryRow);
                     */

                    familyHistory.Visible = false;
                }



                /*
                 *                              if (familyHistoryDs.Tables[0].Rows.Count != 0)
                 *                              {
                 *                                      famHxProstateCancerYes.Checked = true;
                 *
                 *                              }
                 *                              else
                 *                              {
                 *                                      famHxProstateCancerNo.Checked = true;
                 *                              }
                 *
                 */
            }
            else
            {
                familyHistory.Visible = false;
            }
        }
Exemple #3
0
        override protected void BuildFamilyHistory()
        {
            if (patientID != 0)
            {
                //				BlankFamilyHistoryTable.Visible = false;

                FamilyMemberDa fDa             = new FamilyMemberDa();
                DataSet        familyHistoryDs = fDa.FormGetRecords(this.patientID, this._formName, "Dynamic");


                if (familyHistoryDs.Tables.Count > 0 && familyHistoryDs.Tables[0].Rows.Count > 0)
                {
                    BlankFamilyHistoryTable.Visible = false;
                    familyHistory.DataSource        = familyHistoryDs.Tables[0].DefaultView;
                    familyHistory.DataBind();
                }
                else
                {
                    familyHistory.Visible = false;
                }


                Patient pt = new Patient();
                pt.Get(this.patientID);

                //if (pt.DataSourceView.Count > 0 && pt["PtRace"] != null)
                if (!pt.IsEmpty && pt["PtRace"] != null)
                {
                    Race.Text = pt["PtRace"].ToString();
                }
            }
            else
            {
                familyHistory.Visible = false;
            }
        }