Mercurial > hg > orthanc-tests
comparison Database/Lua/AutoroutingConditional.lua @ 41:525a2f57ec94
origin
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Tue, 25 Aug 2015 12:09:31 +0200 |
parents | 04fa104ab63b |
children |
comparison
equal
deleted
inserted
replaced
37:6f86a5168e68 | 41:525a2f57ec94 |
---|---|
1 function OnStoredInstance(instanceId, tags, metadata, remoteAet, calledAet) | 1 function OnStoredInstance(instanceId, tags, metadata, origin) |
2 -- The "remoteAet" and "calledAet" arguments are only available | 2 -- The "origin" is only available since Orthanc 0.9.4 |
3 -- since Orthanc 0.8.6 | 3 PrintRecursive(origin) |
4 if remoteAet ~=nil and calledAet ~= nil then | |
5 print ("Source AET: " .. remoteAet .. " => Called AET: " .. calledAet) | |
6 end | |
7 | 4 |
8 -- Extract the value of the "PatientName" DICOM tag | 5 -- Extract the value of the "PatientName" DICOM tag |
9 local patientName = string.lower(tags['PatientName']) | 6 local patientName = string.lower(tags['PatientName']) |
10 | 7 |
11 if string.find(patientName, 'knee') ~= nil then | 8 if string.find(patientName, 'knee') ~= nil then |