web stats
Mirth Community - Search Results

Go Back   Mirth Community > Search Forums

Showing results 1 to 25 of 500
Search took 0.03 seconds.
Search: Posts Made By: cory_cole
Forum: General Discussion Today, 07:54 AM
Replies: 0
Views: 19
Posted By cory_cole
Database Connection Status

I am searching but I may get a quicker response here. Does anybody know the command to get the status of the database connection?
Forum: Support Yesterday, 06:55 AM
Replies: 1
Views: 63
Posted By cory_cole
var file_name =...

var file_name = sourceMap.get('originalFilename');

var name = file_name.substring(0,file_name.length() - 4)
Forum: Support 03-25-2020, 10:34 AM
Replies: 4
Views: 244
Posted By cory_cole
var datePieces = actualDate.split('/'); var...

var datePieces = actualDate.split('/');

var month = datePieces[0];
var day = datePieces[1];
var year = datePieces[2]
Forum: Support 03-24-2020, 09:01 AM
Replies: 2
Views: 203
Posted By cory_cole
You have multiple msg['EVN']['EVN.4']['EVN.4.1']....

You have multiple msg['EVN']['EVN.4']['EVN.4.1']. So Try this...

var evn = false;
for each(evn4 in msg['EVN']['EVN.4']['EVN.4.1'])
{
if (evn4.toString() == 50)
{
evn = true;
...
Forum: Support 03-19-2020, 06:56 PM
Replies: 1
Views: 145
Posted By cory_cole
You can either put the filename in OBX.5 or you...

You can either put the filename in OBX.5 or you can create a Z segment to put it in.
Forum: Support 03-17-2020, 08:29 AM
Replies: 10
Views: 368
Posted By cory_cole
msg['PID']['PID.6'] =...

msg['PID']['PID.6'] = msg['PID']['PID.5'][1]['PID.5.1'].toString();
msg['PID']['PID.5'] = msg['PID']['PID.5'][0]['PID.5.1'].toString();
Forum: Support 03-10-2020, 12:13 PM
Replies: 4
Views: 167
Posted By cory_cole
tmp['PID']['PID.15'] = ...

tmp['PID']['PID.15'] = tmp['PID']['PID.15']['PID.15.2']['PID.15.1'].toString();

That should force PID.15 to only have 15.1
Forum: Support 03-10-2020, 10:52 AM
Replies: 4
Views: 167
Posted By cory_cole
First, you don't have tmp at the beginning...

First, you don't have tmp at the beginning tmp['PID.15']...

Second you don't want to delete a field. You should just set it to ''
Forum: General Discussion 03-09-2020, 07:11 AM
Replies: 10
Views: 1,041
Posted By cory_cole
importPackage(java.io);

importPackage(java.io);
Forum: Support 03-06-2020, 09:58 AM
Replies: 4
Views: 288
Posted By cory_cole
No for each (pid13 in msg['PID']['PID.13'])...

No

for each (pid13 in msg['PID']['PID.13']) {
if (pid13['PID.13.3.2'].toString() == 'NET') {//get rid of the .3 on these two lines
pid13['PID.13.3.4'].length() > 1;
...
Forum: General Discussion 03-06-2020, 09:00 AM
Replies: 10
Views: 1,041
Posted By cory_cole
Put this in the post processor var...

Put this in the post processor

var originalFile = new File (file_name);//file_name should be complete path
originalFile.delete();
Forum: General Discussion 03-06-2020, 06:46 AM
Replies: 10
Views: 1,041
Posted By cory_cole
Ater Process/Action set to delete.

Ater Process/Action set to delete.
Forum: Support 03-06-2020, 04:54 AM
Replies: 2
Views: 300
Posted By cory_cole
Change the format on the column with that data....

Change the format on the column with that data. Make sure that it is not numeric.
Forum: Support 03-05-2020, 04:33 AM
Replies: 9
Views: 432
Posted By cory_cole
I believe that this should work; var...

I believe that this should work;
var lastSegment = 'PV1';

for each(nk1 in msg.NK1)
{
var newpv = createSegmentAfter(lastSegment, nk1);
lastSegment = nk1;
}
Forum: Support 02-24-2020, 09:33 AM
Replies: 3
Views: 262
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, 11:42 AM
Replies: 3
Views: 402
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, 05:16 AM
Replies: 3
Views: 235
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, 06:32 AM
Replies: 5
Views: 530
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, 06:31 AM
Replies: 6
Views: 386
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, 05:46 AM
Replies: 6
Views: 386
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, 09:33 AM
Replies: 14
Views: 900
Posted By cory_cole
try this... msg = new XML(toHL7.toString());

try this...

msg = new XML(toHL7.toString());
Forum: Support 01-21-2020, 09:05 AM
Replies: 14
Views: 900
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, 08:02 AM
Replies: 14
Views: 900
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, 07:01 AM
Replies: 14
Views: 900
Posted By cory_cole
msg = new XML(toHL7);

msg = new XML(toHL7);
Forum: Support 01-16-2020, 05:04 AM
Replies: 6
Views: 357
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.
Showing results 1 to 25 of 500

 
Forum Jump

All times are GMT -8. The time now is 01:56 PM.


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