Can the folder structure be changed so that the entire DICOM data set be available in one folder?
You are most probably looking for the “AutoClassify” Python sample that is part of the Orthanc source distribution, and that takes advantage of the REST API of Orthanc:
https://bitbucket.org/sjodogne/orthanc/src/Orthanc-1.5.8/Resources/Samples/Python/AutoClassify.py
This link is not working right now. Can you share the updated link?
In the meantime, Orthanc 1.8.0 introduced support for WebDAV, which provides an easier solution for a non-technical audience:
https://book.orthanc-server.com/users/webdav.html
Should I install this plugin using this documentation?
https://book.orthanc-server.com/plugins/python.html
If yes, I receive error from orthanc.log:
E0408 14:26:41.997398 PluginsManager.cpp:164] Error during the installation of the Python script, traceback:
<class ‘AttributeError’>
module ‘sys’ has no attribute ‘argv’
File “/etc/orthanc/AutoClassify.py”, line 47, in
import RestToolbox
File “/etc/orthanc/RestToolbox.py”, line 32, in
formatter_class = argparse.ArgumentDefaultsHelpFormatter)
File “/usr/lib64/python3.6/argparse.py”, line 1626, in init
prog = _os.path.basename(_sys.argv[0])
E0408 14:26:41.997461 PluginsManager.cpp:102] Error while initializing plugin /usr/share/orthanc/plugins/libOrthancPython.so (code -1)
The two links I provided above are not related to Python plugins.
1- The “AutoClassify.py” script is an external Python script (not a plugin) that uses the REST API of Orthanc:
https://book.orthanc-server.com/users/rest.html
2- The WebDAV support is built in the Orthanc core.
In both cases, you don’t have to install any plugin.