private boolean shouldTriageEndDateTimeBeDisplayed() { TriageForTrackingVo triageDetails = form.getLocalContext().getSelectedTrackingPatient().getTriageDetails(); TrackingAttendanceStatusForTrackingVo currentTrackingStatus = form.getLocalContext().getSelectedTrackingPatient().getCurrentStatus(); if (triageDetails != null && triageDetails.getTriageStartDateTime() != null && currentTrackingStatus != null && TrackingStatus.WAITING_TO_BE_TRIAGED.equals(currentTrackingStatus.getStatus())) return true; return false; }
private boolean changeStatusOnMove() { if (form.getLocalContext().getSelectedTrackingPatient() == null) return false; TriageForTrackingVo triageDetails = form.getLocalContext().getSelectedTrackingPatient().getTriageDetails(); TrackingAttendanceStatusForTrackingVo currentTrackingStatus = form.getLocalContext().getSelectedTrackingPatient().getCurrentStatus(); if (triageDetails != null && triageDetails.getCurrentTriagePriority() != null && currentTrackingStatus != null && TrackingStatus.WAITING_TO_BE_TRIAGED.equals(currentTrackingStatus.getStatus())) return true; return false; }