Archives
- ► 2012 (8)
- ► 2011 (157)
- ► 2010 (174)
- ► 2009 (12)
Which topics would you like us to cover more?
Latest comments
- How to reset you Kindle
3, eve...
Thanks for this article and the related "Inside th...
By H K - How to reset you Kindle
3, eve...
How do you drain power on the board? I dont have r...
By Grace - How to reset you Kindle
3, eve...
You're welcome!
By Bas - How to reset you Kindle
3, eve...
Thanks man....removing the battery worked like a c...
By DaveMan - nHapi
example
Hi Slypete, Thank you for your comment. This way w...
By Bas - nHapi
example
Hello, Employing .Net dynamics, one can implement ...
By slypete - Implementing MLLP in C#
Hi Mayura, I'm not sure I understand your question...
By Bas - Implementing MLLP in C#
I have used SSL stream to secure the MLLP transact...
By Mayura
Latest tweets
| Understanding the HL7 piped message |
| Written by Division by Zero |
| Wednesday, 12 January 2011 10:06 |
|
Hl7 has two forms of formatting data. Piped messages and Xml. The Xml format is easier to understand for us humans. The piped message is a bit harder to understand. The format is a bit older, based on plain text. Let’s have a look at it. I will not explain every field in the standard (hey, what are standards for!), but just look at the message structure and how to read it. I’m using this example message to explain the message structure (the message is part of the ORU_R01 .Net example):
MSH|^~\&|Otogram||||||ORU^R01^ORU_R01|||2.4^^|||||
USA|ASCII Every message starts with a segment describing the message header (the MSH segment). A segment always starts with the segment name, following the separation character, which separates the fields of a segment as described by the HL7 standard. Segments are always separated by a newline character. The second field of the header is a special one. It will almost always look like this ‘|^~\&’. This strange set of characters describes the format of the message: it defines which characters are used as special characters. For example: the first character ‘^’ is used as a separator between fields in a datatype. If we would change is to a ‘#’, the message would look like this: MSH|#~\&|Otogram||||||ORU#R01#ORU_R01|||2.4##|||||
USA|ASCII This build in flexibility is meant to overcome compatibility issues between encoding standards. In this case the ‘|’ is used for segment separation and the ‘#’ is used for field seperations (sometimes called components) in data types. The ‘~’ is used for repetitions (fields that occur more than once). The ‘\’ is used to signify an escape character and the ‘&’ character is used as a subcomponent separation character. Sometimes you’ll see multiple separation characters next to each other: ‘|||’. Data between these characters is sometimes optional. If it is optional, there’s no need to show the separation characters of the subfields, it’s enough to only show the ‘|’ separator. I hope this helps in understanding the piped messages. If you have any questions: let me know! Tags:
|
He's the only genius with an IQ of 80. - Unknown




