|
From: James A. <ja...@ja...> - 2012-05-17 13:23:26
|
Hi Jake, HAPI doesn't do any escaping/unescaping other than the four ER7 escape characters (like \T\ to & as you note). The main problem with trying to do anything more is that presentation of most of the formatting sequences are fairly dependent on target platform (e.g. things like bold, tabstops, etc.) The upcoming 2.0 release of HAPI does add a new method to the string datatypes, called getValueAsHtml(), which turns the various escape sequences into their equivalent HTML codes. I'm hoping 2.0 should be out in a matter of weeks (we keep getting sidetracked over the last while here at UHN), but if you don't mind using the beta release for now you could take advantage of the new method already. Alternately you could certainly look at the code and come up with your own implementation. https://hl7api.svn.sourceforge.net/svnroot/hl7api/trunk/hapi-mvn/hapi-base/src/main/java/ca/uhn/hl7v2/model/primitive/AbstractTextPrimitive.java Cheers, James On Wed, May 16, 2012 at 1:24 PM, Jake C <bud...@ho...> wrote: > Does HAPI do any processing of the formatting commands in an FT? While it > is correctly changing \T\ to &, I just passes through \.ti+8\ instead of > indenting. > ---- > Jake C > > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > Hl7api-devel mailing list > Hl7...@li... > https://lists.sourceforge.net/lists/listinfo/hl7api-devel > > |