Mirth 4.5.1 HL7 and keeping '&' #6295
-
I am receiving this as part of my HL7: OBX|4|TX|500-1104976|660FLDGRP4|^^^^^^^^^^^19800907^5000000010V924669-L^C0011^MICROVASIVE & STENT||||||F |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 10 replies
-
Tell your sender to properly escape HL7 delimiters as per spec. Read https://docs.intersystems.com/latest/csp/docbook/DocBook.UI.Page.cls?KEY=EHL72_escape_sequences |
Beta Was this translation helpful? Give feedback.
-
As you may know in MSH.2 the separator characters are located here where the default delimiters are vertical bar or pipe (|) for the field separator, caret (^) for the component separator, ampersand (&) for the subcomponent separator, and number sign (#) for the default truncation separator. The tilde (~) is the default repetition separator. MSH|^~&|
|
Beta Was this translation helpful? Give feedback.
As you may know in MSH.2 the separator characters are located here where
the default delimiters are vertical bar or pipe (|) for the field separator, caret (^) for the component separator, ampersand (&) for the subcomponent separator, and number sign (#) for the default truncation separator. The tilde (~) is the default repetition separator.
MSH|^~&|
You could change out the subcomponent delimiter to something else so the ampersand in your OBX would not be counted.
You could search you incoming message to either replace or escape the ampersands in that field.
You could go into the channel's Data Type Wizard for HL7v2.x and check off the "Parse Subcomponents" option on the Serializat…