We are tasked with digesting an HL7 flat file with multiple messages, but no message terminators or line breaks are apparent in the file.
Running the message through the engine / testing tool as an EOF message will find the first message entirely, but not recognize subsequent messages. If there were message terminators, we could loop through and reset the message header, repeat…
With no delimiting formatting in the file, is the best solution just to (proc) open and regsub all “MSH” to “\rMSH” and/or add carriage returns for each field?