public String toAuditString() { StringBuffer auditStr = new StringBuffer(); auditStr.append("\r\n*trackingArea* :"); if (trackingArea != null) { auditStr.append(toShortClassName(trackingArea)); auditStr.append(trackingArea.getId()); } auditStr.append("; "); auditStr.append("\r\n*cubiclesRoomsBeds* :"); if (cubiclesRoomsBeds != null) { int i2 = 0; for (i2 = 0; i2 < cubiclesRoomsBeds.size(); i2++) { if (i2 > 0) auditStr.append(","); ims.emergency.configuration.domain.objects.TrackingCubicleRoomBed obj = (ims.emergency.configuration.domain.objects.TrackingCubicleRoomBed) cubiclesRoomsBeds.get(i2); if (obj != null) { if (i2 == 0) { auditStr.append(toShortClassName(obj)); auditStr.append("["); } auditStr.append(obj.getId()); } } if (i2 > 0) auditStr.append("] " + i2); } auditStr.append("; "); return auditStr.toString(); }
public String toAuditString() { StringBuffer auditStr = new StringBuffer(); auditStr.append("\r\n*patient* :"); if (patient != null) { auditStr.append(toShortClassName(patient)); auditStr.append(patient.getId()); } auditStr.append("; "); auditStr.append("\r\n*episode* :"); if (episode != null) { auditStr.append(toShortClassName(episode)); auditStr.append(episode.getId()); } auditStr.append("; "); auditStr.append("\r\n*attendance* :"); if (attendance != null) { auditStr.append(toShortClassName(attendance)); auditStr.append(attendance.getId()); } auditStr.append("; "); auditStr.append("\r\n*trackingArea* :"); if (trackingArea != null) { auditStr.append(toShortClassName(trackingArea)); auditStr.append(trackingArea.getId()); } auditStr.append("; "); auditStr.append("\r\n*sentDateTime* :"); auditStr.append(sentDateTime); auditStr.append("; "); auditStr.append("\r\n*sentBy* :"); if (sentBy != null) { auditStr.append(toShortClassName(sentBy)); auditStr.append(sentBy.getId()); } auditStr.append("; "); auditStr.append("\r\n*returnedDateTime* :"); auditStr.append(returnedDateTime); auditStr.append("; "); return auditStr.toString(); }