Class AckBuilder

java.lang.Object
com.framed.interop.hl7.hl7v2.AckBuilder

public final class AckBuilder extends Object
Builds HL7 v2 general acknowledgement (ACK) messages in response to a received message.
  • Field Details

  • Method Details

    • build

      public static String build(Hl7Message incoming, String code, String text, Instant timestamp)
      Builds an ACK echoing the control id of the incoming message, with sender/receiver swapped.
      Parameters:
      incoming - the message being acknowledged
      code - the acknowledgement code (AA, AE, AR)
      text - optional MSA-3 text (e.g. an error description); may be empty
      timestamp - the ACK timestamp
      Returns:
      the ACK message text