web stats
Mirth Community - Search Results

Go Back   Mirth Community > Search Forums

Showing results 1 to 23 of 23
Search took 0.00 seconds.
Search: Posts Made By: jarlrmai
Forum: Support 02-11-2016, 12:59 PM
Replies: 29
Views: 11,298
Posted By jarlrmai
You need to build an XML template then assign...

You need to build an XML template then assign your variables to those with a mapper.
Forum: Support 02-11-2016, 12:56 PM
Replies: 11
Views: 4,448
Posted By jarlrmai
One of the skills you are going to need when...

One of the skills you are going to need when dealing with HL7 in Mirth is RegEx you should read through a few guides.

Additionally you should put your trim command after the tostring command
Forum: Support 02-06-2016, 11:38 AM
Replies: 18
Views: 6,351
Posted By jarlrmai
You don't need to 'delete' anything, just set the...

You don't need to 'delete' anything, just set the specific fields in the output msg to be ""
Forum: Support 01-28-2016, 12:56 PM
Replies: 8
Views: 3,129
Posted By jarlrmai
If you want a new message for each CLP segment ...

If you want a new message for each CLP segment

Iterate for each CLP segment
Inside each iteration construct new message as a raw message then use router.routeMessage to route the message to a new...
Forum: Support 11-11-2015, 01:47 AM
Replies: 2
Views: 847
Posted By jarlrmai
Yeah that's a possibility it adds complexity to...

Yeah that's a possibility it adds complexity to the code, I was wondering if there was an easier way.
Forum: Support 11-10-2015, 04:16 AM
Replies: 2
Views: 847
Posted By jarlrmai
When a segment may or may not repeat.

I need to access the 1st segment of inbound msg's which may or may not contain a repeating sub segment (in this case PV1.9)

Using [0] fails when the segment only has one entry and when it has...
Forum: Support 11-09-2015, 05:45 AM
Replies: 1
Views: 923
Posted By jarlrmai
Odd encoding char issue

I have a generic script which converts the output of a system to look like the output of another system, part of this is that MSH.2 gets changed from

MSH|^~\&|

to

MSH|^~\#|

The issue is...
Forum: Support 11-09-2015, 05:34 AM
Replies: 2
Views: 1,019
Posted By jarlrmai
Maybe ...

Maybe


if((/[123456789]/).test(msg['PID']['PID.13']['PID.13.1'])
{
remove all non numbers
}
else
{
delete phone number
Forum: Support 11-04-2015, 02:12 AM
Replies: 2
Views: 1,344
Posted By jarlrmai
That does it! Thanks

That does it!

Thanks
Forum: Support 10-27-2015, 06:43 AM
Replies: 2
Views: 1,344
Posted By jarlrmai
Copy repeating subsegments to new fields.

I need to copy multiple PV1.17 segments to PV1.9 segments

Whats is the best way to do this?

I can iterate through the fields no problem but how do I create the new fields named correctly.

At...
Forum: Support 10-14-2015, 01:41 PM
Replies: 11
Views: 11,193
Posted By jarlrmai
That will insert after an existing PID.3 It...

That will insert after an existing PID.3

It is odd, my understanding is that that the E4X methods should work, the appendChild method works but the insertChildAfter or insertChildBefore do nothing...
Forum: Support 10-14-2015, 01:56 AM
Replies: 11
Views: 11,193
Posted By jarlrmai
AppendChild adds the XML to tmp but obviously in...

AppendChild adds the XML to tmp but obviously in the wrong place

<ZU1.15/>
<ZU1.16/>
<ZU1.17/>
<ZU1.18/>
<ZU1.19/>
<ZU1.20/>
<ZU1.8>
...
Forum: Support 10-14-2015, 01:45 AM
Replies: 11
Views: 11,193
Posted By jarlrmai
I'm having a similar issue with this code, it's a...

I'm having a similar issue with this code, it's a little overblown.

Essentially nothing happens it's like the XML ends up nowhere, i've tried a few variants.

if(msg['ZU1'].toString())
{
var...
Forum: Support 08-12-2015, 02:01 AM
Replies: 1
Views: 1,052
Posted By jarlrmai
Okay I figured out a bit more ...

Okay I figured out a bit more

tmp['PV1']['PV1.17'] = msg['PV1']['PV1.9']; //duplicate-strip

This just replaces the section so 9 just ends up in the XML. but in the same position that 17 was.
...
Forum: Support 08-11-2015, 05:08 AM
Replies: 1
Views: 1,052
Posted By jarlrmai
Creating repeat segment

I have this code


logger.info("No PV1.17 copy PV1.9");

tmp['PV1']['PV1.17'] = msg['PV1']['PV1.9']; //duplicate-strip

var newPV17 = new XML('<PV1.17/>');
newPV17['PV1.17.1'] =...
Forum: Support 07-21-2015, 07:16 AM
Replies: 4
Views: 1,457
Posted By jarlrmai
It's very complicated so some segments in the...

It's very complicated so some segments in the template would not always be used meaning they would need to be removed from the outbound message if they were not used in order for the messages to...
Forum: Support 07-21-2015, 07:01 AM
Replies: 4
Views: 1,457
Posted By jarlrmai
Data that I don't explicitly remove from the...

Data that I don't explicitly remove from the source message is copied into the destination.

I want to ensure that the message replicates the existing code which creates a message from scratch.
Forum: Support 07-21-2015, 06:30 AM
Replies: 4
Views: 1,457
Posted By jarlrmai
Create HL7 message without template

I have to convert code from egate, which turns one HL7 message into another by moving data around into other segments and changing up other segments etc

I need the output to match exactly, I have...
Forum: Support 07-20-2015, 12:29 AM
Replies: 2
Views: 707
Posted By jarlrmai
Literally nothing, You left click and hold...

Literally nothing,

You left click and hold on the function, as you start to drag the cursor flickers once then goes back to an arrow, then when you enter the Javascript window it changes to an I...
Forum: Support 07-17-2015, 06:05 AM
Replies: 2
Views: 707
Posted By jarlrmai
Drag and Drop code references not working

So I've been editing my JS for a while, needed to use a code reference.

Tried to drag and drop it in but it doesn't work

I have restarted the client, cleared my Java cache but it still wont...
Forum: Support 07-17-2015, 05:32 AM
Replies: 2
Views: 871
Posted By jarlrmai
Thanks that was quote useful.

Thanks that was quote useful.
Forum: Support 07-16-2015, 01:28 AM
Replies: 2
Views: 871
Posted By jarlrmai
Documentation for iterating segments

Hi guys,

New to Mirth where do I find documentation on iterating through segments in transformers.

I see the FOR EACH in and and FOR EACH REPFIELD referenced in posts is there anywhere I can...
Forum: Support 07-09-2015, 01:20 AM
Replies: 2
Views: 2,787
Posted By jarlrmai
String replace not working

Latest Mirth version

It's my first real task in Mirth since training

My code below doest work and I don't know why

You can see I have been as explicit as I can but the string replace just...
Showing results 1 to 23 of 23

 
Forum Jump

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


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