Replies: 3 comments 3 replies
-
Please revise your post and use code blocks. See https://docs.github.com/en/get-started/writing-on-github/working-with-advanced-formatting/creating-and-highlighting-code-blocks |
Beta Was this translation helpful? Give feedback.
-
Thanks. I cleaned up the code, and it does look better. I did look at that exact post in the forums, but the issue is not the same. In that post, they want to strip the tildes from a multi-OBX report. In my issue, this is a single OBX segment that is using tildes where a CR needs to be, so the same thing as multiple OBX, only it comes over in a single OBX. Very common in HL7. Not sure what is highlighted here with Convert Line Breaks. Not seeing how this would affect a tilde? Is there some connection? |
Beta Was this translation helpful? Give feedback.
-
Nice, thanks. :) |
Beta Was this translation helpful? Give feedback.
-
A tilde in a standard HL7 message represents a carriage return, so if an OBX is sent like
"OBX|1|TX|||This is a sentence~~This is more information~and it continues|||||||||||||||||||||||||||||||"
It should be handled the same as
OBX|1|TX|||This is a sentence|||||||||||||||||||||||||||||||
OBX|2|TX||||||||||||||||||||||||||||||||||
OBX|3|TX||||||||||||||||||||||||||||||||||
OBX|4|TX|||This is more information|||||||||||||||||||||||||||||||
OBX|5|TX|||and it continues|||||||||||||||||||||||||||||||
Unfortunately the conversion from text (incoming HL7) to XML, changes tildes into <OBX.5.1>This is a sentence</OBX.5.1> etc.
This makes a mess of the report.
In preprocessor I can clean this up using
Or alternately, I can clean up the mess in the Destination Transformer using replace commands, but I am wondering if there may be a simpler way to fix this?
Beta Was this translation helpful? Give feedback.
All reactions