web stats
Mirth Community - Search Results

Go Back   Mirth Community > Search Forums

Showing results 1 to 25 of 50
Search took 0.00 seconds.
Search: Posts Made By: cbarlow
Forum: Support 12-27-2018, 05:04 AM
Replies: 1
Views: 304
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: 388
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: 433
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: 1,675
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: 1,675
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: 1,775
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: 1,775
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: 1,402
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: 1,797
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: 565
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: 936
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: 1,939
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: 1,939
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: 7,016
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: 2,205
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,423
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,367
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: 1,873
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,367
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,540
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,540
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,540
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.
Forum: Support 03-01-2017, 02:04 PM
Replies: 7
Views: 1,540
Posted By cbarlow
Destination Transformer. And try this. ...

Destination Transformer. And try this.

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

This will copy the contents of the original message of OBR-4 into the new...
Forum: Support 02-24-2017, 10:42 AM
Replies: 1
Views: 885
Posted By cbarlow
Mirth certainly has the ability to convert JPG...

Mirth certainly has the ability to convert JPG files into DICOM. I am sure it can do other image types as well. I know I have posted samples in this forum. Search for them and I am sure you will find...
Forum: Support 02-24-2017, 08:57 AM
Replies: 2
Views: 633
Posted By cbarlow
var output = ''; var found = 'N'; for...

var output = '';
var found = 'N';
for each(obx in msg..OBX)
{
if(obx['OBX.5']['OBX.5.1'].toString() == 'ASSESSMENT AND PLAN') {
found = 'Y';
}
if(found...
Showing results 1 to 25 of 50

 
Forum Jump

All times are GMT -8. The time now is 12:53 PM.


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