Hi all,
I am studying up on Lua Scripting and I am trying to find out if it is possible for a Lua Script to open a Dicom file, extract the metadata tag “InstitutionName” and then move that file into a folder with that same name? So and example would be:
- Open filename
- get InstituionName
- Assign that name into a variable
- Close the file
- Move filename into “C:\database\(Contents of variable used to store InstituionName)”
- End
This in effect would empty the main database of Orthanc and create a new user friendly directory with the Clinic names.
Is there such a script now? If not, are there native commands in Orthanc that I can use in conjunction with Lua script to accomplish this?
Any links and advise is appreciated.
Thank you.
Craig.