web stats
Mirth Community - Search Results

Go Back   Mirth Community > Search Forums

Showing results 1 to 25 of 113
Search took 0.00 seconds.
Search: Posts Made By: aTom
Forum: Support 07-13-2019, 04:32 AM
Replies: 6
Views: 152
Posted By aTom
Hi Maybe this is just a copy/paste glitch,...

Hi

Maybe this is just a copy/paste glitch, but here your code does exactly the opposite as you wish.
Forum: Support 07-04-2019, 03:47 AM
Replies: 4
Views: 203
Posted By aTom
If you just want to convert from HL7 to json,...

If you just want to convert from HL7 to json, here would be the basic idea :


// assuming msg is your incoming HL7 message and tmp your json template

tmp['PID'] = {};

for each(var field in...
Forum: Support 01-15-2019, 09:30 PM
Replies: 3
Views: 267
Posted By aTom
How does the xml look like?

How does the xml look like?
Forum: Support 06-20-2018, 10:12 PM
Replies: 10
Views: 1,777
Posted By aTom
Hi, I've implemented the connection pool in...

Hi,

I've implemented the connection pool in my environment and I got similar troubles.

It might sound strange, and I still don't understand why, the common way to close connections didn't work...
Forum: Support 06-20-2018, 09:38 PM
Replies: 10
Views: 953
Posted By aTom
Hi, It fails for the same reason the...

Hi,

It fails for the same reason the following statement will fail:


if(node.name() === "PID.3") {
logger.info("IF succeeded"); // won't work
}
Forum: Support 05-06-2018, 10:05 PM
Replies: 2
Views: 734
Posted By aTom
Hi, Roles are stored in the Configuration table.

Hi,
Roles are stored in the Configuration table.
Forum: Support 05-02-2018, 09:59 PM
Replies: 10
Views: 1,057
Posted By aTom
Hi, There's nothing wrong in your piece of...

Hi,

There's nothing wrong in your piece of code, it worked for me.

As you did for 'sql' var I'd log the query result too:


logger.info(pagecount.getString(1));
Forum: Support 05-02-2018, 09:22 AM
Replies: 10
Views: 1,057
Posted By aTom
Same result if you don't use the num_record...

Same result if you don't use the num_record variable ? You don't declare it explicitely, so it's a global variable or it is declared and reused elsewhere?


channelMap.put('totalpages',...
Forum: Support 05-02-2018, 03:40 AM
Replies: 10
Views: 1,057
Posted By aTom
Hi, The only problem I see in your code is...

Hi,

The only problem I see in your code is the DB url, there's a space between "sql" and "server", an exception is fired when you execute it.

Otherwise it worked for me once query is set...
Forum: Support 04-18-2018, 10:43 PM
Replies: 5
Views: 742
Posted By aTom
Hi, Tricky but will work : var...

Hi,

Tricky but will work :


var myField = <HL7Message/>;
myField.appendChild(msg['MSH']['MSH.4']);
var delimited = SerializerFactory.getSerializer('HL7V2').fromXML(myField); // will contain...
Forum: Support 03-23-2018, 04:12 AM
Replies: 14
Views: 1,621
Posted By aTom
Hi, I was curious to see what really happens...

Hi,

I was curious to see what really happens when you copy PID-5 to PV1-7.

It's interesting to note that Mirth really replaces PV1-7 by the copy of PID-5 : this is what you can see in the...
Forum: Support 03-21-2018, 06:38 AM
Replies: 9
Views: 895
Posted By aTom
You set PID twice ... ...

You set PID twice ...

msg.PID['PID']['PID.3']['PID.3.1']
Forum: Support 03-20-2018, 06:09 AM
Replies: 4
Views: 449
Posted By aTom
Yeah, well sorry, there is something missing in...

Yeah, well sorry, there is something missing in my original code exerpt. This will work :


var pv1Xml = new XML(SerializerFactory.getSerializer('HL7V2').toXML(pv1String));
msg['PV1'] =...
Forum: Support 03-20-2018, 04:56 AM
Replies: 2
Views: 426
Posted By aTom
Hi, Your'e close : for...

Hi,

Your'e close : for (i=0;i<msg['recordTarget']['patientRole']['id'].length();i++)
Forum: Support 03-20-2018, 12:30 AM
Replies: 4
Views: 449
Posted By aTom
Hi, I understand that you are able to read...

Hi,

I understand that you are able to read your PV1 from your DB but you don't see how to add it to your message, am I right?

Actually you can simply parse it:


// query your data base and...
Forum: Support 03-16-2018, 04:47 AM
Replies: 56
Views: 165,788
Posted By aTom
Custom DB aggregator

Here's my small contribution. I had to work on this some time ago and I though it was worth to share.

Starting with Mirth 3.5 new DB Reader "Aggregate Results" option, this scripts allows you to...
Forum: Support 03-15-2018, 11:34 PM
Replies: 8
Views: 1,190
Posted By aTom
Hi, '&&' is a logical AND. Use '||' for an...

Hi,

'&&' is a logical AND. Use '||' for an OR.

I'm wondering if Mirth won't escape '<' to '&lt;' and '>' to '&gt;' as HL7 messages get parsed into XML.
Forum: Support 03-13-2018, 07:23 AM
Replies: 3
Views: 707
Posted By aTom
Hi, While testing backup/restore some time...

Hi,

While testing backup/restore some time ago, an exception was fired because a plugin from the source config was missing in the target installation. I had to install it first, then restore was...
Forum: Support 03-07-2018, 10:13 PM
Replies: 12
Views: 2,573
Posted By aTom
Hello, Actually you could - without...

Hello,



Actually you could - without any programming.

You can append incoming messages into a file named {DATE.get('YYYYMMDDHH')}.hl7, then set up other channel to execute hourly 5 after the...
Forum: Support 03-07-2018, 10:34 AM
Replies: 3
Views: 343
Posted By aTom
Hi, Not sure I understand it right : are all...

Hi,

Not sure I understand it right : are all incoming messages sent to same HTTPS destination?

Anyway I would highly recommend to store the messages outside from your Mirth installation instead...
Forum: Support 03-07-2018, 04:38 AM
Replies: 17
Views: 1,444
Posted By aTom
Exception says it all : indate is a (JS) number...

Exception says it all : indate is a (JS) number while LocalDate.parse waits for a (Java) CharSequence, which is equivalent to a String (see javadoc for String class).

Rhino automatically converts...
Forum: Support 03-01-2018, 09:32 PM
Replies: 17
Views: 1,444
Posted By aTom
If you want a 100% JS function then do not...

If you want a 100% JS function then do not consider agermano's or my suggestions - they will only work in a Rhino resp Mirth environment.

I tested the script from your 1st post in an online JS...
Forum: Support 03-01-2018, 08:20 AM
Replies: 3
Views: 481
Posted By aTom
Hi In 3.5.x you have an "Aggregate results"...

Hi

In 3.5.x you have an "Aggregate results" option on your connector that will deliver one single message <results><result>...</result></results>. Then you'll have to use an Iterator step in your...
Forum: Support 03-01-2018, 08:00 AM
Replies: 17
Views: 1,444
Posted By aTom
Yeah ok, my intention was just to point out that...

Yeah ok, my intention was just to point out that getting a date out of a string is extremely easy in Mirth (and only in Mirth) using DateUtil package.
Forum: Support 03-01-2018, 05:55 AM
Replies: 17
Views: 1,444
Posted By aTom
I would not use an external library for this, I'd...

I would not use an external library for this, I'd keep it as simple as possible :


// I'd add some datatype checks first ...

var dateObj = DateUtil.getDate('yyyyMMdd', indate);...
Showing results 1 to 25 of 113

 
Forum Jump

All times are GMT -8. The time now is 07:31 PM.


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