public static void fillFieldsfromXML(
     org.dom4j.Element el,
     ims.domain.DomainFactory factory,
     NeoNatal obj,
     java.util.HashMap domMap)
     throws Exception {
   org.dom4j.Element fldEl;
   fldEl = el.element("careContext");
   if (fldEl != null) {
     fldEl = fldEl.element("class");
     obj.setCareContext(
         ims.core.admin.domain.objects.CareContext.getCareContextfromXML(fldEl, factory, domMap));
   }
   fldEl = el.element("dischargingNurse");
   if (fldEl != null) {
     fldEl = fldEl.element("class");
     obj.setDischargingNurse(
         ims.core.resource.people.domain.objects.Nurse.getNursefromXML(fldEl, factory, domMap));
   }
   fldEl = el.element("gestationWeeks");
   if (fldEl != null) {
     obj.setGestationWeeks(new Integer(fldEl.getTextTrim()));
   }
   fldEl = el.element("isMidwife");
   if (fldEl != null) {
     obj.setIsMidwife(new Boolean(fldEl.getTextTrim()));
   }
   fldEl = el.element("isHealthVisitor");
   if (fldEl != null) {
     obj.setIsHealthVisitor(new Boolean(fldEl.getTextTrim()));
   }
   fldEl = el.element("feeding");
   if (fldEl != null) {
     fldEl = fldEl.element("lki");
     obj.setFeeding(ims.domain.lookups.LookupInstance.fromXMLString(fldEl, factory));
   }
   fldEl = el.element("isVitaminKGiven");
   if (fldEl != null) {
     obj.setIsVitaminKGiven(new Boolean(fldEl.getTextTrim()));
   }
   fldEl = el.element("route");
   if (fldEl != null) {
     fldEl = fldEl.element("lki");
     obj.setRoute(ims.domain.lookups.LookupInstance.fromXMLString(fldEl, factory));
   }
   fldEl = el.element("_1stPKUTestDate");
   if (fldEl != null) {
     obj.set_1stPKUTestDate(
         new java.text.SimpleDateFormat("yyyyMMddHHmmssSSS").parse(fldEl.getTextTrim()));
   }
   fldEl = el.element("_2ndPKUTestDate");
   if (fldEl != null) {
     obj.set_2ndPKUTestDate(
         new java.text.SimpleDateFormat("yyyyMMddHHmmssSSS").parse(fldEl.getTextTrim()));
   }
   fldEl = el.element("apgar1Minute");
   if (fldEl != null) {
     obj.setApgar1Minute(new Integer(fldEl.getTextTrim()));
   }
   fldEl = el.element("apgar5Minute");
   if (fldEl != null) {
     obj.setApgar5Minute(new Integer(fldEl.getTextTrim()));
   }
   fldEl = el.element("birthWeight");
   if (fldEl != null) {
     obj.setBirthWeight(new java.lang.Float(fldEl.getTextTrim()));
   }
   fldEl = el.element("length");
   if (fldEl != null) {
     obj.setLength(new Integer(fldEl.getTextTrim()));
   }
   fldEl = el.element("dischargeWeight");
   if (fldEl != null) {
     obj.setDischargeWeight(new java.lang.Float(fldEl.getTextTrim()));
   }
   fldEl = el.element("isComplete");
   if (fldEl != null) {
     obj.setIsComplete(new Boolean(fldEl.getTextTrim()));
   }
 }
  public String toAuditString() {
    StringBuffer auditStr = new StringBuffer();

    auditStr.append("\r\n*careContext* :");
    if (careContext != null) {
      auditStr.append(toShortClassName(careContext));

      auditStr.append(careContext.getId());
    }
    auditStr.append("; ");
    auditStr.append("\r\n*dischargingNurse* :");
    if (dischargingNurse != null) {
      auditStr.append(toShortClassName(dischargingNurse));

      auditStr.append(dischargingNurse.getId());
    }
    auditStr.append("; ");
    auditStr.append("\r\n*gestationWeeks* :");
    auditStr.append(gestationWeeks);
    auditStr.append("; ");
    auditStr.append("\r\n*isMidwife* :");
    auditStr.append(isMidwife);
    auditStr.append("; ");
    auditStr.append("\r\n*isHealthVisitor* :");
    auditStr.append(isHealthVisitor);
    auditStr.append("; ");
    auditStr.append("\r\n*feeding* :");
    if (feeding != null) auditStr.append(feeding.getText());
    auditStr.append("; ");
    auditStr.append("\r\n*isVitaminKGiven* :");
    auditStr.append(isVitaminKGiven);
    auditStr.append("; ");
    auditStr.append("\r\n*route* :");
    if (route != null) auditStr.append(route.getText());
    auditStr.append("; ");
    auditStr.append("\r\n*_1stPKUTestDate* :");
    auditStr.append(_1stPKUTestDate);
    auditStr.append("; ");
    auditStr.append("\r\n*_2ndPKUTestDate* :");
    auditStr.append(_2ndPKUTestDate);
    auditStr.append("; ");
    auditStr.append("\r\n*apgar1Minute* :");
    auditStr.append(apgar1Minute);
    auditStr.append("; ");
    auditStr.append("\r\n*apgar5Minute* :");
    auditStr.append(apgar5Minute);
    auditStr.append("; ");
    auditStr.append("\r\n*birthWeight* :");
    auditStr.append(birthWeight);
    auditStr.append("; ");
    auditStr.append("\r\n*length* :");
    auditStr.append(length);
    auditStr.append("; ");
    auditStr.append("\r\n*dischargeWeight* :");
    auditStr.append(dischargeWeight);
    auditStr.append("; ");
    auditStr.append("\r\n*isComplete* :");
    auditStr.append(isComplete);
    auditStr.append("; ");
    return auditStr.toString();
  }