public static void fillFieldsfromXML(
     org.dom4j.Element el,
     ims.domain.DomainFactory factory,
     CatsReportNote obj,
     java.util.HashMap domMap)
     throws Exception {
   org.dom4j.Element fldEl;
   fldEl = el.element("catsReferral");
   if (fldEl != null) {
     fldEl = fldEl.element("class");
     obj.setCatsReferral(
         ims.RefMan.domain.objects.CatsReferral.getCatsReferralfromXML(fldEl, factory, domMap));
   }
   fldEl = el.element("authoringInformation");
   if (fldEl != null) {
     fldEl = fldEl.element("class");
     obj.setAuthoringInformation(
         ims.core.clinical.domain.objects.AuthoringInformation.getAuthoringInformationfromXML(
             fldEl, factory, domMap));
   }
   fldEl = el.element("finalNote");
   if (fldEl != null) {
     obj.setFinalNote(new String(fldEl.getTextTrim()));
   }
   fldEl = el.element("recordingInformation");
   if (fldEl != null) {
     fldEl = fldEl.element("class");
     obj.setRecordingInformation(
         ims.core.clinical.domain.objects.AuthoringInformation.getAuthoringInformationfromXML(
             fldEl, factory, domMap));
   }
 }
  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();
  }
Beispiel #3
0
 public static void fillFieldsfromXML(
     org.dom4j.Element el,
     ims.domain.DomainFactory factory,
     PlanOfCare obj,
     java.util.HashMap domMap)
     throws Exception {
   org.dom4j.Element fldEl;
   fldEl = el.element("clinicalContact");
   if (fldEl != null) {
     fldEl = fldEl.element("class");
     obj.setClinicalContact(
         ims.core.admin.domain.objects.ClinicalContact.getClinicalContactfromXML(
             fldEl, factory, domMap));
   }
   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("authoringInformation");
   if (fldEl != null) {
     fldEl = fldEl.element("class");
     obj.setAuthoringInformation(
         ims.core.clinical.domain.objects.AuthoringInformation.getAuthoringInformationfromXML(
             fldEl, factory, domMap));
   }
   fldEl = el.element("startDateTime");
   if (fldEl != null) {
     obj.setStartDateTime(
         new java.text.SimpleDateFormat("yyyyMMddHHmmssSSS").parse(fldEl.getTextTrim()));
   }
   fldEl = el.element("startHCP");
   if (fldEl != null) {
     fldEl = fldEl.element("class");
     obj.setStartHCP(
         ims.core.resource.people.domain.objects.Hcp.getHcpfromXML(fldEl, factory, domMap));
   }
   fldEl = el.element("levelOfIntervention");
   if (fldEl != null) {
     obj.setLevelOfIntervention(ims.framework.utils.Color.getColor(fldEl.getTextTrim()));
   }
   fldEl = el.element("group");
   if (fldEl != null) {
     fldEl = fldEl.element("lki");
     obj.setGroup(ims.domain.lookups.LookupInstance.fromXMLString(fldEl, factory));
   }
   fldEl = el.element("title");
   if (fldEl != null) {
     obj.setTitle(new String(fldEl.getTextTrim()));
   }
   fldEl = el.element("status");
   if (fldEl != null) {
     fldEl = fldEl.element("lki");
     obj.setStatus(ims.domain.lookups.LookupInstance.fromXMLString(fldEl, factory));
   }
   fldEl = el.element("resolvedDateTime");
   if (fldEl != null) {
     obj.setResolvedDateTime(
         new java.text.SimpleDateFormat("yyyyMMddHHmmssSSS").parse(fldEl.getTextTrim()));
   }
   fldEl = el.element("resolvingHCP");
   if (fldEl != null) {
     fldEl = fldEl.element("class");
     obj.setResolvingHCP(
         ims.core.resource.people.domain.objects.Hcp.getHcpfromXML(fldEl, factory, domMap));
   }
   fldEl = el.element("confirmingDateTime");
   if (fldEl != null) {
     obj.setConfirmingDateTime(
         new java.text.SimpleDateFormat("yyyyMMddHHmmssSSS").parse(fldEl.getTextTrim()));
   }
   fldEl = el.element("confirmingHCP");
   if (fldEl != null) {
     fldEl = fldEl.element("class");
     obj.setConfirmingHCP(
         ims.core.resource.people.domain.objects.Hcp.getHcpfromXML(fldEl, factory, domMap));
   }
   fldEl = el.element("actions");
   if (fldEl != null) {
     fldEl = fldEl.element("set");
     obj.setActions(
         ims.nursing.domain.objects.PlanOfCareActions.fromSetXMLString(
             fldEl, factory, obj.getActions(), domMap));
   }
   fldEl = el.element("assessmentQuestion");
   if (fldEl != null) {
     fldEl = fldEl.element("class");
     obj.setAssessmentQuestion(
         ims.assessment.configuration.domain.objects.AssessmentQuestion
             .getAssessmentQuestionfromXML(fldEl, factory, domMap));
   }
   fldEl = el.element("answerHistory");
   if (fldEl != null) {
     fldEl = fldEl.element("set");
     obj.setAnswerHistory(
         ims.nursing.domain.objects.PlanOfCareHistory.fromSetXMLString(
             fldEl, factory, obj.getAnswerHistory(), domMap));
   }
 }
Beispiel #4
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 static void fillFieldsfromXML(
     org.dom4j.Element el,
     ims.domain.DomainFactory factory,
     SurgicalOpNotes 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("authoringInformation");
   if (fldEl != null) {
     fldEl = fldEl.element("class");
     obj.setAuthoringInformation(
         ims.core.clinical.domain.objects.AuthoringInformation.getAuthoringInformationfromXML(
             fldEl, factory, domMap));
   }
   fldEl = el.element("intraOperativeCareRecord");
   if (fldEl != null) {
     fldEl = fldEl.element("class");
     obj.setIntraOperativeCareRecord(
         ims.core.clinical.domain.objects.IntraOperativeCareRecord
             .getIntraOperativeCareRecordfromXML(fldEl, factory, domMap));
   }
   fldEl = el.element("preOperativeDiagnosis");
   if (fldEl != null) {
     obj.setPreOperativeDiagnosis(new String(fldEl.getTextTrim()));
   }
   fldEl = el.element("antibiotics");
   if (fldEl != null) {
     obj.setAntibiotics(new String(fldEl.getTextTrim()));
   }
   fldEl = el.element("vTE");
   if (fldEl != null) {
     obj.setVTE(new String(fldEl.getTextTrim()));
   }
   fldEl = el.element("incision");
   if (fldEl != null) {
     obj.setIncision(new String(fldEl.getTextTrim()));
   }
   fldEl = el.element("findings");
   if (fldEl != null) {
     obj.setFindings(new String(fldEl.getTextTrim()));
   }
   fldEl = el.element("procedure");
   if (fldEl != null) {
     obj.setProcedure(new String(fldEl.getTextTrim()));
   }
   fldEl = el.element("complications");
   if (fldEl != null) {
     obj.setComplications(new String(fldEl.getTextTrim()));
   }
   fldEl = el.element("closure");
   if (fldEl != null) {
     obj.setClosure(new String(fldEl.getTextTrim()));
   }
   fldEl = el.element("lAInfiltration");
   if (fldEl != null) {
     obj.setLAInfiltration(new String(fldEl.getTextTrim()));
   }
   fldEl = el.element("postOpInstructions");
   if (fldEl != null) {
     obj.setPostOpInstructions(new String(fldEl.getTextTrim()));
   }
   fldEl = el.element("eBI");
   if (fldEl != null) {
     obj.setEBI(new String(fldEl.getTextTrim()));
   }
   fldEl = el.element("followUpType");
   if (fldEl != null) {
     fldEl = fldEl.element("lki");
     obj.setFollowUpType(ims.domain.lookups.LookupInstance.fromXMLString(fldEl, factory));
   }
   fldEl = el.element("followUpTypeIn");
   if (fldEl != null) {
     fldEl = fldEl.element("lki");
     obj.setFollowUpTypeIn(ims.domain.lookups.LookupInstance.fromXMLString(fldEl, factory));
   }
 }
  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 static void fillFieldsfromXML(
     org.dom4j.Element el,
     ims.domain.DomainFactory factory,
     SuitableForSurgeryAssessment 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("authoringInformation");
   if (fldEl != null) {
     fldEl = fldEl.element("class");
     obj.setAuthoringInformation(
         ims.core.clinical.domain.objects.AuthoringInformation.getAuthoringInformationfromXML(
             fldEl, factory, domMap));
   }
   fldEl = el.element("procedure");
   if (fldEl != null) {
     fldEl = fldEl.element("class");
     obj.setProcedure(
         ims.core.clinical.domain.objects.PatientProcedure.getPatientProcedurefromXML(
             fldEl, factory, domMap));
   }
   fldEl = el.element("theatreType");
   if (fldEl != null) {
     fldEl = fldEl.element("lki");
     obj.setTheatreType(ims.domain.lookups.LookupInstance.fromXMLString(fldEl, factory));
   }
   fldEl = el.element("historyPresComplaint");
   if (fldEl != null) {
     obj.setHistoryPresComplaint(new String(fldEl.getTextTrim()));
   }
   fldEl = el.element("examination");
   if (fldEl != null) {
     obj.setExamination(new String(fldEl.getTextTrim()));
   }
   fldEl = el.element("conclusions");
   if (fldEl != null) {
     obj.setConclusions(new String(fldEl.getTextTrim()));
   }
   fldEl = el.element("suitableForSurgery");
   if (fldEl != null) {
     fldEl = fldEl.element("lki");
     obj.setSuitableForSurgery(ims.domain.lookups.LookupInstance.fromXMLString(fldEl, factory));
   }
   fldEl = el.element("reasonNotSuitable");
   if (fldEl != null) {
     fldEl = fldEl.element("lki");
     obj.setReasonNotSuitable(ims.domain.lookups.LookupInstance.fromXMLString(fldEl, factory));
   }
   fldEl = el.element("notSuitableForSurgeyComments");
   if (fldEl != null) {
     obj.setNotSuitableForSurgeyComments(new String(fldEl.getTextTrim()));
   }
   fldEl = el.element("suitableForSurgeryAssessment");
   if (fldEl != null) {
     fldEl = fldEl.element("class");
     obj.setSuitableForSurgeryAssessment(
         ims.assessment.instantiation.domain.objects.PatientAssessment.getPatientAssessmentfromXML(
             fldEl, factory, domMap));
   }
   fldEl = el.element("comments");
   if (fldEl != null) {
     fldEl = fldEl.element("set");
     obj.setComments(
         ims.RefMan.domain.objects.SuitableForSurgeryComment.fromSetXMLString(
             fldEl, factory, obj.getComments(), domMap));
   }
   fldEl = el.element("procedurePerformed");
   if (fldEl != null) {
     obj.setProcedurePerformed(new Boolean(fldEl.getTextTrim()));
   }
   fldEl = el.element("suitableForSurgeryDate");
   if (fldEl != null) {
     obj.setSuitableForSurgeryDate(
         new java.text.SimpleDateFormat("yyyyMMddHHmmssSSS").parse(fldEl.getTextTrim()));
   }
   fldEl = el.element("requiredDurationInMins");
   if (fldEl != null) {
     obj.setRequiredDurationInMins(new Integer(fldEl.getTextTrim()));
   }
   fldEl = el.element("anaestheticType");
   if (fldEl != null) {
     fldEl = fldEl.element("lki");
     obj.setAnaestheticType(ims.domain.lookups.LookupInstance.fromXMLString(fldEl, factory));
   }
   fldEl = el.element("namedSurgeon");
   if (fldEl != null) {
     fldEl = fldEl.element("class");
     obj.setNamedSurgeon(
         ims.core.resource.people.domain.objects.Medic.getMedicfromXML(fldEl, factory, domMap));
   }
   fldEl = el.element("specialEquipmentRequired");
   if (fldEl != null) {
     obj.setSpecialEquipmentRequired(new Boolean(fldEl.getTextTrim()));
   }
   fldEl = el.element("specialEquipmentComments");
   if (fldEl != null) {
     obj.setSpecialEquipmentComments(new String(fldEl.getTextTrim()));
   }
   fldEl = el.element("specialInstructionsRequired");
   if (fldEl != null) {
     obj.setSpecialInstructionsRequired(new Boolean(fldEl.getTextTrim()));
   }
   fldEl = el.element("specialInstructionsComments");
   if (fldEl != null) {
     obj.setSpecialInstructionsComments(new String(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*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();
  }