changeset 2254:4305c183c7f8

removed unused .orig file
author Alain Mazy <am@osimis.io>
date Wed, 01 Feb 2017 14:03:41 +0000
parents 441352e7a9d1
children 1442da6a03dd
files Resources/Samples/Lua/ModifyInstanceWithSequence.lua.orig
diffstat 1 files changed, 0 insertions(+), 28 deletions(-) [+]
line wrap: on
line diff
--- a/Resources/Samples/Lua/ModifyInstanceWithSequence.lua.orig	Wed Jan 25 14:16:46 2017 +0100
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,28 +0,0 @@
--- Answer to:
--- https://groups.google.com/d/msg/orthanc-users/0ymHe1cDBCQ/YfD0NoOTn0wJ
--- Applicable starting with Orthanc 0.9.5
-
-function OnStoredInstance(instanceId, tags, metadata, origin)
-   -- Do not modify twice the same file
-   if origin['RequestOrigin'] ~= 'Lua' then
-      local replace = {}
-      replace['0010,1002'] = {}
-      replace['0010,1002'][1] = {}
-      replace['0010,1002'][1]['PatientID'] = 'Hello'
-      replace['0010,1002'][2] = {}
-      replace['0010,1002'][2]['PatientID'] = 'World'
-
-      local request = {}
-      request['Replace'] = replace
-
-      -- Create the modified instance
-      local modified = RestApiPost('/instances/' .. instanceId .. '/modify',
-                                   DumpJson(request, true))
-
-      -- Upload the modified instance to the Orthanc store
-      RestApiPost('/instances/', modified)
-
-      -- Delete the original instance
-      RestApiDelete('/instances/' .. instanceId)
-   end
-end