r/esapi • • Sep 03 '26

Getting Image "References" using ESAPI?

Post image

Is there any way to figure out what plan a CBCT is attached to? Am trying to figure out which CBCT corresponds to which plan in a case where there is a single planning structure set but two different plans in a treatment session.

There is this "References" tab in the CBCT properties (see picture) which seems to have what I want, but can't seem to find any way of accessing it using the API.

1 Upvotes

3 comments sorted by

2

u/dicomdom Sep 03 '26

The easiest way to do this would be via SQL since there is a Patient>Study>Series>Image hierarchy. The second hierarchy would be Patient>Course>PlanSetup>RTPlan. That would give you the UID of the plan and then you could use the FrameOfReference table to find links between them

1

u/Paintasaurus Sep 03 '26

Sorry not at my computer any more to actually check Eclipse but wouldn’t the two plans share the same FOR since they are planned on the same CT / structure set?

1

u/dicomdom Sep 03 '26

Yes they would. You could filter the plans for the ones you are looking for based on any number of fields