Examples of AcknowledgmentCode


Examples of ca.uhn.hl7v2.AcknowledgmentCode

    public Object evaluate(Exchange exchange) {
        Throwable t = exchange.getProperty(Exchange.EXCEPTION_CAUGHT, Throwable.class);
        Message msg = exchange.getIn().getBody(Message.class);
        try {
            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) {
View Full Code Here

Examples of ca.uhn.hl7v2.AcknowledgmentCode

    /**
     * {@inheritDoc }
     * @deprecated
     */
    public Message generateACK(String theAcknowledgementCode, HL7Exception theException) throws HL7Exception, IOException {
      AcknowledgmentCode theCode = theAcknowledgementCode == null ?
          AcknowledgmentCode.AA :
          AcknowledgmentCode.valueOf(theAcknowledgementCode);
        return generateACK(theCode, theException);
    }
View Full Code Here

Examples of ca.uhn.hl7v2.AcknowledgmentCode

        // MSH header refers to dummy, but not the other way round!
        DeepCopy.copy(header, (Segment)dummy.get("MSH"));

        try {
            HL7Exception hl7e = new HL7Exception(theDescription, theErrorCode);
            AcknowledgmentCode code = theAckCode == null ?
                AcknowledgmentCode.CR :
                AcknowledgmentCode.valueOf(theAckCode);
          Message out = dummy.generateACK(code, hl7e);
            String originalEncoding = ourParser.getEncoding(theMessage.getMessage());
            String ackText = ourParser.encode(out, originalEncoding);
View Full Code Here

Examples of ca.uhn.hl7v2.AcknowledgmentCode

    /**
     * {@inheritDoc }
     * @deprecated
     */
    public Message generateACK(String theAcknowledgementCode, HL7Exception theException) throws HL7Exception, IOException {
      AcknowledgmentCode theCode = theAcknowledgementCode == null ?
          AcknowledgmentCode.AA :
          AcknowledgmentCode.valueOf(theAcknowledgementCode);
        return generateACK(theCode, theException);
    }
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.