Originally posted by Jason Alexander
I have been unable to find an existing script to remove HL7 escape sequences. We're working on an interface where we will get an inbound HL7 feed and want to convert it to an outbound flat-file feed. We need to remove the HL7 escape sequences before we build the flatfiles.
Need the script to process escape sequences in-order from the beginning of the field in a single-pass. Pattern matching for one pattern per pass through the script will not work (we've already seen the string ESSEX0D\X0A in one of our test files).
I *can* write this, I just don't want to reinvent the wheel if it has already been done somewhere.