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.HL7Exception
public static ca.uhn.hl7v2.model.Message parse(String msg, ca.uhn.hl7v2.parser.Parser preProcessor) throws ca.uhn.hl7v2.HL7Exception
ca.uhn.hl7v2.HL7Exception
public 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.HL7Exception
org.apache.axis2.AxisFault
public 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.AxisFault
ca.uhn.hl7v2.HL7Exception
public static org.apache.axiom.om.OMElement generateHL7MessageElement(String hl7XmlMessage) throws XMLStreamException
XMLStreamException
public 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.HL7Exception
public static ca.uhn.hl7v2.model.Message createDefaultNack(String errorMsg)
public static int getInt(String key, org.apache.synapse.inbound.InboundProcessorParams params) throws NumberFormatException
NumberFormatException
public 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.HL7Exception
NoSuchElementException
Copyright © 2021 WSO2. All rights reserved.