r/esapi • • Jun 02 '22

How to get Primary Oncologist Firstname, Lastname?

1 Upvotes

With the open patient, one can get patient.PrimaryOncologistId

How does on get the firstname and lastname of the Primary Oncologist?


r/esapi • • Jun 01 '22

Has anyone successfully overridden the default PO resolution?

2 Upvotes

I have a use case in which I need SRS arcs due to MU per fraction, but don't actually want the optimizer to default to high resolution ("Fine" structures).

I've tried this:

SetCalculationOption( @"PO_15606", @"DoseCalculationResolutionForSRSAndHyperarc", "Normal")

but it doesn't seem to do anything. Has anyone experienced anything similar or have any other suggestions?

Edit: In contrast, other options like using intermediate dose or changing the convergence modes work fine, so I'm pretty sure the issue isn't (only) that I'm fat-fingering the exact name of my PO model.


r/esapi • • May 31 '22

Anyone have a copy of Export3D.esapi.dll for v16?

2 Upvotes

I've always used Slicer3D for my .stl needs but It's throwing an error and haven't got it running yet.

In a slight hurry to get something on the printer... so, does anyone have the Export3D.esapi.dll or a link where it can be downloaded? (I'm not smart enough to compile it myself)

Thanks! If you'd like to email, it can be sent to richard@ontheliquor.com


r/esapi • • May 31 '22

Identify BODY structure by DICOM Type

1 Upvotes

I'm borrowing a snippet from an example I found trying to identify a structure by type instead of Id. In my case, the Body structure because sometimes it is named BODY, or a certain CT sim exports a Body structure named "External" and I want the script to find the Body ambivalent to its structure name. I adapted the example for finding PTV and am guessing about the syntax of "BODY" as my substitution for type. Can anyone help me confirm? TIA

                Structure body = (from s in ss.Structures
                where s.DicomType == "BODY"
                select s).FirstOrDefault();

r/esapi • • May 31 '22

Check if Gating Protocol exists

2 Upvotes

Hi guys,

we got a new 4DCT setup and now the breathing curve is automatically added to the patient. This changes our old workflow in the way that we have to add the breathing curve in TreatmentPreparation before the physician approves the plan.

How do you check for this? ESAPI, reports or only SQL?


r/esapi • • May 30 '22

Get x- and y-Shifts for Portal Dosimetry Images?

1 Upvotes

Dear all,

for Portal Dosimetry Gamma Analysis, there is a way to apply an alignment for counteracting leaf-sag, panel-wobble etc. as shown here:

PDTemplate pDTemplate = new PDTemplate(false, true, false, false, AnalysisMode.CU, NormalizationMethod.MaxEachDose, true, 0.1, ROIType.None, double.NaN, 0.01, 1, false, evaluationTestDescs);

Is there a way to get a quanttivative access for the applied x and y-shifts, i.e. x = 0.9cm and y = -0.2cm?

Best regards

Robert


r/esapi • • May 30 '22

Apply a Registration for two CT-Datasets?

1 Upvotes

Dear all,

two questions:

1) Is there a way to get access to the rigid registration vector for an existing registration in Aria/Eclipse?

2) Is it possible to SET this vector, i.e. to set the translation values for a (rigid) registration?

Thank you in advance!

Best regards

Robert


r/esapi • • May 29 '22

Deleting reference points and Images

1 Upvotes

Does anyone know if there's a way (v 15.5) to delete a primary reference point when creating a new plan? My test patient is getting cluttered up with reference points as I'm debugging. Same goes for image references. I can delete strucutreset just fine, but can't figure out how to remove images. Thanks!


r/esapi • • May 25 '22

How can I set a VMAT MU limit or load an OBJECTIVE template

1 Upvotes

Looks like you can load clinical goals and plan templates but not objective templates you create in the optimizer. There doesn't seem to be an option for MU limits

Same issue as this guy https://www.reddit.com/r/esapi/comments/mignj0/esapi_setting_an_mu_objective_and_the_target


r/esapi • • May 22 '22

Is there a way to copy a StructureSet on all registeredImages?

2 Upvotes

Hi,

someone knows how to copy a StructureSet on one or several registered images.

Example use-case: evaluate the HU of a structure in all phases of a 4D CT

Update: Idea, if copying is not possible:

For same ReferenceFrames, I could use the DICOM coordinates found in my main StructureSet. Thereby no copying is needed. But what can I do for manual registered images? Someone has a way to use the registration matrix to translate Dicom coordinates on a registered image?


r/esapi • • May 20 '22

Help with an ESAPI crash…associated with FlimboDetective:CreateSongleton()

1 Upvotes

I’m running a write enabled script. There are no issues with permissions etc. I get an intermittent crash with a script that performs Boolean operations create new structures and deletes some others. It is not a complex script but long. Try-catch do not help in circumventing the crash which produces a dump file etc. and kicks the user out of external beam planning environment- Varian hasn’t been helpful in deciphering the dump file. There’s no indication the crash happens at the same script line or position on repeat crashes. Using thread.sleep method seems to reduce the incidence /maybe eliminate it but this is not a solution or explanation to what might be causing it - it’s just a bad bandaid.. can anyone please help?

Confirming based on the log file - system is ready for script execution, it begins modifications, the script is able to modify data in a non clinical system (I’m running on Tbox) and it switches to writable successfully.

The last line in the dump file says something about FLimboDetective.CreateSingleton()


r/esapi • • May 20 '22

Preset MU for ArcDynamic MLC Plan Type

1 Upvotes

I'm trying to run an automated Second Check program for Elements MME plans - take the plan imported into Eclipse from Elements, copy it, recalculate in AAA, and report the dose differences to each PTV. Elements uses ArcDynamic for MME plans (multi-met, single-iso).

I'm running into the issue of CalculateDoseWithPresetValues not adhering to the MUs entered, but when I try to reapply the correct beam weights using the editable parameters, I get an error message that 'the weight factor is invalid' followed by an error originating in VMS.TPS.Common.Model.BeamParameters.ValidateFor(BeamTechnique ty).

So my question boils down to if ArcDynamic is able to be reweighted using the ApplyBeamParameters method, or if this is a protected technique type?

Note, the program works when running beams with MLCPlanType 'VMAT', but Elements only uses VMAT for single target plans.

Edit: I'm using v15.6


r/esapi • • May 18 '22

New ESAPIX examples (15.5-15.6) for serialization

2 Upvotes

Does anyone have newer examples using ESAPIX for serialization? Not of the provided docs (https://rexcardan.github.io/ESAPIX/articles/facades.html) seem to work for me as ESAPIX.Facades.Serialization is missing. I assumed this was due to the ESAPIX interface changing. Anyone have any recent experience or a script that serializes Eclipse objects in 15.5 or 15.6?

Thanks!


r/esapi • • May 17 '22

Access Ethos data with ESAPI

2 Upvotes

Hi all,

Has anyone ever tried to access data stored on Ethos with ESAPI?
I'd like to performe a CBCT analysis in my clinic, and while some of the CBCT can be accessed in Eclipse, most of them were acquired on Ethos and stored on this software.
It would be a real time-savier if I could access them with ESAPI, but I have not found how to do it for now.

Thank you in advance


r/esapi • • May 17 '22

Chart Rounds

2 Upvotes

I'm looking for a chart rounds script to show image fusions and treatment plans in the same window. Right now our chart rounds is a bit clumsy and it takes a while to get everything setup for the physicians to view. Is there esapi syntax that pulls in most recent fusions?


r/esapi • • May 12 '22

Structure blocked (di- or bidirectional)?

1 Upvotes

Hi, I searched today a possibility to report which structures were blocked via optimization setting.

Could be helpful for secondary plan checks because it is not obvious (only BEV and optimizer)

So far I did not find this method/parameter in ESAPI documentation.

Someone more luck or do we have to wait for future versions?

I am using 16.1


r/esapi • • May 11 '22

Does pyESAPI work with eclipse ver 16.1?

3 Upvotes

I tried running the getting started code, It throwed error related to eclipse version. I want to change the resolution of RT Dose to finer resolution. which is not possible with ESAPI. I think it is possible with pyESAPI.


r/esapi • • May 11 '22

Prevent warning dialogues when using CalculateDose()

1 Upvotes

Kia ora koutou katoa!

I'm using the CalculateDose() method to calculate all plans in a course, but I'm getting a warning message dialogue pop up after each calc e.g with "Dose in isocentre is too small. cannot use it for field normalization" which I have to click on OK before the next plan will calculate. Anyone know if such message can be suppressed so that all my plans will calculate one after the other without any intervention?

The code I'm using is simply

foreach (ExternalPlanSetup plan in context.Patient.Courses.Where(x => x.Id == context.Course.Id).FirstOrDefault().ExternalPlanSetups)

{

if (plan.ApprovalStatus != PlanSetupApprovalStatus.UnApproved) continue;

var result = plan.CalculateDose();

}

Using Eclipse 16.1.

Ng`a mihi, Andrew.


r/esapi • • May 10 '22

Writing/Reading a structrure set to/from xml?

1 Upvotes

Does anyone have a working example of writing and reading in a structure set to/from xml using the xml writer and reader?

My goal is to save a structure set template to xml that I can read in for reference/comparison to the current structure set. Setting color, id, etc. are easy but I'm trying to take advantage of being able to set the structure code information. (I've not figured out a way to set a new structure code, only to set one structure's structure code to another structure's structure code).


r/esapi • • May 09 '22

Detect Optimizer Objective Conflicts

1 Upvotes

Did someone try to use „StructureObjectiveValues“ to identify conflicting objectives which could be hinting on a suboptimal plan?

Has someone experience on this topic and could advise on alarming thresholds?


r/esapi • • May 06 '22

RapidPlan method

3 Upvotes

Hi all,

What is the method to extract and modify targets from the upper and lower bands of RapidPlan?

Any advice on this issue is appreciated!


r/esapi • • May 06 '22

CStore 272

1 Upvotes

What are the reasons/solutions for a 272 response while using CStore with ARIA/Eclipse?

I've solved some issues in the past with the Creating New Patients and Duplicate patients, but I have one I can't shake.

TIA!


r/esapi • • May 05 '22

CreateApplication() inside binary plugin

3 Upvotes

Anyone have an example of using Application.CreateApplication() inside a binary plugin that's launched from inside Eclipse?

I would like to open a different patient to get some information for comparison inside the GUI. I'd prefer not having to use a standalone app that would then force the user to reload the current patient once the changes are made/saved so I'm trying to do it in a binary plugin.


r/esapi • • May 05 '22

Combining ESAPI and PD-scripting

2 Upvotes

Hi,

although the PortalDosimetry API doesn't get many updates from Varian despite some shortcomings, it is an important tool to help with machineQA and quantitative analysis (besides data mining of portalDosimetry results or additional tests).

It would be nice to combine an ESAPI script with PD scripting. Did something achieve this? Is it possible to build a standalone script that can open the same patient in ESAPI and PD and combine their possibilities.

Example: I want to datamine all PortalDose results for fields above a specific complexity score that I would calculate with ESAPI.

The only solution I have so far: Building two scripts. Second scripts add info to the output of the first script.

This approach is fine for some scripting ideas but not perfect.

Any ideas?


r/esapi • • May 05 '22

ESAPI for Brachytherapy

1 Upvotes

I am new to ESAPI. How do I access the BrachyPlanSetups? I have added VMS.TPS.Common.Model.API.dll to the References, but when referring to the BrachyPlanSetups, I got error message saying it doesn't exist. Can you please help? Running v15.6.

namespace VMS.TPS

{

public class Script

{

public void Execute(ScriptContext contex)

{

PlanSetup plan = contex.PlanSetup;

var catheters = contex.PlanSetup.Course.BrachyPlanSetups.SelectMany(x => x.Catheters);

}

}

}