private void fillDataReader(IDataRecord reader) { this.fullName = DAOUtility.GetData <string>(reader, SectraDAO.Name); string[] arrParsedName = SectraUtility.handleName(this.fullName); // set the name this.LastName = arrParsedName[LASTNAME]; this.FirstName = arrParsedName[FIRSTNAME]; // does patient have middle name? if (arrParsedName.Length > 2) { this.MiddleName = arrParsedName[MIDDLENAME]; } this.Npi = DAOUtility.GetData <string>(reader, SectraDAO.NPI); this.Type = DAOUtility.GetData <string>(reader, SectraDAO.TypeOfUser); this.EnterpriseId = 1; }
private void fillDataReader(IDataRecord reader) { this.fullName = DAOUtility.GetData <string>(reader, SectraDAO.PATIENT_FULL_NAME); // parse the full name string[] arrParsedName = SectraUtility.handleName(this.fullName); // set the name this.LastName = arrParsedName[LASTNAME]; this.FirstName = arrParsedName[FIRSTNAME]; // does patient have middle name? if (arrParsedName.Length > 2) { this.MiddleName = arrParsedName[MIDDLENAME]; } // get rest of properties this.MedicalRecordNo = DAOUtility.GetData <string>(reader, SectraDAO.PATIENT_MRN); this.DateOfBirth = DAOUtility.GetData <DateTime>(reader, SectraDAO.PATIENT_DATE_OF_BIRTH); }