Example #1
0
  public String toAuditString() {
    StringBuffer auditStr = new StringBuffer();

    auditStr.append("\r\n*itemCategory* :");
    if (itemCategory != null) auditStr.append(itemCategory.getText());
    auditStr.append("; ");
    auditStr.append("\r\n*itemType* :");
    if (itemType != null) auditStr.append(itemType.getText());
    auditStr.append("; ");
    auditStr.append("\r\n*supplier* :");
    if (supplier != null) auditStr.append(supplier.getText());
    auditStr.append("; ");
    auditStr.append("\r\n*dateRequired* :");
    auditStr.append(dateRequired);
    auditStr.append("; ");
    auditStr.append("\r\n*dateSupplied* :");
    auditStr.append(dateSupplied);
    auditStr.append("; ");
    auditStr.append("\r\n*suppliedFor* :");
    if (suppliedFor != null) auditStr.append(suppliedFor.getText());
    auditStr.append("; ");
    auditStr.append("\r\n*loan* :");
    if (loan != null) auditStr.append(loan.getText());
    auditStr.append("; ");
    auditStr.append("\r\n*fundedBy* :");
    if (fundedBy != null) auditStr.append(fundedBy.getText());
    auditStr.append("; ");
    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("; ");
    return auditStr.toString();
  }
Example #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*authoringCP* :");
    if (authoringCP != null) {
      auditStr.append(toShortClassName(authoringCP));

      auditStr.append(authoringCP.getId());
    }
    auditStr.append("; ");
    auditStr.append("\r\n*authoringDateTime* :");
    auditStr.append(authoringDateTime);
    auditStr.append("; ");
    auditStr.append("\r\n*mobilisationTreatment* :");
    if (mobilisationTreatment != null) {
      java.util.Iterator it4 = mobilisationTreatment.iterator();
      int i4 = 0;
      while (it4.hasNext()) {
        if (i4 > 0) auditStr.append(",");
        ims.therapies.treatment.domain.objects.MobilisationsTreatment obj =
            (ims.therapies.treatment.domain.objects.MobilisationsTreatment) it4.next();
        if (obj != null) {
          if (i4 == 0) {
            auditStr.append(toShortClassName(obj));
            auditStr.append("[");
          }

          auditStr.append(obj.getId());
        }
        i4++;
      }
      if (i4 > 0) auditStr.append("] " + i4);
    }
    auditStr.append("; ");
    return auditStr.toString();
  }
Example #3
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*injuryDate* :");
    auditStr.append(injuryDate);
    auditStr.append("; ");
    auditStr.append("\r\n*injuryTime* :");
    auditStr.append(injuryTime);
    auditStr.append("; ");
    auditStr.append("\r\n*referralDate* :");
    auditStr.append(referralDate);
    auditStr.append("; ");
    auditStr.append("\r\n*transferDate* :");
    auditStr.append(transferDate);
    auditStr.append("; ");
    auditStr.append("\r\n*sufferedLOC* :");
    auditStr.append(sufferedLOC);
    auditStr.append("; ");
    auditStr.append("\r\n*durLOC* :");
    auditStr.append(durLOC);
    auditStr.append("; ");
    auditStr.append("\r\n*durLOCUnit* :");
    if (durLOCUnit != null) auditStr.append(durLOCUnit.getText());
    auditStr.append("; ");
    auditStr.append("\r\n*requiresVentillation* :");
    if (requiresVentillation != null) auditStr.append(requiresVentillation.getText());
    auditStr.append("; ");
    auditStr.append("\r\n*descriptionOfInjury* :");
    auditStr.append(descriptionOfInjury);
    auditStr.append("; ");
    auditStr.append("\r\n*presentingComplaints* :");
    auditStr.append(presentingComplaints);
    auditStr.append("; ");
    auditStr.append("\r\n*associatedFactor* :");
    if (associatedFactor != null) {
      java.util.Iterator it11 = associatedFactor.iterator();
      int i11 = 0;
      while (it11.hasNext()) {
        if (i11 > 0) auditStr.append(",");
        ims.medical.domain.objects.InjuryAssocFactor obj =
            (ims.medical.domain.objects.InjuryAssocFactor) it11.next();
        if (obj != null) {
          if (i11 == 0) {
            auditStr.append(toShortClassName(obj));
            auditStr.append("[");
          }

          auditStr.append(obj.getId());
        }
        i11++;
      }
      if (i11 > 0) auditStr.append("] " + i11);
    }
    auditStr.append("; ");
    auditStr.append("\r\n*modeOfInjury* :");
    if (modeOfInjury != null) auditStr.append(modeOfInjury.getText());
    auditStr.append("; ");
    auditStr.append("\r\n*causeOfInjury* :");
    if (causeOfInjury != null) auditStr.append(causeOfInjury.getText());
    auditStr.append("; ");
    auditStr.append("\r\n*mechanismOfInjury* :");
    if (mechanismOfInjury != null) auditStr.append(mechanismOfInjury.getText());
    auditStr.append("; ");
    auditStr.append("\r\n*clinicalContact* :");
    if (clinicalContact != null) {
      auditStr.append(toShortClassName(clinicalContact));

      auditStr.append(clinicalContact.getId());
    }
    auditStr.append("; ");
    return auditStr.toString();
  }
  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*patient* :");
    if (patient != null) {
      auditStr.append(toShortClassName(patient));

      auditStr.append(patient.getId());
    }
    auditStr.append("; ");
    auditStr.append("\r\n*investigations* :");
    if (investigations != null) {
      java.util.Iterator it3 = investigations.iterator();
      int i3 = 0;
      while (it3.hasNext()) {
        if (i3 > 0) auditStr.append(",");
        ims.ocrr.orderingresults.domain.objects.OrderInvestigation obj =
            (ims.ocrr.orderingresults.domain.objects.OrderInvestigation) it3.next();
        if (obj != null) {
          if (i3 == 0) {
            auditStr.append(toShortClassName(obj));
            auditStr.append("[");
          }

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

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

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

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

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

      auditStr.append(patientClinic.getId());
    }
    auditStr.append("; ");
    auditStr.append("\r\n*hcpAlerts* :");
    if (hcpAlerts != null) {
      java.util.Iterator it9 = hcpAlerts.iterator();
      int i9 = 0;
      while (it9.hasNext()) {
        if (i9 > 0) auditStr.append(",");
        ims.ocrr.orderingresults.domain.objects.OrderHCPAlert obj =
            (ims.ocrr.orderingresults.domain.objects.OrderHCPAlert) it9.next();
        if (obj != null) {
          if (i9 == 0) {
            auditStr.append(toShortClassName(obj));
            auditStr.append("[");
          }

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

      auditStr.append(clinicalInfo.getId());
    }
    auditStr.append("; ");
    auditStr.append("\r\n*additClinNotes* :");
    auditStr.append(additClinNotes);
    auditStr.append("; ");
    auditStr.append("\r\n*patMobility* :");
    if (patMobility != null) auditStr.append(patMobility.getText());
    auditStr.append("; ");
    auditStr.append("\r\n*orderCategory* :");
    if (orderCategory != null) auditStr.append(orderCategory.getText());
    auditStr.append("; ");
    auditStr.append("\r\n*reportTo* :");
    if (reportTo != null) {
      int i16 = 0;
      for (i16 = 0; i16 < reportTo.size(); i16++) {
        if (i16 > 0) auditStr.append(",");
        ims.ocrr.orderingresults.domain.objects.OcsReportTo obj =
            (ims.ocrr.orderingresults.domain.objects.OcsReportTo) reportTo.get(i16);
        if (obj != null) {
          if (i16 == 0) {
            auditStr.append(toShortClassName(obj));
            auditStr.append("[");
          }
          auditStr.append(obj.toString());
        }
      }
      if (i16 > 0) auditStr.append("] " + i16);
    }
    auditStr.append("; ");
    auditStr.append("\r\n*specimens* :");
    if (specimens != null) {
      java.util.Iterator it17 = specimens.iterator();
      int i17 = 0;
      while (it17.hasNext()) {
        if (i17 > 0) auditStr.append(",");
        ims.ocrr.orderingresults.domain.objects.OrderSpecimen obj =
            (ims.ocrr.orderingresults.domain.objects.OrderSpecimen) it17.next();
        if (obj != null) {
          if (i17 == 0) {
            auditStr.append(toShortClassName(obj));
            auditStr.append("[");
          }

          auditStr.append(obj.getId());
        }
        i17++;
      }
      if (i17 > 0) auditStr.append("] " + i17);
    }
    auditStr.append("; ");
    auditStr.append("\r\n*wasProcessed* :");
    auditStr.append(wasProcessed);
    auditStr.append("; ");
    auditStr.append("\r\n*authorisationOrderStatus* :");
    if (authorisationOrderStatus != null) auditStr.append(authorisationOrderStatus.getText());
    auditStr.append("; ");
    auditStr.append("\r\n*wasDiscarded* :");
    auditStr.append(wasDiscarded);
    auditStr.append("; ");
    auditStr.append("\r\n*careContext* :");
    if (careContext != null) {
      auditStr.append(toShortClassName(careContext));

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

      auditStr.append(orderingHospital.getId());
    }
    auditStr.append("; ");
    auditStr.append("\r\n*hasNewOrUpdatedResults* :");
    auditStr.append(hasNewOrUpdatedResults);
    auditStr.append("; ");
    auditStr.append("\r\n*bedNumber* :");
    auditStr.append(bedNumber);
    auditStr.append("; ");
    auditStr.append("\r\n*sendNumber* :");
    auditStr.append(sendNumber);
    auditStr.append("; ");
    auditStr.append("\r\n*outpatientDept* :");
    if (outpatientDept != null) {
      auditStr.append(toShortClassName(outpatientDept));

      auditStr.append(outpatientDept.getId());
    }
    auditStr.append("; ");
    auditStr.append("\r\n*summaryClinicalInformation* :");
    auditStr.append(summaryClinicalInformation);
    auditStr.append("; ");
    auditStr.append("\r\n*bleepExtNumber* :");
    auditStr.append(bleepExtNumber);
    auditStr.append("; ");
    return auditStr.toString();
  }