Ejemplo n.º 1
0
        override protected void BuildMedTx(int PatientID, string FormName, string FormType, string MedTxType)
        {
            MedicalTherapyDa Da = new MedicalTherapyDa();
            DataSet          Ds = new DataSet();

            if (MedTxType.Length > 0)
            {
                Ds = Da.FormGetRecords(PatientID, FormName, FormType, MedTxType);
            }
            else
            {
                Ds = Da.FormGetRecords(PatientID, FormName, FormType);
            }



            if (Ds.Tables.Count > 0 && Ds.Tables[0].Rows.Count > 0)
            {
                DataView Dv = new DataView(Ds.Tables[0]);
                Dv.RowFilter = (BOL.MedicalTherapy.MedTxType + " = 'HORM'");
                if (Dv.Count > 0)
                {
                    MedicalTherapies.DataSource = Dv;
                    MedicalTherapies.DataBind();
                }
            }
        }
Ejemplo n.º 2
0
        protected void BuildChemoTx(int PatientID, string FormName, string FormType)
        {
            MedicalTherapyDa Da = new MedicalTherapyDa();
            DataSet          Ds = new DataSet();

            Ds = Da.FormGetRecords(PatientID, FormName, FormType);
            DataView dv = new DataView(Ds.Tables[0]);

            dv.RowFilter = MedicalTherapy.MedTxType + " LIKE '%CHEMO%' ";

            if (dv.Count > 0)
            {
                MedicalTherapies.DataSource = dv;
                MedicalTherapies.DataBind();
            }
        }
Ejemplo n.º 3
0
        protected void BuildHormoneMedTx(int PatientID, string FormName, string FormType)
        {
            MedicalTherapyDa Da = new MedicalTherapyDa();
            DataSet          Ds = new DataSet();

            Ds = Da.FormGetRecords(PatientID, FormName, FormType);

            DataView Dv = Ds.Tables[0].DefaultView;

            Dv.RowFilter = Caisis.BOL.MedicalTherapy.MedTxType + " IN ('HORM', 'Horm', 'horm', 'HORMONE', 'Hormone', 'hormone')";


            if (Dv.Count > 0)
            {
                MedicalTherapies.DataSource = Dv;
                MedicalTherapies.DataBind();
                PriorHormoneTxExist = true;
            }
        }
Ejemplo n.º 4
0
        protected void BuildImmunoMedTx(int PatientID, string FormName, string FormType)
        {
            MedicalTherapyDa Da = new MedicalTherapyDa();
            DataSet          Ds = new DataSet();

            Ds = Da.FormGetRecords(PatientID, FormName, FormType);

            DataView Dv = Ds.Tables[0].DefaultView;

            Dv.RowFilter = Caisis.BOL.MedicalTherapy.MedTxType + " IN ('IMMUNO', 'Immuno', 'immuno')";


            if (Dv.Count > 0)
            {
                MedicalTherapies.DataSource = Dv;
                MedicalTherapies.DataBind();
                PriorImmunoTxExist = true;
            }
        }
Ejemplo n.º 5
0
        protected virtual void BuildMedTx(int PatientID, string FormName, string FormType, string MedTxType)
        {
            MedicalTherapyDa Da = new MedicalTherapyDa();
            DataSet          Ds = new DataSet();

            if (MedTxType.Length > 0)
            {
                Ds = Da.FormGetRecords(PatientID, FormName, FormType, MedTxType);
            }
            else
            {
                Ds = Da.FormGetRecords(PatientID, FormName, FormType);
            }

            if (Ds.Tables.Count > 0 && Ds.Tables[0].Rows.Count > 0)
            {
                MedicalTherapies.DataSource = Ds.Tables[0].DefaultView;
                MedicalTherapies.DataBind();
            }
        }
        protected void GetMedTx(int PatientID, string FormName, string FormType)
        {
            MedicalTherapyDa medTxDa = new MedicalTherapyDa();
            DataSet          medTxDs = medTxDa.FormGetSpecialRecords(PatientID, FormName, FormType, MedicalTherapy.MedTxType, " NOT IN ", "'Anti-viral History'");

            if (medTxDs.Tables.Count > 0 && medTxDs.Tables[0].Rows.Count > 0)
            {
                // limit to last 10 records
                PastRecordsCountMedTx = medTxDs.Tables[0].Rows.Count;
                DataView medTxDv = new DataView(medTxDs.Tables[0]);
                medTxDv.Sort = MedicalTherapy.MedTxDate + " DESC ";
                medTxDv      = GetTopDataViewRows(medTxDv, 10);
                medTxDv.Sort = MedicalTherapy.MedTxDate + " ASC ";

                MedicalTherapies.DataSource = medTxDv;
                MedicalTherapies.DataBind();
            }
            else
            {
                PastRecordsCountMedTx = 0;
            }
        }