Beispiel #1
0
        public SPATIENT ParseReader(DataRow row)
        {
            SPATIENTDB sPATIENTDB = new SPATIENTDB();
            SPATIENT   objReturn  = sPATIENTDB.ParseReader(row);

            return(objReturn);
        }
Beispiel #2
0
        public static Boolean Delete(string CURRENT_USER, Int32 CURRENT_REGISTRY_ID, Int32 PK_ID)
        {
            Boolean    objReturn = false;
            SPATIENTDB objDB     = new SPATIENTDB();

            objReturn = objDB.Delete(CURRENT_USER, CURRENT_REGISTRY_ID, PK_ID);

            return(objReturn);
        }
Beispiel #3
0
        public static Int32 Save(string CURRENT_USER, Int32 CURRENT_REGISTRY_ID, SPATIENT objSave)
        {
            Int32      objReturn = 0;
            SPATIENTDB objDB     = new SPATIENTDB();

            objReturn = objDB.Save(CURRENT_USER, CURRENT_REGISTRY_ID, objSave);

            return(objReturn);
        }
Beispiel #4
0
        public static List <SPATIENT> GetItems(string CURRENT_USER, Int32 CURRENT_REGISTRY_ID)
        {
            List <SPATIENT> objReturn = null;
            SPATIENTDB      objDB     = new SPATIENTDB();

            objReturn = objDB.GetItems(CURRENT_USER, CURRENT_REGISTRY_ID);

            return(objReturn);
        }
Beispiel #5
0
        public static SPATIENT GetItem(string CURRENT_USER, Int32 CURRENT_REGISTRY_ID, Int32 PK_ID)
        {
            SPATIENT   objReturn = null;
            SPATIENTDB objDB     = new SPATIENTDB();

            objReturn = objDB.GetItem(CURRENT_USER, CURRENT_REGISTRY_ID, PK_ID);

            return(objReturn);
        }
Beispiel #6
0
        public PATIENT ParseReaderComplete(DataRow row)
        {
            PATIENT objReturn = ParseReaderCustom(row);

            if (objReturn != null)
            {
                SPATIENTDB sPATIENTDB = new SPATIENTDB();
                objReturn.SPATIENT = sPATIENTDB.ParseReaderCustom(row);

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

            return(objReturn);
        }
Beispiel #7
0
        public static Int32 SaveComplete(string CURRENT_USER, Int32 CURRENT_REGISTRY_ID, PATIENT objSave)
        {
            Int32 objReturn = 0;

            PATIENTDB objDB = new PATIENTDB();

            objReturn = objDB.Save(CURRENT_USER, CURRENT_REGISTRY_ID, objSave);

            if (objSave.SPATIENT != null)
            {
                SPATIENTDB sDB = new SPATIENTDB();
                objSave.SPATIENT.PK_ID = sDB.Save(CURRENT_USER, CURRENT_REGISTRY_ID, objSave.SPATIENT);
            }

            return(objReturn);
        }
Beispiel #8
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);
        }