Пример #1
0
 public static void fillFieldsfromXML(
     org.dom4j.Element el,
     ims.domain.DomainFactory factory,
     MOSMessageQueue obj,
     java.util.HashMap domMap)
     throws Exception {
   org.dom4j.Element fldEl;
   fldEl = el.element("providerSystem");
   if (fldEl != null) {
     fldEl = fldEl.element("class");
     obj.setProviderSystem(
         ims.core.admin.domain.objects.ProviderSystem.getProviderSystemfromXML(
             fldEl, factory, domMap));
   }
   fldEl = el.element("wasProcessed");
   if (fldEl != null) {
     obj.setWasProcessed(new Boolean(fldEl.getTextTrim()));
   }
   fldEl = el.element("wasDiscarded");
   if (fldEl != null) {
     obj.setWasDiscarded(new Boolean(fldEl.getTextTrim()));
   }
   fldEl = el.element("msgText");
   if (fldEl != null) {
     obj.setMsgText(new String(fldEl.getTextTrim()));
   }
   fldEl = el.element("ackText");
   if (fldEl != null) {
     obj.setAckText(new String(fldEl.getTextTrim()));
   }
   fldEl = el.element("failureMsg");
   if (fldEl != null) {
     obj.setFailureMsg(new String(fldEl.getTextTrim()));
   }
   fldEl = el.element("messageStatus");
   if (fldEl != null) {
     fldEl = fldEl.element("lki");
     obj.setMessageStatus(ims.domain.lookups.LookupInstance.fromXMLString(fldEl, factory));
   }
   fldEl = el.element("msgType");
   if (fldEl != null) {
     fldEl = fldEl.element("lki");
     obj.setMsgType(ims.domain.lookups.LookupInstance.fromXMLString(fldEl, factory));
   }
   fldEl = el.element("queueType");
   if (fldEl != null) {
     fldEl = fldEl.element("lki");
     obj.setQueueType(ims.domain.lookups.LookupInstance.fromXMLString(fldEl, factory));
   }
   fldEl = el.element("mOS");
   if (fldEl != null) {
     fldEl = fldEl.element("class");
     obj.setMOS(
         ims.core.resource.people.domain.objects.MemberOfStaff.getMemberOfStafffromXML(
             fldEl, factory, domMap));
   }
 }
Пример #2
0
 public static void fillFieldsfromXML(
     org.dom4j.Element el,
     ims.domain.DomainFactory factory,
     HL7Outbound 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("providerSystem");
   if (fldEl != null) {
     fldEl = fldEl.element("class");
     obj.setProviderSystem(
         ims.core.admin.domain.objects.ProviderSystem.getProviderSystemfromXML(
             fldEl, factory, domMap));
   }
   fldEl = el.element("hL7Message");
   if (fldEl != null) {
     obj.setHL7Message(new String(fldEl.getTextTrim()));
   }
   fldEl = el.element("messageType");
   if (fldEl != null) {
     fldEl = fldEl.element("lki");
     obj.setMessageType(ims.domain.lookups.LookupInstance.fromXMLString(fldEl, factory));
   }
   fldEl = el.element("messageCategory");
   if (fldEl != null) {
     fldEl = fldEl.element("lki");
     obj.setMessageCategory(ims.domain.lookups.LookupInstance.fromXMLString(fldEl, factory));
   }
   fldEl = el.element("failureMessage");
   if (fldEl != null) {
     obj.setFailureMessage(new String(fldEl.getTextTrim()));
   }
   fldEl = el.element("messageSentDateTime");
   if (fldEl != null) {
     obj.setMessageSentDateTime(
         new java.text.SimpleDateFormat("yyyyMMddHHmmssSSS").parse(fldEl.getTextTrim()));
   }
   fldEl = el.element("successfulOutcome");
   if (fldEl != null) {
     obj.setSuccessfulOutcome(new Boolean(fldEl.getTextTrim()));
   }
 }
  public String toAuditString() {
    StringBuffer auditStr = new StringBuffer();

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

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

      auditStr.append(providerSystem.getId());
    }
    auditStr.append("; ");
    return auditStr.toString();
  }
Пример #4
0
  public String toAuditString() {
    StringBuffer auditStr = new StringBuffer();

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

      auditStr.append(providerSystem.getId());
    }
    auditStr.append("; ");
    auditStr.append("\r\n*wasProcessed* :");
    auditStr.append(wasProcessed);
    auditStr.append("; ");
    auditStr.append("\r\n*wasDiscarded* :");
    auditStr.append(wasDiscarded);
    auditStr.append("; ");
    auditStr.append("\r\n*msgText* :");
    auditStr.append(msgText);
    auditStr.append("; ");
    auditStr.append("\r\n*ackText* :");
    auditStr.append(ackText);
    auditStr.append("; ");
    auditStr.append("\r\n*failureMsg* :");
    auditStr.append(failureMsg);
    auditStr.append("; ");
    auditStr.append("\r\n*messageStatus* :");
    if (messageStatus != null) auditStr.append(messageStatus.getText());
    auditStr.append("; ");
    auditStr.append("\r\n*msgType* :");
    if (msgType != null) auditStr.append(msgType.getText());
    auditStr.append("; ");
    auditStr.append("\r\n*queueType* :");
    if (queueType != null) auditStr.append(queueType.getText());
    auditStr.append("; ");
    auditStr.append("\r\n*mOS* :");
    if (mOS != null) {
      auditStr.append(toShortClassName(mOS));

      auditStr.append(mOS.getId());
    }
    auditStr.append("; ");
    return auditStr.toString();
  }
 public static void fillFieldsfromXML(
     org.dom4j.Element el,
     ims.domain.DomainFactory factory,
     LocSvcProviderSys obj,
     java.util.HashMap domMap)
     throws Exception {
   org.dom4j.Element fldEl;
   fldEl = el.element("locationService");
   if (fldEl != null) {
     fldEl = fldEl.element("class");
     obj.setLocationService(
         ims.core.resource.place.domain.objects.LocationService.getLocationServicefromXML(
             fldEl, factory, domMap));
   }
   fldEl = el.element("providerSystem");
   if (fldEl != null) {
     fldEl = fldEl.element("class");
     obj.setProviderSystem(
         ims.core.admin.domain.objects.ProviderSystem.getProviderSystemfromXML(
             fldEl, factory, domMap));
   }
 }
Пример #6
0
  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*providerSystem* :");
    if (providerSystem != null) {
      auditStr.append(toShortClassName(providerSystem));

      auditStr.append(providerSystem.getId());
    }
    auditStr.append("; ");
    auditStr.append("\r\n*hL7Message* :");
    auditStr.append(hL7Message);
    auditStr.append("; ");
    auditStr.append("\r\n*messageType* :");
    if (messageType != null) auditStr.append(messageType.getText());
    auditStr.append("; ");
    auditStr.append("\r\n*messageCategory* :");
    if (messageCategory != null) auditStr.append(messageCategory.getText());
    auditStr.append("; ");
    auditStr.append("\r\n*failureMessage* :");
    auditStr.append(failureMessage);
    auditStr.append("; ");
    auditStr.append("\r\n*messageSentDateTime* :");
    auditStr.append(messageSentDateTime);
    auditStr.append("; ");
    auditStr.append("\r\n*successfulOutcome* :");
    auditStr.append(successfulOutcome);
    auditStr.append("; ");
    return auditStr.toString();
  }