# Orthanc & InteleViewer C-Find Problem

**URL:** <https://discourse.orthanc-server.org/t/orthanc-inteleviewer-c-find-problem/717>\
**Category:** Google Groups archive\
**Created:** [July 3, 2017, 3:02am UTC](https://discourse.orthanc-server.org/t/orthanc-inteleviewer-c-find-problem/717 "2017-07-03T03:02:58Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Benjamin\_Ganley](https://discourse.orthanc-server.org/letter_avatar_proxy/v4/letter/b/8dc957/32.png) [@Benjamin\_Ganley](https://discourse.orthanc-server.org/u/Benjamin_Ganley)\
**Post date:** [July 3, 2017, 3:02am UTC](https://discourse.orthanc-server.org/t/orthanc-inteleviewer-c-find-problem/717/1 "2017-07-03T03:02:58Z")

</div>

Hi,

I am trying to do a C-Find from InteleViewer to Orthanc, please see the attached screenshots.

As you can see in inteleviewer I am using the criteria PatientName contains "TEST", this comes into Orthanc as can be seen, but then it filters out the two result it finds in the quick scan as can be seen in the screenshot.

Any pointers as to what I can do to get this working?

No errors are being presented at either end, but I am just unable to get results. There are two matching studies on the Orthanc instance that I would expect to be returned. Please see the attached screenshot.

Regards,  
Ben Ganley

![Screen Shot 2017-07-03 at 2.56.37 PM.png](https://discourse.orthanc-server.org/uploads/default/original/1X/0cd910f81389bec838f4ca3db84e221dec7c9852.png)

![Screen Shot 2017-07-03 at 2.56.46 PM.png](https://discourse.orthanc-server.org/uploads/default/original/1X/42018107400040b62c42470bbc1dbf36c37f6fa0.png)

![Screen Shot 2017-07-03 at 3.01.54 PM.png](https://discourse.orthanc-server.org/uploads/default/original/1X/e7cb24812c3eeabdd387f528018d3c2e098f8abf.png)

---

<div class="post-metadata">

**Author:** ![Alain\_Mazy3](https://discourse.orthanc-server.org/letter_avatar_proxy/v4/letter/a/eb9ed0/32.png) [@Alain\_Mazy3](https://discourse.orthanc-server.org/u/Alain_Mazy3)\
**Post date:** [July 3, 2017, 8:02am UTC](https://discourse.orthanc-server.org/t/orthanc-inteleviewer-c-find-problem/717/2 "2017-07-03T08:02:05Z")

</div>

Hi,

I’m suspecting the GroupLength tags to cause the problem.

Could you add a lua script to filter them out ? Check: [http://book.orthanc-server.com/users/lua.html#fixing-c-find-requests](http://book.orthanc-server.com/users/lua.html#fixing-c-find-requests)  
In your case, you would need this script:

```auto
<b>function IncomingFindRequestFilter(query, origin)
  -- First display the content of the C-Find query
  PrintRecursive(query)
  PrintRecursive(origin)

  -- Remove the "PrivateCreator" tag from the query
  local v = query
  v['0008,0000'] = nil
  v['0010,0000'] = nil
  v['0018,0000'] = nil
  v['0020,0000'] = nil

  return v
end</b>

```

If that works, please come back to us and will implement the fix directly in Orthanc.

---

<div class="post-metadata">

**Author:** ![Benjamin\_Ganley](https://discourse.orthanc-server.org/letter_avatar_proxy/v4/letter/b/8dc957/32.png) [@Benjamin\_Ganley](https://discourse.orthanc-server.org/u/Benjamin_Ganley)\
**Post date:** [July 3, 2017, 9:43pm UTC](https://discourse.orthanc-server.org/t/orthanc-inteleviewer-c-find-problem/717/3 "2017-07-03T21:43:32Z")

</div>

Hi Alain,

That fix works perfectly, C-Find results are as expected!

Thanks!  
Ben Ganley
