/ESAPI_SRS-MultiMets-localMetrics

Simplified version of a ESAPI script to calculate local plan quality metrics for SRS cases with multiple lesions

Primary LanguageC#

ESAPI_SRS-MultiMets-localMetrics

Simplified version of a ESAPI script to calculate local plan quality metrics for SRS cases with multiple lesions

(Single-File-Plugin for testing on TBox)

First-Compile tips:

  • add your own ESAPI-DLL-Files (VMS.TPS.Common.Model.API.dll + VMS.TPS.Common.Model.Types). Usually found in C:\Program Files\Varian\RTM\16.1\esapi\API
  • For clinical Mode: Create a binary Plugin script with 'Eclipse Script Wizard'. Copy&Paste the provided code and approve the produced esapi.dll file in External Treatment Planning (Approvement is necessary if 'Is Writeable = true')

Note:

Comments:

  • in the background the script creates 4 rings (2 small and 2 bigger rings) for calculation of dose metrics (will be automatically deleted at the end). Reason: example -> when the 50%-isodose is not the same in the two bigger rings, I assume dose bridging and will not calculate metrics to prevent misreporting

Test Image 1

  • the script calculates metrics for all ptvs that have a bigger median dose as prescription (prescription will be separately overwritten if a referencepointDose is set)
  • the script result will be a simple MessageBox:

Test Image 2

  • to make the script more usfule you can develop a GUI script that writes the provided results or even more to a database. Example screenshot of the GUI-version:

Test Image 3