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: cory_cole
Forum: Support 01-16-2020, 06:04 AM
Replies: 6
Views: 94
Posted By cory_cole
tmp['IN1'][inputIN2Index]['IN1.29']['IN1.29.1'] =...

tmp['IN1'][inputIN2Index]['IN1.29']['IN1.29.1'] = msg['MSH']['MSH.7']['MSH.7.1'].toString().substring(0,8);

Should work.
Forum: Support 01-16-2020, 05:48 AM
Replies: 6
Views: 94
Posted By cory_cole
And what do you want in IN1.29?

And what do you want in IN1.29?
Forum: Support 01-16-2020, 05:29 AM
Replies: 6
Views: 94
Posted By cory_cole
What is the format for MSH.7 and what format do...

What is the format for MSH.7 and what format do you want?
Forum: Support 01-13-2020, 12:29 PM
Replies: 2
Views: 75
Posted By cory_cole
msg['OBX'] = msg['OBX.1'] +msg['OBX.2']...

msg['OBX'] = msg['OBX.1'] +msg['OBX.2'] +msg['OBX.3'] +msg['OBX.4'] +msg['OBX.5']

will give you segments 1 - 5;
Forum: Support 01-13-2020, 08:59 AM
Replies: 4
Views: 185
Posted By cory_cole
One of the things that I am seeing is that you...

One of the things that I am seeing is that you are not doing anything with the file after it is read. This means that you will continue to try to read the file. If you move the file, it won't be...
Forum: Support 01-09-2020, 07:52 AM
Replies: 1
Views: 109
Posted By cory_cole
There may be a flag built in that you can use or...

There may be a flag built in that you can use or you can create your own in the Source Transformer. Then in the Post-Processor...

if(success)
{


}
Forum: Support 12-18-2019, 12:09 PM
Replies: 1
Views: 226
Posted By cory_cole
I would probably put some kind of delimiter (even...

I would probably put some kind of delimiter (even a + ' ' +) between them. And I believe that IN1 is a repeatable segment and your code will error if there is multiple. You will either need...
Forum: Support 12-18-2019, 08:41 AM
Replies: 3
Views: 173
Posted By cory_cole
obx_count = 0; for each(obx in msg['OBX']) ...

obx_count = 0;

for each(obx in msg['OBX'])
{
msg['OBX'][obx_count]['OBX.5] = msg['OBX'][obx_count++]['OBX.1'].toString() + '^AP^PDF^Base64^';
}
Forum: Support 12-17-2019, 06:36 AM
Replies: 4
Views: 231
Posted By cory_cole
What are the permissions on the file?

What are the permissions on the file?
Forum: Support 12-16-2019, 12:38 PM
Replies: 9
Views: 435
Posted By cory_cole
/opt/mirthconnect/conf edit the file...

/opt/mirthconnect/conf

edit the file mirth.properties...

administrator.maxheapsize = 8G

requires a restart of the servervice.
Forum: Support 12-16-2019, 09:40 AM
Replies: 4
Views: 231
Posted By cory_cole
"access denied" has nothing to do with the file...

"access denied" has nothing to do with the file type. They either don't have access to file or the folder. It is a permissions issue.
Forum: Support 12-13-2019, 12:29 PM
Replies: 9
Views: 435
Posted By cory_cole
vmoptions was to change the permgen value. Java...

vmoptions was to change the permgen value. Java does that dynamically now.
Forum: Support 12-12-2019, 10:32 AM
Replies: 37
Views: 753
Posted By cory_cole
I ran your message through successfully with that...

I ran your message through successfully with that code. It means that the message is not in XML format. Mirth converts HL7 into XML for easier processing. In this message there were carriage returns...
Forum: Support 12-12-2019, 10:02 AM
Replies: 37
Views: 753
Posted By cory_cole
Yep. The OBX has returns in it. Your...

Yep. The OBX has returns in it. Your preprocessor should be....


// Modify the message variable below to pre process data
while(message.indexOf('\n') > -1)
{
message =...
Forum: Support 12-12-2019, 08:47 AM
Replies: 37
Views: 753
Posted By cory_cole
Escaped characters aren't invalid. So, there...

Escaped characters aren't invalid. So, there isn't a problem with them going through.

The message could be bad. There are some invalid characters that aren't visible like null. You could also...
Forum: Support 12-12-2019, 07:54 AM
Replies: 37
Views: 753
Posted By cory_cole
I don't think that it is the /E/ causing the...

I don't think that it is the /E/ causing the problem. There is probably another character in there that you aren't seeing. In the prepocessor, you can drag the function removeIllegalCharacters in. ...
Forum: Support 12-12-2019, 07:25 AM
Replies: 37
Views: 753
Posted By cory_cole
That is the preprocessor code. This is the...

That is the preprocessor code.

This is the destination transformer code...

msg = java.lang.String(msg);
while(msg.indexOf('\\\\') > -1)
{
msg = msg.replace('\\\\', '\\E\\');
}
Forum: Support 12-12-2019, 06:16 AM
Replies: 37
Views: 753
Posted By cory_cole
Then yes. Replace everything.

Then yes. Replace everything.
Forum: Support 12-12-2019, 06:13 AM
Replies: 2
Views: 221
Posted By cory_cole
Can you post the code that you are using?

Can you post the code that you are using?
Forum: Support 12-12-2019, 06:11 AM
Replies: 37
Views: 753
Posted By cory_cole
Did you have anything before?

Did you have anything before?
Forum: Support 12-11-2019, 01:22 PM
Replies: 37
Views: 753
Posted By cory_cole
There is something wrong with your channel. I...

There is something wrong with your channel. I have tested that code to work. However, before the code was working, I wasn't getting an error with the /E/ in the message.

If you get that code to...
Forum: Support 12-11-2019, 01:08 PM
Replies: 37
Views: 753
Posted By cory_cole
The replaceAll doesn't like the escape...

The replaceAll doesn't like the escape characters. This works for the preprocessor. Postprocessor handles things differently. I am working on that....


// Modify the message variable below to...
Forum: Support 12-11-2019, 12:43 PM
Replies: 37
Views: 753
Posted By cory_cole
What are your inbound data types? Are you using...

What are your inbound data types?
Are you using strict parser on either of them?
Forum: Support 12-11-2019, 12:16 PM
Replies: 37
Views: 753
Posted By cory_cole
Yes. replaceAll is a Java function and not a...

Yes. replaceAll is a Java function and not a javascript function. You need to convert to Java in order for the replaceAll to work. But all other msg functions are javascript. So, it needs to be...
Forum: Support 12-11-2019, 12:11 PM
Replies: 37
Views: 753
Posted By cory_cole
put this as your first line... message =...

put this as your first line...

message = java.lang.String(message);//converts the javascript string to a java string;

and your return line to....

return String(message);//convert back to a...
Showing results 1 to 25 of 500

 
Forum Jump

All times are GMT -8. The time now is 03:18 AM.


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