Daily using/supporting

Get Firefox browser!
Get Thunderbird!
Get Opera browser!
Get The Gimp!
Get Inkscape!
Get LibreOffice!
Get Videolan!
Get Linux!
Get Mandriva!
Get Joomla!
Hacker Emblem

Archives

Which topics would you like us to cover more?

Latest comments

Latest tweets

about 1 day ago Using REDIPS.drag to add drag and drop to your .Net webapplication #li #dib0 http://t.co/n8zY3s7d
about 7 days ago http://t.co/cknQcDbo #Kindle
about 15 days ago Freedom isn't the ability to choose what to do or say, but the ability to choose what not to do or say #freedom
about 29 days ago http://t.co/61KTQknI #Kindle
12 Apr 2012 Force the use of a networking adapter using C# #li #dib0 http://t.co/ZTJOPzOz
9 Apr 2012 Mandriva 2010.2 and USB devices in Virtualbox http://t.co/fwq9gbHB
9 Apr 2012 Execute a http request to you own site with PHP http://t.co/DIvWPrpd
Home Architecture, security and coding HL7 escape characters and nHapi
HL7 escape characters and nHapi
Written by Division by Zero   
Friday, 28 May 2010 07:46

After some testing I found out that nHapi does not convert all escape characters provided by the HL7 standard. So here's a list of escape characters and the way nHapi handles them. As you'll probably know the characters to signify an escape character is defined in the header of a Hl7 message along with the field separator, the repetition separator, the component separator and the subcomponent separator. For example the following header is the default:

MSH|^~\&|ADT1 (here '^' is defined as component separator and '\' is defined as escape character)

The following table uses the default escape characters (as defined in the example above).

Escape sequence Description
\E\ Escape character is converted (‘\’)
\F\ Field separator is converted (‘|’)
\R\ Repetition separator is converted (‘~’)
\S\ Component separator is converted (‘^’)
\T\ Subcomponent separator is converted (‘&’)
\H\ Start highlighting is not converted
\N\ Normal text (end highlighting) is not converted
\Cxxxx\ Single-byte character is not converted
\Mxxyyzz\ Multi-byte character set escape sequence not converted
\Zxxxx\ Locally defined escape sequence not converted
\Xxxxx\ Hexadecimal data should be converted to the characters identified by each pair of digits (see remarks below)

A special note on the last one: The hexadecimal data is supported by nHapi. That is, it is partly supported. To narrow it down further: I only got one hexadecimal sequence working. This sequence is \X000d\ (carriage return, ASCII 13). To test the hexadecimal conversion I wrote a loop with all possible hexadecimal values and only the carriage return was converted.

Tags:
 

Add comment


Security code
Refresh

Only put off until tomorrow what you are willing to die having left undone. - Pablo Picasso


© 2009 - 2012, Division by Zero

Template based on the empire template by joomlashack 

Valid XHTML 1.0 Strict  Valid CSS!  Creative Commons License
This work by Division by Zero is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 Netherlands License.