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 static void fillFieldsfromXML(
     org.dom4j.Element el,
     ims.domain.DomainFactory factory,
     SentToXray obj,
     java.util.HashMap domMap)
     throws Exception {
   org.dom4j.Element fldEl;
   fldEl = el.element("patient");
   if (fldEl != null) {
     fldEl = fldEl.element("class");
     obj.setPatient(
         ims.core.patient.domain.objects.Patient.getPatientfromXML(fldEl, factory, domMap));
   }
   fldEl = el.element("episode");
   if (fldEl != null) {
     fldEl = fldEl.element("class");
     obj.setEpisode(
         ims.core.admin.domain.objects.EpisodeOfCare.getEpisodeOfCarefromXML(
             fldEl, factory, domMap));
   }
   fldEl = el.element("attendance");
   if (fldEl != null) {
     fldEl = fldEl.element("class");
     obj.setAttendance(
         ims.core.admin.domain.objects.CareContext.getCareContextfromXML(fldEl, factory, domMap));
   }
   fldEl = el.element("trackingArea");
   if (fldEl != null) {
     fldEl = fldEl.element("class");
     obj.setTrackingArea(
         ims.emergency.configuration.domain.objects.TrackingArea.getTrackingAreafromXML(
             fldEl, factory, domMap));
   }
   fldEl = el.element("sentDateTime");
   if (fldEl != null) {
     obj.setSentDateTime(
         new java.text.SimpleDateFormat("yyyyMMddHHmmssSSS").parse(fldEl.getTextTrim()));
   }
   fldEl = el.element("sentBy");
   if (fldEl != null) {
     fldEl = fldEl.element("class");
     obj.setSentBy(
         ims.core.resource.people.domain.objects.MemberOfStaff.getMemberOfStafffromXML(
             fldEl, factory, domMap));
   }
   fldEl = el.element("returnedDateTime");
   if (fldEl != null) {
     obj.setReturnedDateTime(
         new java.text.SimpleDateFormat("yyyyMMddHHmmssSSS").parse(fldEl.getTextTrim()));
   }
 }
  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();
  }
 public static void fillFieldsfromXML(
     org.dom4j.Element el,
     ims.domain.DomainFactory factory,
     TrackingAreaCubicles obj,
     java.util.HashMap domMap)
     throws Exception {
   org.dom4j.Element fldEl;
   fldEl = el.element("trackingArea");
   if (fldEl != null) {
     fldEl = fldEl.element("class");
     obj.setTrackingArea(
         ims.emergency.configuration.domain.objects.TrackingArea.getTrackingAreafromXML(
             fldEl, factory, domMap));
   }
   fldEl = el.element("cubiclesRoomsBeds");
   if (fldEl != null) {
     fldEl = fldEl.element("list");
     obj.setCubiclesRoomsBeds(
         ims.emergency.configuration.domain.objects.TrackingCubicleRoomBed.fromListXMLString(
             fldEl, factory, obj.getCubiclesRoomsBeds(), domMap));
   }
 }