Here is another way if you want to use the xFilter code template. This solution also handles the case where CS is the only modifier in the list.
...
Announcement
Collapse
No announcement yet.
User Profile
Collapse
-
Chrisp67 Not sure if it is possible or not, but I just realized that if CS is the only modifier, after it deletes it, it won't find another one when it...
Leave a comment:
-
This problem is a little tricky.
Code:for each (var ft1 in msg.FT1) { for each (var ft126 in ft1['FT1.26']) { if
Leave a comment:
-
I hadn't noticed that the component separator was part of the replacement string. schillert is correct that it makes the problem even more difficult...
Leave a comment:
-
This effectively does the same thing if you just want to list them individually rather than building the list in a loop.
Code:for each
Leave a comment:
-
There is only 1 OBR.28, because it is not repeating. You want to delete components (children) of OBR.28.
This should work
Code:for
Last edited by agermano; 04-06-2021, 01:49 PM.
Leave a comment:
-
tmp is an xml objects, not a string, and the replace method works differently to do xml node replacement rather than string replacement.
- 1 like
Leave a comment:
-
agermano replied to Immediate HL7 ack after basic validation and filtering on source transformer sidein SupportOnly the source queue setting affects the response timing. The auto generated response descriptions are misleading. They describe when during processing...
Leave a comment:
-
agermano replied to Immediate HL7 ack after basic validation and filtering on source transformer sidein SupportI believe it still shows up in the mappings area of the message viewer in the same way as the channelMap.
Leave a comment:
-
agermano replied to Immediate HL7 ack after basic validation and filtering on source transformer sidein SupportYou can put $r('responseContent') in the responseMap from your source transformer and skip the post-processor step.
Leave a comment:
-
agermano replied to Immediate HL7 ack after basic validation and filtering on source transformer sidein SupportCan you try putting a long sleep in your destination transformer? This will sleep it for a minute.
Code:java.lang.Thread.sleep(60000)
Leave a comment:
-
There isn't really a mirth way to do this. Mirth is designed for request/response, not bi-directional communication. Not sure of the exact search terms...
Leave a comment:
-
To elaborate on what jkrebs said about java Maps requiring an Object, the following conversions will happen when placing javascript primitives into a...
Leave a comment:
-
João Ribeiro See solution on this post https://forums.mirthproject.io/forum...-encoded-image...
Leave a comment:
-
You'll have to share what the value of tmp was before calling appendChild. As I said, you can't call it on a node that does not already exist. If you...
Leave a comment:
-
There are some other shortcuts you can take here, too. Assuming inOBRGroup is an XMLList (I'm assuming this because it is being used in a for each......
Leave a comment:
-
The purpose of new XML() is to convert a string to an xml object. <HL7Message/> is already an xml object. The following are equivalent:
...
- 1 like
Leave a comment:
-
mwellington42 Did you try putting a sample message in the inbound template of your transformer? That should allow you see the xml layout in the message...
Leave a comment:
-
To elaborate on what pacmano said, you can't call appendChild on a node that doesn't exist.
Here's another approach that might work better depending...
Leave a comment:
-
For the benefit of other people that may see this thread, msg.OBX, literally means the list of child elements with name "OBX". There's no reason...
Leave a comment:
No activity results to display
Show More
Leave a comment: