This is a sample setup to demonstrate how one can filter incoming C-Find requests.
On some setup with hundred thousands of studies, we have observed workstations sending C-Find requests without a single filter criteria. In that case, Orthanc would have to parse it's entire database to respond to the C-Find request and that could take a very long time to return a useless result anyway.
This sample will analyze the C-Find requests and make it totaly invalid if it's not "specific" enough.
This demo contains:
- two orthanc containers that are configured to communicate in DICOM.
- Orthanc B has installed a lua script to filter the C-Find requests. Check the
cfind-filter.luascript inorthanc-bfolder
To start the setup, type: docker-compose up --build
- connect to Orthanc A interface on http://localhost:8042/app/explorer.html#query-retrieve using login/pwd demo:demo and perform the default query on Orthanc B (no criteria)
- check Orthanc B's logs -> you shall see that the query is rejected because it's not specific enough.
- perform a query with 'today' studies only -> this one shall be accepted.