web stats
Mirth Community - Search Results

Go Back   Mirth Community > Search Forums

Showing results 1 to 25 of 104
Search took 0.01 seconds.
Search: Posts Made By: myoung34
Forum: Support 03-12-2012, 06:52 AM
Replies: 5
Views: 1,557
Posted By myoung34
I don't have the code offhand, but we did...

I don't have the code offhand, but we did implement this before for a channel whose destination sometimes stopped responding.

You can create a destination filter that will check to see if the...
Forum: Support 10-21-2011, 01:18 PM
Replies: 2
Views: 1,825
Posted By myoung34
put the user/pass/whatever into a config file on...

put the user/pass/whatever into a config file on the system, and just have the globalscript read it. you can make it ro for user mirth, which means other users can't read it without root access...
Forum: Support 10-10-2011, 08:01 AM
Replies: 4
Views: 2,221
Posted By myoung34
make it a file reader that say looks for *.txt...

make it a file reader that say looks for *.txt files.

In the transformer, get the filename (not sure how off the top of my head) that's being read (should be, say abc.txt).

Take that and...
Forum: Support 10-07-2011, 06:44 AM
Replies: 4
Views: 2,221
Posted By myoung34
setup: javascript reader to look for hl7/pdf...

setup:

javascript reader to look for hl7/pdf pair
javascript transformer to write to outfile, no destination

in reader you'll need to look for a file, then read it's accompanying .pdf manually...
Forum: Support 10-07-2011, 06:40 AM
Replies: 10
Views: 2,380
Posted By myoung34
also, make note that most likely the revision...

also, make note that most likely the revision won't be seen until a mirth restart if you edit it in place from SQL
Forum: Support 10-07-2011, 06:38 AM
Replies: 6
Views: 1,908
Posted By myoung34
var phone = '1234567890'; phone =...

var phone = '1234567890';
phone = '('+phone.substring(0,3)+')'+phone.substring(3,6)+'-'+phone.substring(6,phone.length);
Forum: Support 10-07-2011, 06:36 AM
Replies: 5
Views: 1,200
Posted By myoung34
make a channel that's hl7 source var mrn...

make a channel that's hl7 source


var mrn = msg['PID']['PID.3']['PID.3.1'].toString();

var dbConn = DatabaseConnectionFactory.createDatabaseConnection('com.mysql.jdbc.Driver', conn_str, user ,...
Forum: Support 10-07-2011, 06:32 AM
Replies: 7
Views: 1,809
Posted By myoung34
msg['PID']['PID.19']['PID.19.1'] =...

msg['PID']['PID.19']['PID.19.1'] = (msg['PID']['PID.19']['PID.19.1'].toString().match(/...\-..\-..../)) ? msg['PID']['PID.19']['PID.19.1'].toString(): '';
Forum: Support 10-05-2011, 12:45 PM
Replies: 10
Views: 2,380
Posted By myoung34
make a db connection to mirthdb, then run a...

make a db connection to mirthdb, then run a dbconn.executecachedupdate('change revision number here');
Forum: Support 10-05-2011, 12:42 PM
Replies: 7
Views: 1,809
Posted By myoung34
there's no need for that 2nd part. Also you don't...

there's no need for that 2nd part. Also you don't have ()'s on your if.
you don't need it because of the statement above. If blah != 'something', means that it didn't match the pattern, meaning it...
Forum: Support 10-05-2011, 10:20 AM
Replies: 7
Views: 1,809
Posted By myoung34
var blah =...

var blah = (msg['PID']['PID.19']['PID.19.1'].toString().match(/...-..-..../)) ? '': 'something';

if you meant literally 999-99-9999:

var blah = (msg['PID']['PID.19']['PID.19.1'].toString() ==...
Forum: Support 09-29-2011, 10:13 AM
Replies: 4
Views: 1,555
Posted By myoung34
what's the full error?

what's the full error?
Forum: Support 09-28-2011, 06:58 AM
Replies: 8
Views: 5,113
Posted By myoung34
var ward = msg['ORC']['ORC.13'].toString(); ...

var ward = msg['ORC']['ORC.13'].toString();

var map = {
'EMEG' : 'E',
'EMERM' : 'E',
'MEDI' : 'E',
'SPY' : 'E',
'EMTST' : 'E',
'EMAB' : 'E',
'EMQC' : 'E',
Forum: Support 09-21-2011, 06:18 AM
Replies: 4
Views: 6,515
Posted By myoung34
use fileutil.read to get the string data from the...

use fileutil.read to get the string data from the pdf

then use fileutil.encode to create a string that is the base64 encoded version

now use:
msg['OBX']['OBX.5']['OBX.5.1'] = pdf; //where pdf...
Forum: Support 09-20-2011, 10:26 AM
Replies: 6
Views: 1,703
Posted By myoung34
We have a release management group here with...

We have a release management group here with homebrew scripts that resolve dependencies and make sure the tables/data upgrade with it. Not an easy answer
Forum: Support 09-19-2011, 06:29 AM
Replies: 6
Views: 1,703
Posted By myoung34
We've never had that issue, but we most likely...

We've never had that issue, but we most likely have a different upgrade process, so I'm not sure.
Forum: Support 09-19-2011, 06:28 AM
Replies: 2
Views: 2,042
Posted By myoung34
You'll need to post what that standard requires...

You'll need to post what that standard requires to see if mirth can comply to it
Forum: Support 09-16-2011, 02:21 PM
Replies: 6
Views: 1,703
Posted By myoung34
doesn't sound right. Did you try restarting the...

doesn't sound right. Did you try restarting the server?
Forum: Support 09-16-2011, 08:06 AM
Replies: 8
Views: 3,445
Posted By myoung34
var delim = (message.charAt(5) == '~') ? true :...

var delim = (message.charAt(5) == '~') ? true : false;

message = message.replace(/~/g,'');

if(delim) {
message = message.substring(0,5) + '~' + message.substring(5,message.length);
}...
Forum: Support 09-16-2011, 06:02 AM
Replies: 8
Views: 3,445
Posted By myoung34
in preproccessor: message =...

in preproccessor:

message = message.replace(/~/g,'');
return message;
Forum: Support 09-08-2011, 02:13 PM
Replies: 2
Views: 1,099
Posted By myoung34
try msg['a']['b'][0]['c'] or foreach(var...

try msg['a']['b'][0]['c']

or
foreach(var seg in msg..b) {
logger.error(seg['c']);
}
Forum: Support 09-08-2011, 12:43 PM
Replies: 8
Views: 5,609
Posted By myoung34
and no, OBX is a keyword for hl7 e4x ...

and no, OBX is a keyword for hl7 e4x


foreach(var seg in msg..OBX) {

}
is the same as

foreach(var seg in msg.children()) {
if(seg.toString() == "OBX") {
Forum: Support 09-08-2011, 12:42 PM
Replies: 8
Views: 5,609
Posted By myoung34
The easiest way to do this is burrow down in the...

The easiest way to do this is burrow down in the xml.

To get the whole xml, you can do:
var xml = msg['OBX'];

or the better way,
var obx5 = msg['OBX'][0]['OBX.5']['OBX.5.1']

There's...
Forum: Support 09-08-2011, 11:30 AM
Replies: 8
Views: 5,609
Posted By myoung34
It was mostly pseudo code, the real function is: ...

It was mostly pseudo code, the real function is:
createSegment('segmentName', msg, i)
where i is where you want to put it

if the obx is always following an OBR, you can use:
var obx =...
Forum: Support 09-08-2011, 06:31 AM
Replies: 9
Views: 2,850
Posted By myoung34
create an empty array, loop through the...

create an empty array, loop through the NTE's...on each iteration, loop through the aray you created, if the NTE.3 value is there, delete the segment, otherwise add the NTE.3 value into the array and...
Showing results 1 to 25 of 104

 
Forum Jump

All times are GMT -8. The time now is 10:03 PM.


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