All,
I need some help with something. I appreciate the assistance. I have a routing lua script currently running that is sending to three destinations:
function OnStoredInstance(instanceId, tags, metadata, origin)
if tags[‘Modality’] == ‘CT’ then
SendToModality(instanceId, ‘Dest1’)
SendToModality(instanceId, ‘Dest2’)
SendToModality(instanceId, ‘Dest3’)
end
end
This is working well. However, I want to add another component to route a specific series number to one of the destinations. I figured I create a second script to accomplish this but it doesn’t seem to work:
function OnStoredInstance(instanceId, tags, metadata, origin)
if tags[‘SeriesNumber’] == ‘1’ and
if tags[‘SeriesNumber’] == ‘2’ and
if tags[‘SeriesNumber’] == ‘3’ then
SendToModality(instanceId, ‘Dest3’)
end
end
This is where I am having trouble. Firstly, can I consolidate these that would allow for a specific modality is, lets say, CT and the Series number is 1 then send to Modality “X” or Modalities “X” and “Z”.
Any assistance is much appreciated