ex_l7 v0.2.0 ExL7.Ack

Provides functions to generate HL7 acknowledgement messages

Summary

Functions

Returns an HL7 acknowledgement message as a string

Returns an HL7 negative acknowledgement message as a string with AE as the code

Returns an HL7 negative acknowledgement message as a string with a custom code

Returns an HL7 negative acknowledgement message as a string with AR as the code

Functions

acknowledge(l7_message, sequence)

Returns an HL7 acknowledgement message as a string

default_error(sequence, reason \\ "")
default_other(sequence, reason \\ "")
default_reject(sequence, reason \\ "")
error(l7_message_or_ack_config, sequence, reason \\ "")

Returns an HL7 negative acknowledgement message as a string with AE as the code.

other(l7_message_or_ack_config, sequence, code, reason \\ "")

Returns an HL7 negative acknowledgement message as a string with a custom code

reject(l7_message_or_ack_config, sequence, reason \\ "")

Returns an HL7 negative acknowledgement message as a string with AR as the code.