public class HL7MessageUtils extends Object
| Constructor and Description |
|---|
HL7MessageUtils() |
| Modifier and Type | Method and Description |
|---|---|
static ca.uhn.hl7v2.model.Message |
createDefaultNack(String errorMsg) |
static org.apache.synapse.MessageContext |
createErrorMessageContext(String rawMessage,
Exception errorMsg,
org.apache.synapse.inbound.InboundProcessorParams params) |
static ca.uhn.hl7v2.model.Message |
createNack(ca.uhn.hl7v2.model.Message hl7Msg,
String errorMsg) |
static org.apache.synapse.MessageContext |
createSynapseMessageContext(ca.uhn.hl7v2.model.Message message,
org.apache.synapse.inbound.InboundProcessorParams params) |
static org.apache.axiom.om.OMElement |
generateHL7MessageElement(String hl7XmlMessage) |
static org.apache.axiom.om.OMElement |
generateHL7RawMessaegElement(String hl7XmlMessage) |
static boolean |
getBoolean(String key,
org.apache.synapse.inbound.InboundProcessorParams params) |
static int |
getInt(String key,
org.apache.synapse.inbound.InboundProcessorParams params) |
static ca.uhn.hl7v2.model.Message |
parse(String msg,
boolean validate) |
static ca.uhn.hl7v2.model.Message |
parse(String msg,
ca.uhn.hl7v2.parser.Parser preProcessor) |
static ca.uhn.hl7v2.model.Message |
payloadToHL7Message(org.apache.synapse.MessageContext ctx,
org.apache.synapse.inbound.InboundProcessorParams params)
Get the hl7message from the MessageContext
|
public static ca.uhn.hl7v2.model.Message parse(String msg, boolean validate) throws ca.uhn.hl7v2.HL7Exception
ca.uhn.hl7v2.HL7Exceptionpublic static ca.uhn.hl7v2.model.Message parse(String msg, ca.uhn.hl7v2.parser.Parser preProcessor) throws ca.uhn.hl7v2.HL7Exception
ca.uhn.hl7v2.HL7Exceptionpublic static org.apache.synapse.MessageContext createSynapseMessageContext(ca.uhn.hl7v2.model.Message message,
org.apache.synapse.inbound.InboundProcessorParams params)
throws ca.uhn.hl7v2.HL7Exception,
org.apache.axis2.AxisFault
ca.uhn.hl7v2.HL7Exceptionorg.apache.axis2.AxisFaultpublic static org.apache.synapse.MessageContext createErrorMessageContext(String rawMessage, Exception errorMsg, org.apache.synapse.inbound.InboundProcessorParams params) throws org.apache.axis2.AxisFault, ca.uhn.hl7v2.HL7Exception
org.apache.axis2.AxisFaultca.uhn.hl7v2.HL7Exceptionpublic static org.apache.axiom.om.OMElement generateHL7MessageElement(String hl7XmlMessage) throws XMLStreamException
XMLStreamExceptionpublic static org.apache.axiom.om.OMElement generateHL7RawMessaegElement(String hl7XmlMessage)
public static ca.uhn.hl7v2.model.Message createNack(ca.uhn.hl7v2.model.Message hl7Msg,
String errorMsg)
throws ca.uhn.hl7v2.HL7Exception
ca.uhn.hl7v2.HL7Exceptionpublic static ca.uhn.hl7v2.model.Message createDefaultNack(String errorMsg)
public static int getInt(String key, org.apache.synapse.inbound.InboundProcessorParams params) throws NumberFormatException
NumberFormatExceptionpublic static boolean getBoolean(String key, org.apache.synapse.inbound.InboundProcessorParams params)
public static ca.uhn.hl7v2.model.Message payloadToHL7Message(org.apache.synapse.MessageContext ctx,
org.apache.synapse.inbound.InboundProcessorParams params)
throws ca.uhn.hl7v2.HL7Exception,
NoSuchElementException
ctx - ca.uhn.hl7v2.HL7ExceptionNoSuchElementExceptionCopyright © 2017 WSO2. All rights reserved.