changeset 41:525a2f57ec94

origin
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 25 Aug 2015 12:09:31 +0200
parents 6f86a5168e68
children 4fa03fcbff5e
files Database/Lua/AutoroutingConditional.lua
diffstat 1 files changed, 3 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- 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'])