public class ACKGenerator extends Object
Constructor and Description |
---|
ACKGenerator()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
static String |
generateAckResponse(String message,
boolean isXML,
String acknowledgementCode,
String textMessage,
String dateFormat,
String errorMessage)
Generates an HL7 v2.x acknowledgment.
|
static String |
generateAckResponse(String message,
String acknowledgementCode,
String textMessage)
Generates an HL7 v2.x acknowledgment.
|
static String |
generateAckResponse(String message,
String dataType,
String acknowledgementCode,
String textMessage,
String dateFormat,
String errorMessage)
Deprecated.
This method is deprecated and will soon be removed. Please use
generateAckResponse(message, isXML, acknowledgementCode, textMessage, dateFormat,
errorMessage) instead.
|
@Deprecated public ACKGenerator()
public static String generateAckResponse(String message, String acknowledgementCode, String textMessage) throws Exception
message
- The inbound HL7 v2.x message to generate the ACK for.acknowledgementCode
- The MSA.1 ACK code to use (e.g. AA, AR, AE).textMessage
- The MSA.3 text message to use.Exception
public static String generateAckResponse(String message, String dataType, String acknowledgementCode, String textMessage, String dateFormat, String errorMessage) throws Exception
message
- The inbound HL7 v2.x message to generate the ACK for.dataType
- If "XML", assumes the inbound message is formatted in XML, and the acknowledgment
returned will also be XML.acknowledgementCode
- The MSA.1 ACK code to use (e.g. AA, AR, AE).textMessage
- The MSA.3 text message to use.dateFormat
- The date/time format used to generate a timestamp for the MSH.7 message date/time
(e.g. "yyyyMMddHHmmss").errorMessage
- The ERR.1 error message to use. If left blank, an ERR segment will not be
generated.Exception
public static String generateAckResponse(String message, boolean isXML, String acknowledgementCode, String textMessage, String dateFormat, String errorMessage) throws Exception
message
- The inbound HL7 v2.x message to generate the ACK for.isXML
- If true, assumes the inbound message is formatted in XML, and the acknowledgment
returned will also be XML.acknowledgementCode
- The MSA.1 ACK code to use (e.g. AA, AR, AE).textMessage
- The MSA.3 text message to use.dateFormat
- The date/time format used to generate a timestamp for the MSH.7 message date/time
(e.g. "yyyyMMddHHmmss").errorMessage
- The ERR.1 error message to use. If left blank, an ERR segment will not be
generated.Exception