view Resources/Samples/Lua/IncomingFindRequestFilter.lua @ 2986:b1ba0a8311b5

exploring hierarchy of C-FIND answers finished
author Sebastien Jodogne <s.jodogne@gmail.com>
date Mon, 10 Dec 2018 10:03:41 +0100
parents 444f0bdaba01
children
line wrap: on
line source

-- This example solves the following problem:
-- https://groups.google.com/d/msg/orthanc-users/PLWKqVVaXLs/n_0x4vKhAgAJ

function IncomingFindRequestFilter(source, origin)
   -- First display the content of the C-Find query
   PrintRecursive(source)
   PrintRecursive(origin)

   -- Remove the "PrivateCreator" tag from the query
   local v = source
   v['5555,0010'] = nil

   return v
end