Examples of generateACK()


Examples of ca.uhn.hl7v2.model.Message.generateACK()

            HL7Exception hl7e = generateHL7Exception(t);
            AckCode code = acknowledgementCode;
            if (t != null && code == null) {
                code = AckCode.AE;
            }
            return msg.generateACK(code == null ? AcknowledgmentCode.AA : code.toAcknowledgmentCode(), hl7e);
        } catch (Exception e) {
            throw ObjectHelper.wrapRuntimeCamelException(e);
        }
    }
View Full Code Here

Examples of ca.uhn.hl7v2.model.Message.generateACK()

            } else if (request instanceof Message) {
                in = (Message) request;
            } else {
                throw new HL7Exception("Validated message must be either Message or String");
            }
            return in.generateACK(getSuccessAcknowledgementCode(), null);

        } catch (IOException e) {
            throw new HL7Exception(e);
        }
    }
View Full Code Here

Examples of ca.uhn.hl7v2.model.Message.generateACK()

        try {
            Message out = hl7e.getResponseMessage();
            if (out == null) {
                Message in = getInMessage(inHeader);
                out = in.generateACK(DEFAULT_EXCEPTION_ACKNOWLEDGEMENT_CODE, hl7e);
            }
            return encoding != null ? p.encode(out, encoding) : p.encode(out);

        } catch (IOException ioe) {
            throw new HL7Exception(
View Full Code Here

Examples of ca.uhn.hl7v2.model.Message.generateACK()

            HL7Exception hl7e = generateHL7Exception(t);
            AcknowledgmentCode code = acknowledgementCode;
            if (t != null && code == null) {
                code = AcknowledgmentCode.AE;
            }
            return msg.generateACK(code == null ? AcknowledgmentCode.AA : code, hl7e);
        } catch (Exception e) {
            throw ObjectHelper.wrapRuntimeCamelException(e);
        }
    }
View Full Code Here

Examples of ca.uhn.hl7v2.model.Message.generateACK()

            HL7Exception hl7e = generateHL7Exception(t);
            AckCode code = acknowledgementCode;
            if (t != null && code == null) {
                code = AckCode.AE;
            }
            return msg.generateACK(code == null ? null : code.name(), hl7e);
        } catch (Exception e) {
            throw ObjectHelper.wrapRuntimeCamelException(e);
        }
    }
View Full Code Here

Examples of ca.uhn.hl7v2.model.Message.generateACK()

            } else if (request instanceof Message) {
                in = (Message) request;
            } else {
                throw new HL7Exception("Validated message must be either Message or String");
            }
            return in.generateACK(getSuccessAcknowledgementCode(), null);

        } catch (IOException e) {
            throw new HL7Exception(e);
        }
    }
View Full Code Here

Examples of ca.uhn.hl7v2.model.Message.generateACK()

      } else {
        in = Version.highestAvailableVersionOrDefault().newGenericMessage(myParser.getFactory());
        ((GenericMessage)in).initQuickstart("ACK", "", "");
      }
     
      out = in.generateACK(AcknowledgmentCode.AE, hl7e);
     
      if (encoding != null) {
        errorMessage = p.encode(out, encoding);
      } else {
        errorMessage = p.encode(out);
View Full Code Here

Examples of ca.uhn.hl7v2.model.Message.generateACK()

      } else {
        in = Version.highestAvailableVersionOrDefault().newGenericMessage(myParser.getFactory());
        ((GenericMessage)in).initQuickstart("ACK", "", "");
      }
     
      out = in.generateACK(DEFAULT_EXCEPTION_ACKNOWLEDGEMENT_CODE, hl7e);
     
      if (encoding != null) {
        errorMessage = p.encode(out, encoding);
      } else {
        errorMessage = p.encode(out);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.