Mercurial > hg > orthanc
comparison Resources/Toolbox.lua @ 1427:d710ea64f0fd
Custom setting of the local AET during C-Store SCU (both in Lua and in the REST API)
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Mon, 29 Jun 2015 12:42:54 +0200 |
parents | 921532f67770 |
children | 6406f5493d92 |
comparison
equal
deleted
inserted
replaced
1426:2cf9a12c995a | 1427:d710ea64f0fd |
---|---|
30 function _AccessJob() | 30 function _AccessJob() |
31 return _job | 31 return _job |
32 end | 32 end |
33 | 33 |
34 | 34 |
35 function SendToModality(instanceId, modality) | 35 function SendToModality(instanceId, modality, localAet) |
36 if instanceId == nil then | 36 if instanceId == nil then |
37 error('Cannot send a nonexistent instance') | 37 error('Cannot send a nonexistent instance') |
38 end | 38 end |
39 | 39 |
40 table.insert(_job, { | 40 table.insert(_job, { |
41 Operation = 'store-scu', | 41 Operation = 'store-scu', |
42 Instance = instanceId, | 42 Instance = instanceId, |
43 Modality = modality | 43 Modality = modality, |
44 LocalAet = localAet | |
44 }) | 45 }) |
45 return instanceId | 46 return instanceId |
46 end | 47 end |
47 | 48 |
48 | 49 |