private void fillDataReader(IDataRecord reader) { this.examId = DAOUtility.GetData <int>(reader, SectraDAO.EXAM_ID); this.patientNo = DAOUtility.GetData <int>(reader, SectraDAO.EXAM_PATIENT_NO); this.requestedBy = DAOUtility.GetData <int>(reader, SectraDAO.EXAM_REQUESTED_BY); this.accessionNo = DAOUtility.GetData <string>(reader, SectraDAO.EXAM_ACCESSION_NO); this.AccessionNo = DAOUtility.GetData <string>(reader, SectraDAO.EXAM_ACCESSION_NO); this.ExamCodeName = DAOUtility.GetData <string>(reader, SectraDAO.EXAM_CODE_NAME); this.ExamTypeName = DAOUtility.GetData <string>(reader, SectraDAO.EXAM_TYPE_NAME); this.ExamStatusName = DAOUtility.GetData <string>(reader, SectraDAO.EXAM_STATUS_NAME); this.ExamSideName = DAOUtility.GetData <string>(reader, SectraDAO.EXAM_SIDE); this.ExamDate = DAOUtility.GetData <DateTime>(reader, SectraDAO.EXAM_DATE); this.DateRequested = DAOUtility.GetData <DateTime>(reader, SectraDAO.EXAM_DATE_REQUESTED); this.SourceOfReferralName = DAOUtility.GetData <string>(reader, SectraDAO.SOURCE_OF_REFERRAL_NAME); // handle source of referral name for older exams SectraUtility.handleSourceOfReferral(this); }
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); }