Announcement

Collapse
No announcement yet.

Help adding a rule

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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 Files

  • #2
    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.

    Comment


    • #3
      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 Files

      Comment


      • #4
        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.

        Comment


        • #5
          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 Files

          Comment


          • #6
            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.

            Comment

            Working...
            X