I change the file in vi, but the message is just one continuous line. I can see the ^M at the end of segment though. I ran the file through the tester tool (len10), but it complains of “read 420 characters but expected 424”. I ran the file through tester (eof) and (newline), but it complains of “HL7 message does not begin with MSH segment”. I originally saved the file as length-encoded. Sorry to sound dense, but I still learning unix 😳
Ahhh, it’s missing the start and end characters, how do I add those? 😕
Here is the msg:
0000000424MSH|^~&|STAR|BWMC|SETNET|CEREPLEX|200809261105|41|ADT^A04|9834807|P|2
.3|9834807||AL^MEVN|A04|200809261105^MPID||00904285|1012867|88200^N187480|CONTRO
L^PRECISION^^JR||19800119|M| |5|1215 CHAOS COURT^^HALETHORPE^MD^21227^US^C^^03|0
3|(410)567-8965||E|S||827000001|639852147|||||||||||N^MPV1||O|RAD|3|||^THISISATE
STFORLONG^NAMES|||RAD||||1|||^THISISATESTFORLONG^NAMES|OP|0827000001^^^N|S||||||
|||||||||||||N|||||200809261106^M