# HG changeset patch # User Sebastien Jodogne # Date 1440497387 -7200 # Node ID 4fa03fcbff5ea274e0d4e8813bef6fc2517e309a # Parent 525a2f57ec94c8cf6cb3304b9d1bcdd9639a6435# Parent 8fb14554b27ce6ec378baa6a875443129d8a8788 merge diff -r 8fb14554b27c -r 4fa03fcbff5e Database/Lua/AutoroutingConditional.lua --- a/Database/Lua/AutoroutingConditional.lua Fri Aug 21 17:28:59 2015 +0200 +++ b/Database/Lua/AutoroutingConditional.lua Tue Aug 25 12:09:47 2015 +0200 @@ -1,9 +1,6 @@ -function OnStoredInstance(instanceId, tags, metadata, remoteAet, calledAet) - -- The "remoteAet" and "calledAet" arguments are only available - -- since Orthanc 0.8.6 - if remoteAet ~=nil and calledAet ~= nil then - print ("Source AET: " .. remoteAet .. " => Called AET: " .. calledAet) - end +function OnStoredInstance(instanceId, tags, metadata, origin) + -- The "origin" is only available since Orthanc 0.9.4 + PrintRecursive(origin) -- Extract the value of the "PatientName" DICOM tag local patientName = string.lower(tags['PatientName'])