public SURVEYS ParseReaderComplete(DataRow row)
        {
            SURVEYS objReturn = ParseReaderCustom(row);

            if (objReturn != null)
            {
                if (objReturn.PATIENT_ID > 0)
                {
                    PATIENTDB pATIENTDB = new PATIENTDB();
                    objReturn.PATIENT = pATIENTDB.ParseReaderCustom(row);
                }

                if (objReturn.STD_SURVEY_TYPE_ID > 0)
                {
                    STD_SURVEY_TYPEDB sTD_SURVEY_TYPEDB = new STD_SURVEY_TYPEDB();
                    objReturn.STD_SURVEY_TYPE = sTD_SURVEY_TYPEDB.ParseReaderCustom(row);
                }

                if (objReturn.PROVIDER_ID > 0)
                {
                    SStaff_SStaffDB sStaff_SStaffDB = new SStaff_SStaffDB();
                    objReturn.SStaff_SStaff = sStaff_SStaffDB.ParseReaderCustom(row);
                }
            }

            return(objReturn);
        }
Esempio n. 2
0
        public REFERRAL ParseReaderComplete(DataRow row)
        {
            REFERRAL objReturn = ParseReaderCustom(row);

            if (objReturn != null)
            {
                if (objReturn.STD_REFERRALSTS_ID > 0)
                {
                    STD_REFERRALSTSDB sTD_REFERRALSTSDB = new STD_REFERRALSTSDB();
                    objReturn.STD_REFERRALSTS = sTD_REFERRALSTSDB.ParseReaderCustom(row);
                }

                if (objReturn.STD_REGISTRY_ID > 0)
                {
                    STD_REGISTRYDB sTD_REGISTRYDB = new STD_REGISTRYDB();
                    objReturn.STD_REGISTRY = sTD_REGISTRYDB.ParseReaderCustom(row);
                }

                if (objReturn.PATIENT_ID > 0)
                {
                    PATIENTDB pATIENTDB = new PATIENTDB();
                    objReturn.PATIENT = pATIENTDB.ParseReaderCustom(row);

                    SPATIENTDB sPATIENTDB = new SPATIENTDB();
                    objReturn.SPATIENT = sPATIENTDB.ParseReaderCustom(row);

                    objReturn.SPATIENT.PatientLastFour = (string)GetNullableObject(row.Field <object>("SPATIENT_PatientLastFour"));
                }

                if (objReturn.PROVIDER_ID > 0)
                {
                    SStaff_SStaffDB sStaff_SStaffDB = new SStaff_SStaffDB();
                    objReturn.SStaff_SStaff = sStaff_SStaffDB.ParseReaderCustom(row);
                }
            }

            return(objReturn);
        }