Closed samofwise closed 2 months ago
You can reconfigure your side to use different separators in the MSH and the other party should respect that. In that case you can use some other separator for the subcomponent separator instead of '&' Here is the spec of the MSH.2 https://hl7-definition.caristix.com/v2/HL7v2.5.1/Fields/MSH.2 Or better yet, try to tell the lab to change their separators as well.
I am receiving Unescaped & or ^ in the OBX-5 when a lab is sending Formatted Text (FT) such as links or html link tags (
www.medical-website.com?param1=value1¶m2=value2
)I know that the clinics should be escaping these characters with \T\ and \S\ but the labs are not doing this.
Is there any way to create a custom parser for OBX-5 that will skip the component and subcomponent delimiter parsing? (I would prefer to not have to pre-process the file with regex to escape those characters, as that solution seems very fragile)
Or are there any other solutions for this issue?
(I found someone else encounter this issue too: https://stackoverflow.com/questions/8935497/ampersand-character-in-obx-segment-causing-problems-hl7-formatting)
OBX Example
Specifically "forwarded to & quot;DOCTOR, Dr Demo & quot; from"
Issue on NHapiTools: https://github.com/dib0/NHapiTools/issues/29