private PatientKioskMessageVoCollection getSettingsMessages() { PatientKioskMessageVoCollection voColl = form.getLocalContext().getSelectedKioskMessages(); if (form.grdMessages().getRows() != null) { for (int x=0; x<form.grdMessages().getRows().size(); x++) { PatientKioskMessageVo vo = voColl.get(x); if (getRowMessageType(form.grdMessages().getRows().get(x).getColMessageType()) != null) vo.setMessageType(getRowMessageType(form.grdMessages().getRows().get(x).getColMessageType())); if (form.grdMessages().getRows().get(x).getColMessageText() != null) vo.setMessageText(form.grdMessages().getRows().get(x).getColMessageText()); voColl.add(vo); } } return voColl; }
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; }