private String setToolTips(PatientKioskMessages value) { if (value.equals(PatientKioskMessages.WELCOME_MESSAGE)) return "This messsage is used in the first screen"; if (value.equals(PatientKioskMessages.ENTER_SURNAME_MESSAGE)) return "This message is used when you have to enter your surname"; if (value.equals(PatientKioskMessages.ENTER_DOB_MESSAGE)) return "This message is used when you have to enter your date of birth"; if (value.equals(PatientKioskMessages.ENTER_GENDER_MESSAGE)) return "This message is used when you have to enter your gender"; if (value.equals(PatientKioskMessages.ENTER_POSTCODE_MESSAGE)) return "This message appears when you have to enter your address postcode"; if (value.equals(PatientKioskMessages.SEARCH_FAILED_MESSAGE)) return "This message appears when the search returns an error"; if (value.equals(PatientKioskMessages.CONFIRM_IDENTITY_MESSAGE)) return "This message appears when you are asked to confirm your identity"; if (value.equals(PatientKioskMessages.CONFIRM_APPOINTMENTS_MESSAGE)) return "This message appears when you are asked to confirm your appointments"; if (value.equals(PatientKioskMessages.CONFIRM_FAILED_MESSAGE)) return "This message appears when the confirmation returns an error";; if (value.equals(PatientKioskMessages.PATIENT_LATE_MESSAGE)) return "This message appears when the patient arrived later than the first appointment"; if (value.equals(PatientKioskMessages.APPOINTMENTS_CONFIRMED_MESSAGE)) return "This message appears when the confirmation was successfully"; if (value.equals(PatientKioskMessages.GOTO_RECEPTION_MESSAGE)) return "This message appears when the patient is guided to the reception"; return ""; }
private PatientKioskMessages getRowMessageType(String value) { if (value.equals(PatientKioskMessages.WELCOME_MESSAGE.getText())) return PatientKioskMessages.WELCOME_MESSAGE; if (value.equals(PatientKioskMessages.ENTER_SURNAME_MESSAGE.getText())) return PatientKioskMessages.ENTER_SURNAME_MESSAGE; if (value.equals(PatientKioskMessages.ENTER_DOB_MESSAGE.getText())) return PatientKioskMessages.ENTER_DOB_MESSAGE; if (value.equals(PatientKioskMessages.ENTER_GENDER_MESSAGE.getText())) return PatientKioskMessages.ENTER_GENDER_MESSAGE; if (value.equals(PatientKioskMessages.ENTER_POSTCODE_MESSAGE.getText())) return PatientKioskMessages.ENTER_POSTCODE_MESSAGE; if (value.equals(PatientKioskMessages.SEARCH_FAILED_MESSAGE.getText())) return PatientKioskMessages.SEARCH_FAILED_MESSAGE; if (value.equals(PatientKioskMessages.CONFIRM_IDENTITY_MESSAGE.getText())) return PatientKioskMessages.CONFIRM_IDENTITY_MESSAGE; if (value.equals(PatientKioskMessages.CONFIRM_APPOINTMENTS_MESSAGE.getText())) return PatientKioskMessages.CONFIRM_APPOINTMENTS_MESSAGE; if (value.equals(PatientKioskMessages.CONFIRM_FAILED_MESSAGE.getText())) return PatientKioskMessages.CONFIRM_FAILED_MESSAGE; if (value.equals(PatientKioskMessages.PATIENT_LATE_MESSAGE.getText())) return PatientKioskMessages.PATIENT_LATE_MESSAGE; if (value.equals(PatientKioskMessages.APPOINTMENTS_CONFIRMED_MESSAGE.getText())) return PatientKioskMessages.APPOINTMENTS_CONFIRMED_MESSAGE; if (value.equals(PatientKioskMessages.GOTO_RECEPTION_MESSAGE.getText())) return PatientKioskMessages.GOTO_RECEPTION_MESSAGE; return null; }
private PatientKioskMessageVoCollection getDefaultKioskMessages() { PatientKioskMessageVoCollection msgsVoColl = new PatientKioskMessageVoCollection(); PatientKioskMessageVo msgVoWelcome = new PatientKioskMessageVo(); msgVoWelcome.setMessageType(PatientKioskMessages.WELCOME_MESSAGE); msgVoWelcome.setMessageText("Welcome to the Appointment self-check-in service.####" + "If you do NOT have an appointment for TODAY then please speak to the receptionist.####" + "Please touch the SCREEN to check-in for an appointment today."); PatientKioskMessageVo msgVoEnterSurname = new PatientKioskMessageVo(); msgVoEnterSurname.setMessageType(PatientKioskMessages.ENTER_SURNAME_MESSAGE); msgVoEnterSurname.setMessageText("Please enter your SURNAME"); PatientKioskMessageVo msgVoEnterDOB = new PatientKioskMessageVo(); msgVoEnterDOB.setMessageType(PatientKioskMessages.ENTER_DOB_MESSAGE); msgVoEnterDOB.setMessageText("Please enter your DATE OF BIRTH##(DD/MM/YYYY)"); PatientKioskMessageVo msgVoEnterGender = new PatientKioskMessageVo(); msgVoEnterGender.setMessageType(PatientKioskMessages.ENTER_GENDER_MESSAGE); msgVoEnterGender.setMessageText("Please enter your GENDER"); PatientKioskMessageVo msgVoEnterPostcode = new PatientKioskMessageVo(); msgVoEnterPostcode.setMessageType(PatientKioskMessages.ENTER_POSTCODE_MESSAGE); msgVoEnterPostcode.setMessageText("Please enter your POSTCODE"); PatientKioskMessageVo msgVoSearchFailed = new PatientKioskMessageVo(); msgVoSearchFailed.setMessageType(PatientKioskMessages.SEARCH_FAILED_MESSAGE); msgVoSearchFailed.setMessageText("Unable to find your appointments.##Please press the BACK button to review your search fields."); PatientKioskMessageVo msgVoGoToReception = new PatientKioskMessageVo(); msgVoGoToReception.setMessageType(PatientKioskMessages.GOTO_RECEPTION_MESSAGE); msgVoGoToReception.setMessageText("Please contact the reception"); PatientKioskMessageVo msgVoConfirmIdentity = new PatientKioskMessageVo(); msgVoConfirmIdentity.setMessageType(PatientKioskMessages.CONFIRM_IDENTITY_MESSAGE); msgVoConfirmIdentity.setMessageText("Thank you, please confirm that you are"); PatientKioskMessageVo msgVoConfirmAppointments = new PatientKioskMessageVo(); msgVoConfirmAppointments.setMessageType(PatientKioskMessages.CONFIRM_APPOINTMENTS_MESSAGE); msgVoConfirmAppointments.setMessageText("Thank you, please confirm your appointments"); PatientKioskMessageVo msgVoAppointmentsConfirmed = new PatientKioskMessageVo(); msgVoAppointmentsConfirmed.setMessageType(PatientKioskMessages.APPOINTMENTS_CONFIRMED_MESSAGE); msgVoAppointmentsConfirmed.setMessageText("Thank you.##Your appointments have been confirmed"); PatientKioskMessageVo msgVoConfirmFailed = new PatientKioskMessageVo(); msgVoConfirmFailed.setMessageType(PatientKioskMessages.CONFIRM_FAILED_MESSAGE); msgVoConfirmFailed.setMessageText("There was an error confirming your appointments.##Please contact the reception"); PatientKioskMessageVo msgVoPatientLate = new PatientKioskMessageVo(); msgVoPatientLate.setMessageType(PatientKioskMessages.PATIENT_LATE_MESSAGE); msgVoPatientLate.setMessageText("Please contact the reception"); msgsVoColl.add(msgVoWelcome); msgsVoColl.add(msgVoEnterSurname); msgsVoColl.add(msgVoEnterDOB); msgsVoColl.add(msgVoEnterGender); msgsVoColl.add(msgVoEnterPostcode); msgsVoColl.add(msgVoSearchFailed); msgsVoColl.add(msgVoGoToReception); msgsVoColl.add(msgVoConfirmIdentity); msgsVoColl.add(msgVoConfirmAppointments); msgsVoColl.add(msgVoAppointmentsConfirmed); msgsVoColl.add(msgVoConfirmFailed); msgsVoColl.add(msgVoPatientLate); return msgsVoColl; }