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 02-24-2020, 10:33 AM
Replies: 3
Views: 91
Posted By cory_cole
I am going to assume that your PV1.44 is in the...

I am going to assume that your PV1.44 is in the yyyymmdd format.

var pv1 = msg['PV1']['PV1.44']['PV1.44.1'].toString().substring(0,8); //removes hours, minutes, seconds, ect.

var today = new...
Forum: Support 02-21-2020, 12:42 PM
Replies: 3
Views: 238
Posted By cory_cole
Yes. Create a file reader that reads both files...

Yes. Create a file reader that reads both files and in the filter

if(file == customer.csv and date == 1st)
{
true;
}
else if(file ==pharmacy.csv and date == 15th)
{
true;
}
Forum: Support 02-07-2020, 06:16 AM
Replies: 3
Views: 173
Posted By cory_cole
for each(gt1 in msg['GT1'] { var gt119 =...

for each(gt1 in msg['GT1']
{
var gt119 = gt1['GT.19']['GT.19.1'].toString();
}
Forum: Support 02-06-2020, 07:32 AM
Replies: 5
Views: 359
Posted By cory_cole
Your data is not in UTF-8 format and has...

Your data is not in UTF-8 format and has characters that are invalid to UTF-8. You need to determine which format it is in and remove the invalid characters and convert UTF-8 or see if the receiving...
Forum: Support 01-22-2020, 07:31 AM
Replies: 6
Views: 335
Posted By cory_cole
The Y is necessary if you are are doing the...

The Y is necessary if you are are doing the count. I find that the for each is easier to work with.
Forum: Support 01-22-2020, 06:46 AM
Replies: 6
Views: 335
Posted By cory_cole
We need to trigger code when CON.3.1 = "Success"...

We need to trigger code when CON.3.1 = "Success" & CON.11.2 = "1".

CON|1||RandomValue|||||||
CON|2||Success||||||||10^1| (this is the segment we want to trigger the code)

for each(con in...
Forum: Support 01-21-2020, 10:33 AM
Replies: 14
Views: 618
Posted By cory_cole
try this... msg = new XML(toHL7.toString());

try this...

msg = new XML(toHL7.toString());
Forum: Support 01-21-2020, 10:05 AM
Replies: 14
Views: 618
Posted By cory_cole
Do just the logger.info. Don't do the msg = new...

Do just the logger.info. Don't do the msg = new XML()
Forum: Support 01-21-2020, 09:02 AM
Replies: 14
Views: 618
Posted By cory_cole
what do you get if you do ...

what do you get if you do

logger.info(toHL7)?
Forum: Support 01-21-2020, 08:01 AM
Replies: 14
Views: 618
Posted By cory_cole
msg = new XML(toHL7);

msg = new XML(toHL7);
Forum: Support 01-16-2020, 06:04 AM
Replies: 6
Views: 320
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: 320
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: 320
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: 220
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: 6
Views: 471
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: 232
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: 276
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: 248
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: 292
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: 531
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: 292
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: 531
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: 1,004
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: 1,004
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: 1,004
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...
Showing results 1 to 25 of 500

 
Forum Jump

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


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