public String toAuditString() {
    StringBuffer auditStr = new StringBuffer();

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

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

      auditStr.append(authoringInformation.toString());
    }
    auditStr.append("; ");
    auditStr.append("\r\n*finalNote* :");
    auditStr.append(finalNote);
    auditStr.append("; ");
    auditStr.append("\r\n*recordingInformation* :");
    if (recordingInformation != null) {
      auditStr.append(toShortClassName(recordingInformation));

      auditStr.append(recordingInformation.toString());
    }
    auditStr.append("; ");
    return auditStr.toString();
  }
Exemplo n.º 2
0
  public String toAuditString() {
    StringBuffer auditStr = new StringBuffer();

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

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

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

      auditStr.append(authoringInformation.toString());
    }
    auditStr.append("; ");
    auditStr.append("\r\n*startDateTime* :");
    auditStr.append(startDateTime);
    auditStr.append("; ");
    auditStr.append("\r\n*startHCP* :");
    if (startHCP != null) {
      auditStr.append(toShortClassName(startHCP));

      auditStr.append(startHCP.getId());
    }
    auditStr.append("; ");
    auditStr.append("\r\n*levelOfIntervention* :");
    auditStr.append(levelOfIntervention);
    auditStr.append("; ");
    auditStr.append("\r\n*group* :");
    if (group != null) auditStr.append(group.getText());
    auditStr.append("; ");
    auditStr.append("\r\n*title* :");
    auditStr.append(title);
    auditStr.append("; ");
    auditStr.append("\r\n*status* :");
    if (status != null) auditStr.append(status.getText());
    auditStr.append("; ");
    auditStr.append("\r\n*resolvedDateTime* :");
    auditStr.append(resolvedDateTime);
    auditStr.append("; ");
    auditStr.append("\r\n*resolvingHCP* :");
    if (resolvingHCP != null) {
      auditStr.append(toShortClassName(resolvingHCP));

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

      auditStr.append(confirmingHCP.getId());
    }
    auditStr.append("; ");
    auditStr.append("\r\n*actions* :");
    if (actions != null) {
      java.util.Iterator it14 = actions.iterator();
      int i14 = 0;
      while (it14.hasNext()) {
        if (i14 > 0) auditStr.append(",");
        ims.nursing.domain.objects.PlanOfCareActions obj =
            (ims.nursing.domain.objects.PlanOfCareActions) it14.next();
        if (obj != null) {
          if (i14 == 0) {
            auditStr.append(toShortClassName(obj));
            auditStr.append("[");
          }

          auditStr.append(obj.getId());
        }
        i14++;
      }
      if (i14 > 0) auditStr.append("] " + i14);
    }
    auditStr.append("; ");
    auditStr.append("\r\n*assessmentQuestion* :");
    if (assessmentQuestion != null) {
      auditStr.append(toShortClassName(assessmentQuestion));

      auditStr.append(assessmentQuestion.getId());
    }
    auditStr.append("; ");
    auditStr.append("\r\n*answerHistory* :");
    if (answerHistory != null) {
      java.util.Iterator it16 = answerHistory.iterator();
      int i16 = 0;
      while (it16.hasNext()) {
        if (i16 > 0) auditStr.append(",");
        ims.nursing.domain.objects.PlanOfCareHistory obj =
            (ims.nursing.domain.objects.PlanOfCareHistory) it16.next();
        if (obj != null) {
          if (i16 == 0) {
            auditStr.append(toShortClassName(obj));
            auditStr.append("[");
          }

          auditStr.append(obj.getId());
        }
        i16++;
      }
      if (i16 > 0) auditStr.append("] " + i16);
    }
    auditStr.append("; ");
    return auditStr.toString();
  }
  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*authoringInformation* :");
    if (authoringInformation != null) {
      auditStr.append(toShortClassName(authoringInformation));

      auditStr.append(authoringInformation.toString());
    }
    auditStr.append("; ");
    auditStr.append("\r\n*intraOperativeCareRecord* :");
    if (intraOperativeCareRecord != null) {
      auditStr.append(toShortClassName(intraOperativeCareRecord));

      auditStr.append(intraOperativeCareRecord.getId());
    }
    auditStr.append("; ");
    auditStr.append("\r\n*preOperativeDiagnosis* :");
    auditStr.append(preOperativeDiagnosis);
    auditStr.append("; ");
    auditStr.append("\r\n*antibiotics* :");
    auditStr.append(antibiotics);
    auditStr.append("; ");
    auditStr.append("\r\n*vTE* :");
    auditStr.append(vTE);
    auditStr.append("; ");
    auditStr.append("\r\n*incision* :");
    auditStr.append(incision);
    auditStr.append("; ");
    auditStr.append("\r\n*findings* :");
    auditStr.append(findings);
    auditStr.append("; ");
    auditStr.append("\r\n*procedure* :");
    auditStr.append(procedure);
    auditStr.append("; ");
    auditStr.append("\r\n*complications* :");
    auditStr.append(complications);
    auditStr.append("; ");
    auditStr.append("\r\n*closure* :");
    auditStr.append(closure);
    auditStr.append("; ");
    auditStr.append("\r\n*lAInfiltration* :");
    auditStr.append(lAInfiltration);
    auditStr.append("; ");
    auditStr.append("\r\n*postOpInstructions* :");
    auditStr.append(postOpInstructions);
    auditStr.append("; ");
    auditStr.append("\r\n*eBI* :");
    auditStr.append(eBI);
    auditStr.append("; ");
    auditStr.append("\r\n*followUpType* :");
    if (followUpType != null) auditStr.append(followUpType.getText());
    auditStr.append("; ");
    auditStr.append("\r\n*followUpTypeIn* :");
    if (followUpTypeIn != null) auditStr.append(followUpTypeIn.getText());
    auditStr.append("; ");
    return auditStr.toString();
  }
  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*authoringInformation* :");
    if (authoringInformation != null) {
      auditStr.append(toShortClassName(authoringInformation));

      auditStr.append(authoringInformation.toString());
    }
    auditStr.append("; ");
    auditStr.append("\r\n*procedure* :");
    if (procedure != null) {
      auditStr.append(toShortClassName(procedure));

      auditStr.append(procedure.getId());
    }
    auditStr.append("; ");
    auditStr.append("\r\n*theatreType* :");
    if (theatreType != null) auditStr.append(theatreType.getText());
    auditStr.append("; ");
    auditStr.append("\r\n*historyPresComplaint* :");
    auditStr.append(historyPresComplaint);
    auditStr.append("; ");
    auditStr.append("\r\n*examination* :");
    auditStr.append(examination);
    auditStr.append("; ");
    auditStr.append("\r\n*conclusions* :");
    auditStr.append(conclusions);
    auditStr.append("; ");
    auditStr.append("\r\n*suitableForSurgery* :");
    if (suitableForSurgery != null) auditStr.append(suitableForSurgery.getText());
    auditStr.append("; ");
    auditStr.append("\r\n*reasonNotSuitable* :");
    if (reasonNotSuitable != null) auditStr.append(reasonNotSuitable.getText());
    auditStr.append("; ");
    auditStr.append("\r\n*notSuitableForSurgeyComments* :");
    auditStr.append(notSuitableForSurgeyComments);
    auditStr.append("; ");
    auditStr.append("\r\n*suitableForSurgeryAssessment* :");
    if (suitableForSurgeryAssessment != null) {
      auditStr.append(toShortClassName(suitableForSurgeryAssessment));

      auditStr.append(suitableForSurgeryAssessment.getId());
    }
    auditStr.append("; ");
    auditStr.append("\r\n*comments* :");
    if (comments != null) {
      java.util.Iterator it12 = comments.iterator();
      int i12 = 0;
      while (it12.hasNext()) {
        if (i12 > 0) auditStr.append(",");
        ims.RefMan.domain.objects.SuitableForSurgeryComment obj =
            (ims.RefMan.domain.objects.SuitableForSurgeryComment) it12.next();
        if (obj != null) {
          if (i12 == 0) {
            auditStr.append(toShortClassName(obj));
            auditStr.append("[");
          }

          auditStr.append(obj.getId());
        }
        i12++;
      }
      if (i12 > 0) auditStr.append("] " + i12);
    }
    auditStr.append("; ");
    auditStr.append("\r\n*procedurePerformed* :");
    auditStr.append(procedurePerformed);
    auditStr.append("; ");
    auditStr.append("\r\n*suitableForSurgeryDate* :");
    auditStr.append(suitableForSurgeryDate);
    auditStr.append("; ");
    auditStr.append("\r\n*requiredDurationInMins* :");
    auditStr.append(requiredDurationInMins);
    auditStr.append("; ");
    auditStr.append("\r\n*anaestheticType* :");
    if (anaestheticType != null) auditStr.append(anaestheticType.getText());
    auditStr.append("; ");
    auditStr.append("\r\n*namedSurgeon* :");
    if (namedSurgeon != null) {
      auditStr.append(toShortClassName(namedSurgeon));

      auditStr.append(namedSurgeon.getId());
    }
    auditStr.append("; ");
    auditStr.append("\r\n*specialEquipmentRequired* :");
    auditStr.append(specialEquipmentRequired);
    auditStr.append("; ");
    auditStr.append("\r\n*specialEquipmentComments* :");
    auditStr.append(specialEquipmentComments);
    auditStr.append("; ");
    auditStr.append("\r\n*specialInstructionsRequired* :");
    auditStr.append(specialInstructionsRequired);
    auditStr.append("; ");
    auditStr.append("\r\n*specialInstructionsComments* :");
    auditStr.append(specialInstructionsComments);
    auditStr.append("; ");
    return auditStr.toString();
  }