Mercurial > hg > orthanc-tests
changeset 42:4fa03fcbff5e
merge
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Tue, 25 Aug 2015 12:09:47 +0200 |
parents | 525a2f57ec94 (diff) 8fb14554b27c (current diff) |
children | 5f3bcdde2461 |
files | |
diffstat | 1 files changed, 3 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- 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'])