Mercurial > hg > orthanc
changeset 1889:444f0bdaba01
sample
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Fri, 11 Dec 2015 16:42:26 +0100 |
parents | 512b6e76f531 |
children | 74dc6b764ff0 |
files | Resources/Samples/Lua/IncomingFindRequestFilter.lua |
diffstat | 1 files changed, 14 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- /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