The actual work (i.e. the ACK generation) is performed using Python inbound/outbound scripts in the MSH and MSA segment grammars.