A plugin script that uses Oncology Services and Eclipse Scripting APIs to upload a PDF file into Aria from a TML file.
An Oncology Services API key is available at my.varian.com. The API key must be uploaded into the Varian Service Portal. If running on a test box, Aria must have the Oncology Services package installed (must be able to access Documents workspace). Must also edit the TMLtoAria.setting file values to be site specific (e.g. rename HostName to "tbox15", Port to "55051", enter DocKey value, and ImportDir to "\\tbox15\va_data$\PDFTemp"). Keep the comma placement to help with the regex match. Once an esapi.dll is created, it can be ran as a plugin script.
TMLReader is a work in progress, may not work with some TML files.
Uses code contributed by Matt Schmidt (https://github.com/mattcschmidt) and work from WUSTL (https://github.com/WUSTL-ClinicalDev). Also references work in the my.Varian webinar from 23-3-2020 (https://github.com/VarianAPIs/Varian-Code-Samples). Many thanks for your help!