web stats
Mirth Community - Search Results

Go Back   Mirth Community > Search Forums

Showing results 1 to 25 of 53
Search took 0.00 seconds.
Search: Posts Made By: cbarlow
Forum: Support 11-27-2019, 11:21 AM
Replies: 3
Views: 547
Posted By cbarlow
I read in a bunch of Excel Files, add them to a...

I read in a bunch of Excel Files, add them to a password protected zip, and email the zip. You could try something like this. My sender is SMTP Sender, Body is just some text, then in the attachments...
Forum: Support 08-02-2019, 07:23 AM
Replies: 1
Views: 466
Posted By cbarlow
One of your channels is bad or has bad message in...

One of your channels is bad or has bad message in it. You'll have to keep deploying 1 at a time to figure out which one it is. You can also delete them from the d_channels table and do some db work...
Forum: Support 08-02-2019, 07:20 AM
Replies: 1
Views: 355
Posted By cbarlow
What code are you using to unzip? I have a...

What code are you using to unzip? I have a reverse process, I zip up a bunch of files for emailing, however, windows extraction doesn't like it. Have to use 7-Zip to extract.
Forum: Support 12-27-2018, 05:04 AM
Replies: 1
Views: 530
Posted By cbarlow
Could be an invalid message or something else...

Could be an invalid message or something else hitting one of your interface ports. How many interfaces are you running? Is it possible to change the ports to see?
Forum: Support 06-05-2018, 12:02 PM
Replies: 2
Views: 606
Posted By cbarlow
Create your custom ack in the post processor and...

Create your custom ack in the post processor and make sure the source is setup to respond from it.
Forum: Support 06-05-2018, 12:00 PM
Replies: 3
Views: 630
Posted By cbarlow
Are you getting an error? If you are trying to...

Are you getting an error? If you are trying to modify data in the destination, you need to do the following.


tmp = msg;
tmp['MSH']['MSH.3']['MSH.3.1'] = '1.2.250';
Forum: Support 10-19-2017, 07:26 AM
Replies: 3
Views: 2,644
Posted By cbarlow
I think in your XML, you cannot strip them. Only...

I think in your XML, you cannot strip them. Only option would be to run some sort of replace script to remove the soap:
Forum: Support 10-19-2017, 07:15 AM
Replies: 3
Views: 2,644
Posted By cbarlow
If you are not stripping the namespaces, then you...

If you are not stripping the namespaces, then you need to reference them.

msg.*::Body
Forum: Support 10-17-2017, 10:17 AM
Replies: 1
Views: 2,650
Posted By cbarlow
I figured it out. This seems to work for me ...

I figured it out. This seems to work for me

var i = 0;
for each(var wAtt in xmlNode.patient.@*) {
channelMap.put(i,wAtt);
channelMap.put(i + '_name',wAtt.localName());
i++;
}
Forum: Support 10-17-2017, 09:58 AM
Replies: 1
Views: 2,650
Posted By cbarlow
Looping through XML Attributes

Does anyone know how to loop through all Attributes of an XML tag? In doing some research, I found I can loop through them and get their values by doing ...

for each(Attribute in...
Forum: Support 07-24-2017, 01:01 PM
Replies: 7
Views: 2,127
Posted By cbarlow
Not 100% what you are looking for but I have a...

Not 100% what you are looking for but I have a script that runs every 15 minutes that checks the state of all channels as well as run on startup. If anyone restarts the service, this will typically...
Forum: Support 07-13-2017, 12:43 PM
Replies: 7
Views: 2,714
Posted By cbarlow
If they can hack your Mirth Database, wouldn't...

If they can hack your Mirth Database, wouldn't they also be able to hack the Medical Database too? The purpose of a database is to have all the security needed. If they can get into your Mirth DB,...
Forum: Support 06-27-2017, 02:30 PM
Replies: 2
Views: 740
Posted By cbarlow
I think your close. try this. var blob =...

I think your close. try this.


var blob = attachment.getBlob("CONTENT").toString();
var bytes = blob.getBytes(1,blob.length());
var encData = FileUtil.encode(bytes);


You may need to...
Forum: Support 05-24-2017, 01:47 PM
Replies: 5
Views: 1,145
Posted By cbarlow
Are you saying you want to build 40 HL7 messages?...

Are you saying you want to build 40 HL7 messages? Why not 1 message with Multiple OBX segments like a standard Lab Interface/
Forum: Support 04-10-2017, 01:07 PM
Replies: 6
Views: 2,635
Posted By cbarlow
The problem is in you getting the result. Try...

The problem is in you getting the result. Try looping and calling the column from the SP output.



var dbConn = DatabaseConnectionFactory.createDatabaseConnection...
Forum: Support 04-10-2017, 10:07 AM
Replies: 6
Views: 2,635
Posted By cbarlow
Did you search the forums? Tons of examples to do...

Did you search the forums? Tons of examples to do exactly what you want.

http://www.mirthproject.org/community/forums/showthread.php?t=1513
Forum: Support 04-06-2017, 07:40 AM
Replies: 18
Views: 9,004
Posted By cbarlow
Make sure you have Binary selected as the file...

Make sure you have Binary selected as the file type then in your transformer on the destination you can get the raw bytes like so.

var rawbytes = connectorMessage.getRawData();
Forum: Support 04-04-2017, 08:47 AM
Replies: 3
Views: 3,385
Posted By cbarlow
Start with this. You will need to tweak but this...

Start with this. You will need to tweak but this should point you in the right direction. This is how in standard XML you add to a repeating outbound XML.


for each(eCrew in...
Forum: Support 04-03-2017, 12:44 PM
Replies: 3
Views: 1,601
Posted By cbarlow
Try maybe creating a channelMap in your...

Try maybe creating a channelMap in your Transformer and then referencing that in the Connector. By doing that you can break it up and have more control over the concatenation.
Forum: Support 03-16-2017, 01:46 PM
Replies: 3
Views: 1,754
Posted By cbarlow
What version of Mirth are you using? Could be...

What version of Mirth are you using? Could be that $r is not available in that version. You should see in your mappings a Scope value of Response then a Variable Value of d1, the the value value of...
Forum: Support 03-16-2017, 01:44 PM
Replies: 2
Views: 2,487
Posted By cbarlow
var i = 0; var found = 0; for each(wOBX in...

var i = 0;
var found = 0;
for each(wOBX in msg..OBX) {
if(found != 0) {
delete msg.OBX[found];
}
if (msg.OBX[i]['OBX.5']['OBX.5.1'].toString() == "PREVIOUS REPORT:") {
found = i + 1;...
Forum: Support 03-15-2017, 05:47 AM
Replies: 3
Views: 1,754
Posted By cbarlow
I am not sure you can call the destination name...

I am not sure you can call the destination name like that.

This is how I check for errors in my post processor.

var wFailedResponse = $r('d1');
if(wFailedResponse != 'SENT') {
......
}
Forum: Support 03-10-2017, 05:47 AM
Replies: 7
Views: 1,764
Posted By cbarlow
I guess it doesn't matter either way. It is just...

I guess it doesn't matter either way. It is just good habit to define your tmp and modify your tmp message as all the msg data will be left intact. For a simple mapping change, you won't see the...
Forum: Support 03-09-2017, 04:40 AM
Replies: 7
Views: 1,764
Posted By cbarlow
The error you got was probably because you didn't...

The error you got was probably because you didn't have tmp defined. So try adding

tmp = msg;
tmp['OBR']['OBR.24']['OBR.24.1'] = msg['OBR']['OBR.4']['OBR.4.1'].toString();

That should do it.
Forum: Support 03-09-2017, 04:38 AM
Replies: 7
Views: 1,764
Posted By cbarlow
That is completely opposite. MSG stands for...

That is completely opposite. MSG stands for message, meaning raw message. TMP stands for Template, or the new message template you are building.

It is always tmp = msg.
Showing results 1 to 25 of 53

 
Forum Jump

All times are GMT -8. The time now is 10:48 AM.


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