Пример #1
0
 public Patient(IDataRecord record)
 {
     this.firstName            = DALUtility.GetData <string>(record, PatientController.FIRST_NAME);
     this.lastName             = DALUtility.GetData <string>(record, PatientController.LAST_NAME);
     this.dateOfBirth          = DALUtility.GetData <string>(record, PatientController.BIRTH_DTTM);
     this.socialSecurityNumber = DALUtility.GetData <string>(record, PatientController.SOCIAL_SECURITY_NUMBER);
 }
Пример #2
0
        public Identity(IDataRecord record, bool isLastIdCheck = false)
        {
            if (!isLastIdCheck)
            {
                this.ida                  = DALUtility.GetData <string>(record, IdentityController.IDA);
                this.identId              = DALUtility.GetData <int>(record, IdentityController.IDENT_ID);
                this.createDateTime       = DALUtility.GetData <DateTime>(record, IdentityController.CREATE_DTTM);
                this.firstName            = DALUtility.GetData <string>(record, PatientController.FIRST_NAME);
                this.lastName             = DALUtility.GetData <string>(record, PatientController.LAST_NAME);
                this.dateOfBirth          = DALUtility.GetData <string>(record, PatientController.BIRTH_DTTM);
                this.socialSecurityNumber = DALUtility.GetData <string>(record, PatientController.SOCIAL_SECURITY_NUMBER);

                // handle the patient date of birth
                PatientUtility.handleDateOfBirth(this);
            }
            else
            {
                this.lastId = DALUtility.GetData <int>(record, IdentityController.LAST_ID);
            }
        }