# HG changeset patch # User Sebastien Jodogne # Date 1440497371 -7200 # Node ID 525a2f57ec94c8cf6cb3304b9d1bcdd9639a6435 # Parent 6f86a5168e685615c0b2f124d0cc8a7b9dfb459c origin diff -r 6f86a5168e68 -r 525a2f57ec94 Database/Lua/AutoroutingConditional.lua --- a/Database/Lua/AutoroutingConditional.lua Thu Aug 20 17:41:12 2015 +0200 +++ b/Database/Lua/AutoroutingConditional.lua Tue Aug 25 12:09:31 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'])