Class HL7ProcessingContext


  • public class HL7ProcessingContext
    extends Object
    This class represents an HL7 message processing context.
    • Constructor Detail

      • HL7ProcessingContext

        public HL7ProcessingContext​(boolean autoAck,
                                    boolean validateMessage,
                                    boolean publisherEnabled,
                                    String conformanceProfileURL,
                                    String messagePreprocessorClass,
                                    String serverUrl,
                                    String secureServerUrl,
                                    String serverPassword,
                                    String serverUsername,
                                    boolean passThroughInvalidMessages,
                                    boolean buildRawMessages)
                             throws ca.uhn.hl7v2.HL7Exception
        Throws:
        ca.uhn.hl7v2.HL7Exception
      • HL7ProcessingContext

        public HL7ProcessingContext​(org.apache.axis2.description.ParameterInclude params)
                             throws ca.uhn.hl7v2.HL7Exception,
                                    org.apache.axis2.AxisFault
        Throws:
        ca.uhn.hl7v2.HL7Exception
        org.apache.axis2.AxisFault
      • HL7ProcessingContext

        public HL7ProcessingContext​(org.apache.axis2.description.AxisService service)
                             throws ca.uhn.hl7v2.HL7Exception
        Throws:
        ca.uhn.hl7v2.HL7Exception
    • Method Detail

      • getDefaultValidator

        public ca.uhn.hl7v2.conf.check.DefaultValidator getDefaultValidator()
      • getPipeParser

        public ca.uhn.hl7v2.parser.PipeParser getPipeParser()
      • isAutoAck

        public boolean isAutoAck()
      • isValidateMessage

        public boolean isValidateMessage()
      • isPassThroughInvalidMessages

        public boolean isPassThroughInvalidMessages()
      • isBuildRawMessages

        public boolean isBuildRawMessages()
      • getConformanceProfile

        public ca.uhn.hl7v2.conf.spec.RuntimeProfile getConformanceProfile()
      • offerApplicationResponses

        public void offerApplicationResponses​(ca.uhn.hl7v2.model.Message message,
                                              org.apache.axis2.context.MessageContext messageContext)
                                       throws ca.uhn.hl7v2.HL7Exception,
                                              org.apache.axis2.AxisFault
        Throws:
        ca.uhn.hl7v2.HL7Exception
        org.apache.axis2.AxisFault
      • parseMessage

        public ca.uhn.hl7v2.model.Message parseMessage​(String hl7TextMsg)
                                                throws ca.uhn.hl7v2.HL7Exception,
                                                       ca.uhn.hl7v2.conf.ProfileException
        Throws:
        ca.uhn.hl7v2.HL7Exception
        ca.uhn.hl7v2.conf.ProfileException
      • checkConformanceProfile

        public void checkConformanceProfile​(ca.uhn.hl7v2.model.Message message)
                                     throws ca.uhn.hl7v2.HL7Exception
        Throws:
        ca.uhn.hl7v2.HL7Exception
      • initMessageContext

        public void initMessageContext​(ca.uhn.hl7v2.model.Message message,
                                       org.apache.axis2.context.MessageContext msgCtx)
      • publishMessage

        public void publishMessage​(ca.uhn.hl7v2.model.Message message,
                                   org.apache.axis2.context.MessageContext msgCtx)
      • createAck

        public ca.uhn.hl7v2.model.Message createAck​(ca.uhn.hl7v2.model.Message hl7Msg)
                                             throws ca.uhn.hl7v2.HL7Exception
        Throws:
        ca.uhn.hl7v2.HL7Exception
      • createNack

        public ca.uhn.hl7v2.model.Message createNack​(ca.uhn.hl7v2.model.Message hl7Msg,
                                                     String errorMsg)
                                              throws ca.uhn.hl7v2.HL7Exception
        Throws:
        ca.uhn.hl7v2.HL7Exception
      • handleHL7Result

        public ca.uhn.hl7v2.model.Message handleHL7Result​(org.apache.axis2.context.MessageContext ctx,
                                                          ca.uhn.hl7v2.model.Message hl7Msg)
                                                   throws ca.uhn.hl7v2.HL7Exception,
                                                          org.apache.axis2.AxisFault
        Handle the AUTOACK, NACK messages,which are to be sent back to the client
        Parameters:
        ctx -
        hl7Msg -
        Returns:
        Throws:
        ca.uhn.hl7v2.HL7Exception
        org.apache.axis2.AxisFault
      • isPublisherEnabled

        public boolean isPublisherEnabled()
      • setPublisherEnabled

        public void setPublisherEnabled​(boolean publisherEnabled)
      • setTimeOutVal

        public void setTimeOutVal​(int timeOut)
        Parameters:
        timeOut - Transport Timeout value