web stats
Help adding a rule - Mirth Community

Go Back   Mirth Community > Mirth Connect > Support

Reply
 
Thread Tools Display Modes
  #1  
Old 02-28-2014, 06:26 AM
cocas cocas is offline
Mirth Newb
 
Join Date: Feb 2014
Posts: 7
cocas is on a distinguished road
Default Help adding a rule

Hi Forum,

I am testing mirth, with a channel which has a DICOM listener in the Source and a destination as DICOM sender.

Basically what I want to do is to filter out images some DICOM images.

The fitrst part was easy, I was able to make mirth forward the image, piece of cake with mirth, really cool.

I've also set data types:
Source: DICOM>XML
Destination: XML>DICOM

Now I'm trying to filter DICOM images without Patient ID or without Name. I added 2 rules in Source with GUI (not programatically with JS), one for the Patient Id DICOM tag 0010,0020 and to Patient Name DICOM tag 0010,0010, but it is not working.

I think it is the way I test the variable it is not the correct:



Can anyone help me with this issue please?

Best regards
Attached Images
File Type: jpg mirth rules.jpg (31.6 KB, 98 views)
Reply With Quote
  #2  
Old 02-28-2014, 06:53 AM
narupley's Avatar
narupley narupley is online now
Mirth Employee
 
Join Date: Oct 2010
Posts: 7,111
narupley is on a distinguished road
Default

The Field should be an actual node from your msg object. The value table down below is here you specify what the field node should be equal to.
__________________
Step 1: JAVA CACHE...DID YOU CLEAR ...wait, ding dong the witch is dead?

Nicholas Rupley
Work: 949-237-6069
Always include what Mirth Connect version you're working with. Also include (if applicable) the code you're using and full stacktraces for errors (use CODE tags). Posting your entire channel is helpful as well; make sure to scrub any PHI/passwords first.


- How do I foo?
- You just bar.
Reply With Quote
  #3  
Old 02-28-2014, 10:00 AM
cocas cocas is offline
Mirth Newb
 
Join Date: Feb 2014
Posts: 7
cocas is on a distinguished road
Default

Java cache was clear behavior still the same.

Mirth version: mirthconnect-3.0.1.7051.b1075-windows-x64





You can find the channel in attachment I've exported to XML file.

I'm a rookie in mirth so the next questions may seem to basic:

Regarding trace stack, how can get it?
Also, How can access the message object in the rule builder to see its nodes?

thank you
Attached Images
File Type: png post2_messages_mirth.PNG (40.4 KB, 88 views)
File Type: jpg post2_server_errors.jpg (98.5 KB, 87 views)
Attached Files
File Type: xml Teste DICOM.xml (13.9 KB, 16 views)
Reply With Quote
  #4  
Old 02-28-2014, 02:03 PM
narupley's Avatar
narupley narupley is online now
Mirth Employee
 
Join Date: Oct 2010
Posts: 7,111
narupley is on a distinguished road
Default

Like I said, your Field in the Rule Builder step needs to be an actual node in msg. Then you add "00100010" (with quotes) to the values table instead.
__________________
Step 1: JAVA CACHE...DID YOU CLEAR ...wait, ding dong the witch is dead?

Nicholas Rupley
Work: 949-237-6069
Always include what Mirth Connect version you're working with. Also include (if applicable) the code you're using and full stacktraces for errors (use CODE tags). Posting your entire channel is helpful as well; make sure to scrub any PHI/passwords first.


- How do I foo?
- You just bar.
Reply With Quote
  #5  
Old 03-03-2014, 06:29 AM
cocas cocas is offline
Mirth Newb
 
Join Date: Feb 2014
Posts: 7
cocas is on a distinguished road
Default

Thank you.

I've solved the problem exporting the transformed message and loading it back into message template. Afterwords it was only drag and drop.

The DICOM field is used with the following sintax:

msg['tag00100010'].toString()

Attached Images
File Type: jpg add_a_rule.jpg (33.8 KB, 94 views)
Reply With Quote
  #6  
Old 05-12-2015, 07:02 PM
jasonslan jasonslan is offline
Mirth Newb
 
Join Date: Nov 2008
Posts: 23
jasonslan
Default

how did you do this step. I've tried exporting a transformed message and loading it in to a template, and it tells me that it's not a valid template.
Reply With Quote
Reply

Tags
dicom, filter, rule builder

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -8. The time now is 11:06 AM.


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