I think I asked this question before, but I’m asking again because I now have the Python Plug-in and am learning some Python to maybe work with that also.
I know that you can Limit the number of results that are returned using the tools/find command and optionally using “Expand” and “Limit”. Just wondering if there are hooks for Python to sort the results based on some parameter (e.g. like Date of the exam, StudyDate) and then return only “x” results sorted in ASC or DESC fashion like with an SQL query (similar to
SELECT * FROM Studies ORDER BY StudyDate DESC LIMIT 10).
There is some flexibility just by specifying ranges for dates and then returning all of the results and then just varying the date range,
but it might be possible to setup some sort of pagination using Python or a custom Plug-in ?
I did read this reference: https://book.orthanc-server.com/faq/improving-interface.html?highlight=sort
I have a PHP tool that does some things I am looking for, and I've looked at https://github.com/salimkanoun/Orthanc-Tools-JS as well.
Mostly wondering what sort of hooks Python provides, or if a Plug-in would have to be created. I could probably work with Python,
but not real familiar with C or C++ and the SDK: https://sdk.orthanc-server.com/index.html