Exemple #1
0
        protected void CheckIfOnProtocol(int PatientID, string FormName, string FormType)
        {
            PatientProtocolDa pDa = new PatientProtocolDa();
            DataSet           pDs = pDa.FormGetRecords(PatientID, FormName, FormType);

            if (pDs.Tables.Count > 0 && pDs.Tables[0].Rows.Count > 0)
            {
                foreach (DataRow row in pDs.Tables[0].Rows)
                {
                    if (row["ProtocolNum"].ToString().Equals("09-051"))
                    {
                        Protocol_09_051.Visible = true;
                    }
                }
            }

            if (Protocol_09_051.Visible)
            {
                string SurgeryDate = "";
                if (Session[SessionKey.CurrentClinicDate] != null)
                {
                    SurgeryDate = Session[SessionKey.CurrentClinicDate].ToString();
                }
                if (SurgeryDate.Length > 0)
                {
                    SetHiddenDateFieldPair(SurveyDateText_2, SurveyDate_2, SurgeryDate);
                }
            }
        }
Exemple #2
0
        protected void BuildHpiProtocols(int PatientID, string FormName, string FormType)
        {
            PatientProtocolDa protocolsDa = new PatientProtocolDa();
            DataSet           protcolsDs  = protocolsDa.FormGetRecords(PatientID, FormName, FormType);

            if (protcolsDs.Tables.Count > 0 && protcolsDs.Tables[0].Rows.Count > 0)
            {
                hpiProtocols.DataSource = protcolsDs.Tables[0].DefaultView;
                hpiProtocols.DataBind();
            }
        }