Replies: 3 comments
-
I believe you asked the same question over on the forums. You need to escape values that may be accidentally interpreted as html delimiters. |
Beta Was this translation helpful? Give feedback.
0 replies
-
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
pacmano1
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
We are writing out a HL7 message to a PDF via a HTML Template Document Writer
Mostly it works fine, however several messages error out as the OBX3 segment contains potential HTML characters which then Mirth seems to be trying to process as actual HTML, we just want to treat the OBX3 as plain text and write it into the PDF
e.g.
OBX|3||""||CLINICAL/TELEPHONE NOTE:~From: USER, A (WORK) <a.user@email.net> ~Sent: 16 February 2025 08:51~Subject: Re: Case ~~Hi~~Example lots of patient data removed~~OK?~~Thanks~~Test~ ||||||F
Will error with
org.xml.sax.SAXParseException; lineNumber: 71; columnNumber: 206; Element type "a.user" must be followed by either attribute specifications, ">" or "/>".
We create a Channel Mapping for the OBX3 segment as below and then reference that in the HTML Document Writer template
<p class="letter">${YHCR_letterText}</p>
Beta Was this translation helpful? Give feedback.
All reactions