Class HL7ProcessingContext
- java.lang.Object
-
- org.wso2.carbon.business.messaging.hl7.common.HL7ProcessingContext
-
public class HL7ProcessingContext extends Object
This class represents an HL7 message processing context.
-
-
Constructor Summary
Constructors Constructor Description HL7ProcessingContext(boolean autoAck, boolean validateMessage, boolean publisherEnabled, String conformanceProfileURL, String messagePreprocessorClass, String serverUrl, String secureServerUrl, String serverPassword, String serverUsername, boolean passThroughInvalidMessages, boolean buildRawMessages)
HL7ProcessingContext(org.apache.axis2.description.AxisService service)
HL7ProcessingContext(org.apache.axis2.description.ParameterInclude params)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
checkConformanceProfile(ca.uhn.hl7v2.model.Message message)
ca.uhn.hl7v2.model.Message
createAck(ca.uhn.hl7v2.model.Message hl7Msg)
ca.uhn.hl7v2.model.Message
createNack(ca.uhn.hl7v2.model.Message hl7Msg, String errorMsg)
ca.uhn.hl7v2.conf.spec.RuntimeProfile
getConformanceProfile()
ca.uhn.hl7v2.conf.check.DefaultValidator
getDefaultValidator()
HL7MessagePreprocessor
getMessagePreprocessor()
ca.uhn.hl7v2.parser.PipeParser
getPipeParser()
ca.uhn.hl7v2.model.Message
handleHL7Result(org.apache.axis2.context.MessageContext ctx, ca.uhn.hl7v2.model.Message hl7Msg)
Handle the AUTOACK, NACK messages,which are to be sent back to the clientvoid
initMessageContext(ca.uhn.hl7v2.model.Message message, org.apache.axis2.context.MessageContext msgCtx)
boolean
isAutoAck()
boolean
isBuildRawMessages()
boolean
isPassThroughInvalidMessages()
boolean
isPublisherEnabled()
boolean
isValidateMessage()
void
offerApplicationResponses(ca.uhn.hl7v2.model.Message message, org.apache.axis2.context.MessageContext messageContext)
ca.uhn.hl7v2.model.Message
parseMessage(String hl7TextMsg)
void
publishMessage(ca.uhn.hl7v2.model.Message message, org.apache.axis2.context.MessageContext msgCtx)
void
setHl7PublisherConfig(HL7MessagePublisherConfig hl7PublisherConfig)
void
setPublisherEnabled(boolean publisherEnabled)
void
setTimeOutVal(int timeOut)
-
-
-
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
-
getMessagePreprocessor
public HL7MessagePreprocessor getMessagePreprocessor()
-
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)
-
setHl7PublisherConfig
public void setHl7PublisherConfig(HL7MessagePublisherConfig hl7PublisherConfig)
-
setTimeOutVal
public void setTimeOutVal(int timeOut)
- Parameters:
timeOut
- Transport Timeout value
-
-