web stats
Mirth Community - Search Results

Go Back   Mirth Community > Search Forums

Showing results 1 to 25 of 500
Search took 0.02 seconds.
Search: Posts Made By: agermano
Forum: Support Yesterday, 08:33 AM
Replies: 4
Views: 542
Posted By agermano
I believe in your first example it should be ...

I believe in your first example it should be
var base64 = FileUtil.decode(msg);

As you point out in your comment, msg is a base64 encoded string. You need to decode it to get a byte[] to pass to...
Forum: Support 01-22-2020, 03:57 PM
Replies: 6
Views: 219
Posted By agermano
I prefer Cory's solution here, too (be careful...

I prefer Cory's solution here, too (be careful with copy/paste. It looks like he accidentally switched CON.11.1 to CON.10.1.) Your original problem is that the [y] is in the wrong place.

Since not...
Forum: Support 01-22-2020, 02:39 PM
Replies: 1
Views: 131
Posted By agermano
var dg1List = msg.DG1; delete msg.DG1; ...

var dg1List = msg.DG1;
delete msg.DG1;
msg.OBX[msg.OBX.length()-1] += dg1List;
Forum: Support 01-22-2020, 02:25 PM
Replies: 2
Views: 242
Posted By agermano
Try this: switch...

Try this:
switch (msg['GS']['GS.03']['GS.03.1'].toString()) {
case 'ACME':
destinationSet.removeAllExcept(['Destination_ACME']);
break;
case 'ARMS':
...
Forum: Support 01-22-2020, 02:06 PM
Replies: 10
Views: 201
Posted By agermano
msg = new...

msg = new XML(SerializerFactory.getSerializer('HL7V2').toXML($('RawInbound')));
Forum: Support 01-17-2020, 11:23 AM
Replies: 3
Views: 253
Posted By agermano
I had a similar issue earlier this week where I...

I had a similar issue earlier this week where I needed to delete from a javascript array and shift the remaining items to fill in the gaps. I almost switched to using a java linked list instead to...
Forum: Support 01-13-2020, 04:26 PM
Replies: 2
Views: 158
Posted By agermano
No, it won't, but this will (assuming there is...

No, it won't, but this will (assuming there is only 1 OBX segment)
msg['OBX'] = <OBX>{msg['OBX.1'] +msg['OBX.2'] +msg['OBX.3'] +msg['OBX.4'] +msg['OBX.5']}</OBX>
Forum: Support 01-10-2020, 04:07 PM
Replies: 1
Views: 244
Posted By agermano
http://www.mirthcorp.com/community/issues/browse/M...

http://www.mirthcorp.com/community/issues/browse/MIRTH-4454

If you're talking about Jetty, it should be patched in mirth 3.9. I have no idea if upgrading it yourself on older mirth versions will...
Forum: Support 01-08-2020, 03:37 PM
Replies: 6
Views: 267
Posted By agermano
You should be able to drag-and-drop elements from...

You should be able to drag-and-drop elements from your inbound template to your outbound template to create the message builder steps automatically. Keep in mind this will use the tmp variable. So,...
Forum: Support 01-07-2020, 02:15 PM
Replies: 2
Views: 159
Posted By agermano
To expand on what Kirby said, when you do not use...

To expand on what Kirby said, when you do not use an outbound template, you make changes to msg directly, rather than the tmp variable.

msg['SCH']['SCH.8']['SCH.8.1'] =...
Forum: Support 01-06-2020, 03:56 PM
Replies: 2
Views: 211
Posted By agermano
sftp readers/writers establish their own...

sftp readers/writers establish their own connections and don't share.

An alternative to force the sharing of the connection could be to mount the sftp server and treat it as a local file.
Forum: Support 01-06-2020, 03:35 PM
Replies: 2
Views: 155
Posted By agermano
It's not really clear what you are trying to do...

It's not really clear what you are trying to do from your description. Can you export and share your channel?

Are you sending that XML to the channel or are you sending an hl7 message that mirth...
Forum: Support 01-02-2020, 01:20 PM
Replies: 6
Views: 267
Posted By agermano
Slight modification to peterl's response since...

Slight modification to peterl's response since you are using an outbound template now. The serializer will return a string, which you still need to convert to an XML object before you can modify it....
Forum: Support 01-02-2020, 07:58 AM
Replies: 5
Views: 277
Posted By agermano
Look up how to communicate with a serial port in...

Look up how to communicate with a serial port in Java? If it was trivial, there wouldn't be a paid extension for it.
Forum: Support 12-31-2019, 08:43 AM
Replies: 3
Views: 421
Posted By agermano
This is easiest with a split channel setup. You...

This is easiest with a split channel setup. You can't create a custom response with the source queue enabled. It is difficult in most situations to ensure that chained destinations fire in the...
Forum: Support 12-23-2019, 10:54 AM
Replies: 5
Views: 4,552
Posted By agermano
Here's a different way to do it. const...

Here's a different way to do it.

const segmentsToKeep = new java.util.HashSet(['MSH','PID','NTE']);
var newChildren = new XMLList();
for each (var seg in msg.children()) {
if...
Forum: General Discussion 12-21-2019, 05:08 PM
Replies: 1
Views: 1,088
Posted By agermano
Haven't used it before, but I'd try the java...

Haven't used it before, but I'd try the java library https://developers.google.com/api-client-library/java.

I wouldn't expect any javascript client api library to work unless it is written...
Forum: Support 12-20-2019, 08:52 AM
Replies: 2
Views: 272
Posted By agermano
I've never used it, but maybe try...

I've never used it, but maybe try https://sourceforge.net/projects/ucanaccess/
Forum: Support 12-19-2019, 03:44 PM
Replies: 2
Views: 278
Posted By agermano
Who owns the server? Do they have logging that...

Who owns the server? Do they have logging that can tell you why it's ending the connection?
Forum: Support 12-18-2019, 09:17 AM
Replies: 3
Views: 190
Posted By agermano
I think this is what you were trying to say. You...

I think this is what you were trying to say. You have to remember when you are in a transformer that you're working with xml objects, not strings. Your field and component separators are not part of...
Forum: Support 12-17-2019, 05:34 PM
Replies: 5
Views: 793
Posted By agermano
odo's answer is correct. it's not an array.

odo's answer is correct. it's not an array.
Forum: Support 12-15-2019, 05:33 PM
Replies: 9
Views: 458
Posted By agermano
You do not see the token being replaced in the...

You do not see the token being replaced in the message viewer, but if you would like to verify it is working correctly you can switch your destination to a file writer and look at the file produced....
Forum: Support 12-13-2019, 06:47 PM
Replies: 9
Views: 458
Posted By agermano
Storing the rtf as a mirth attachment rather than...

Storing the rtf as a mirth attachment rather than keeping it as part of the message will cut down on memory usage quite a bit. If you are only passing it downstream, this is a good use case for...
Forum: Support 12-12-2019, 01:58 PM
Replies: 7
Views: 808
Posted By agermano
See: ...

See:

https://github.com/mozilla/rhino/issues/325
https://github.com/mozilla/rhino/issues/243
Forum: Support 12-12-2019, 11:50 AM
Replies: 37
Views: 819
Posted By agermano
Switch it to regex and click the properties...

Switch it to regex and click the properties button.

For the expression, use (?:OBX\|(?:[^|]*\|){4})([\s\S]*)$

Use "application/rtf" for the mime type.

This will take EVERYTHING including and...
Showing results 1 to 25 of 500

 
Forum Jump

All times are GMT -8. The time now is 06:42 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2020, vBulletin Solutions, Inc.
Mirth Corporation