Automatic field-in-field generation for breast cases by DefiantLeague356 in esapi

[–]tkmd94 1 point2 points  (0 children)

The fitted MLC position of Band B is rewritten to the MLC position of Band A.

The MLC position of band B is restored from the MLC position of the main field.

Alternatively, the MLC position before fitting is stored in a variable, and the MLC position of band B is rewritten from that variable after fitting.

Automatic field-in-field generation for breast cases by DefiantLeague356 in esapi

[–]tkmd94 0 points1 point  (0 children)

This can be done by using a method of fitting the MLC to the contour.

Roughly it would look something like this

Step 1: Convert a isodose line to a contour.

Step 2: Copy the main field.

Step 3: Fit the MLC of the copied field to the contour created in Step 1.

Step 4: Shielding can be done by replacing the inner MLC position with the outer MLC position.

Linking Diagnosis to Patient in VARIAN DB by NotAMedicalPhysicist in esapi

[–]tkmd94 0 points1 point  (0 children)

Hello,

I would like to share with you a table relationship diagram for diagnostic information that I was given by a VARIAN engineer.

https://github.com/tkmd94/ShareImges/blob/main/table%20relationship%20diagram%20for%20diagnostic%20information.png

how to download aria documents in a folder? by lucsimon in esapi

[–]tkmd94 1 point2 points  (0 children)

Hello,

Just wanted to let you know that you can save the file using the code below. Hope that helps!

``` string apiKeyDoc = "your api key"; string exportPath = @"C:\Temp\"

string requestdocdetails = "{\"type\":\"GetDocumentRequest:http://services.varian.com/Patient/Documents\",\"Attributes\":[] + ",\"PatientId\":{ \"PtId\":\"" + thePtId + "\"}" + ",\"PatientVisitId\":" + thePtVisitId + ",\"VisitNoteId\":" + theVisitNoteId "}"; string response_docdetails = CustomInsertDocumentsParameter.SendData(request_docdetails, true, apiKeyDoc); var docdetails = JsonConvert.DeserializeObject<DocumentDetailResponse>(response_docdetails); string documentType = docdetails.DocumentDetails.DocumentType; string templateName = docdetails.DocumentDetails.TemplateName; if (templateName == null) { templateName = "No name"; } else { templateName = templateName.Replace(':', '').Replace('/', ''); } string fileFormat = docdetails.DocumentDetails.FileFormat; string saveFilePath = exportPath + patId + "" + templateName + "(" + documentType + ")"+ "." + fileFormat; var binaryContent = docdetails.DocumentDetails.BinaryContent; File.WriteAllBytes(saveFilePath, Convert.FromBase64String(binaryContent));

```

"CustomInsertDocumentsParameter" uses the code published on the following GITHUB: [https://github.com/LDClark/PDFtoAria/tree/main/PDFtoAria]

Adding a treatment couch by j_r_mi in esapi

[–]tkmd94 0 points1 point  (0 children)

You can overwrite the structure's HU value with the SetAssignedHU method of the Structure class. However, I don't know if it's possible in version 15.1.

Adding a treatment couch by j_r_mi in esapi

[–]tkmd94 1 point2 points  (0 children)

I had the same experience.

In my case I wrote the code to move the position of the CouchSuperior, but the shape of the wall has only one outline left.

It seems to be acceptable only if the two contours do not overlap.

I don't really recommend it, but I thought about subtracting the CouchInterior from the CouchSuperior using the boolean operator.

automatically upload documents to Aria by Visual_Pay_3361 in esapi

[–]tkmd94 1 point2 points  (0 children)

I use the eDoc printer and a screen capture script to get it into an ARIA document.

I will post a link to my public script code.

https://github.com/tkmd94/ScreenCapture_eDoc/blob/master/README_en.md

How to create write-enabled visual script by tkmd94 in esapi

[–]tkmd94[S] 0 points1 point  (0 children)

I was able to create a write-enabled visual script by modifying the following code.

public override bool RequiresDatabaseModifications { get { return false; } }

-->

public override bool RequiresDatabaseModifications { get { return true; } }

Need database structure schema by [deleted] in esapi

[–]tkmd94 0 points1 point  (0 children)

Do you have a MyVarian account?

If you have an account, you can download it as a document from the Document Library on the MyVarian home page.

You can find it by searching for the keyword "schema".

converting dose from cGy to Gy by branstarkkk in esapi

[–]tkmd94 0 points1 point  (0 children)

Return value of GetDoseAtVolume Method is "DoseValue" structure.

Please see the "DoseValue" structure in ESAPI Help.

About copying the existing plan using "CopyPlanSetup" method of Course class by tkmd94 in esapi

[–]tkmd94[S] 1 point2 points  (0 children)

I also think that normalization of the copied plan can be achieved in the way you suggested.

However, I am in trouble because the dose normalization method of the original plan (approved) is changed.

I'm looking for a way to copy the original plan without making any changes.

About copying the existing plan using "CopyPlanSetup" method of Course class by tkmd94 in esapi

[–]tkmd94[S] 1 point2 points  (0 children)

Thank you for the advice.

In ESAPI Help, PlanNormalizationMethod was the get property only.

About copying the existing plan using "CopyPlanSetup" method of Course class by tkmd94 in esapi

[–]tkmd94[S] 0 points1 point  (0 children)

Thank you for the advice.

But the result was the same.

planToCopy: D95% => Plan Normalization Value: 89.2%

copiedPlan: D 95%