From: Alan S. <ala...@bt...> - 2004-07-27 11:13:56
|
Hi all, After years of splitting my report text over several OBX messages somebody just asked me to send a single obx with \.br\ to signify linefeeds. At first I thought of replacing the linefeeds with \.br\ in my code, unfortunately HAPI escapes the \ to give me, \E\.br\E\. In the end I added the following line to ca/uhn/hl7v2/parser/Escape.java seqs.put("\\.br\\", String.valueOf('\n')); which works a treat for my outgoing messages, though I haven't tried it to see what happens if somebody sends me a \.br\ Is this a reasonable approach? Is it possible for me to indicate to HAPI that I want to insert an escape sequence? Is there any reason anybody would NOT want HAPI to simply replace linefeeds with \.br\ ? Cheers Alan Shields |