# HG changeset patch # User Sebastien Jodogne # Date 1449848546 -3600 # Node ID 444f0bdaba01a1af74ec16eaa79a2ae078baadc1 # Parent 512b6e76f5311cfbd71c6d3ceb50671f1ffb5b74 sample diff -r 512b6e76f531 -r 444f0bdaba01 Resources/Samples/Lua/IncomingFindRequestFilter.lua --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Resources/Samples/Lua/IncomingFindRequestFilter.lua Fri Dec 11 16:42:26 2015 +0100 @@ -0,0 +1,14 @@ +-- 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