Announcement

Collapse
No announcement yet.

How to route to different destination based on specific dicom tags?

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

  • How to route to different destination based on specific dicom tags?

    Hi all,

    I'm trying to configure channels to handle differently incoming DICOM messages of modality CT and modality SR.
    I prefer to configure both type of messages to come in through the same ip, port and AE.
    What is the best method to achieve this functionality?

    I'm using Mirth Connect Administrator 3.5.1

    Thanks,
    Aviel

  • #2
    Here is an example code for dispatching a message to the channel.

    PHP Code:
    if (condition) {
        
    router.routeMessageByChannelId('channelId''message');
    } else if (
    condition) {
        
    router.routeMessageByChannelId('channelId''message');
    } else {
        .....

    Comment


    • #3
      you can just use multiple destinations. set a modality variable, and in the destination, filter by modality OR, and this is the newer, better way, use destinationSet logic to remove the destination that does NOT correspond to the modality.

      Comment

      Working...
      X