Welcome Guest! To enable all features, please Login or Register.

Notification

Icon
Error

Options
View
Last Go to last post Unread Go to first unread post
#1 Posted : Thursday, July 4, 2024 2:09:11 AM(UTC)

lehuy  
lehuy

Groups: Registered
Posts: 13


How to print dicom photo film using a dicom printer with patient information annotations attached to the image so that the film can print like this
https://drive.google.com...1zDY5xR/view?usp=sharing
I use C# with namespace Leadtool.Dicom and DicomPrintSCU Class
 

Try the latest version of LEADTOOLS for free for 60 days by downloading the evaluation: https://www.leadtools.com/downloads

Wanna join the discussion? Login to your LEADTOOLS Support accountor Register a new forum account.

#2 Posted : Tuesday, July 9, 2024 4:37:59 PM(UTC)
Tommy Thyen

Groups: Registered, Manager, Tech Support, Administrators
Posts: 11


Hello Lehuy,

You can follow the example on this page to see how to implement the DicomPrintScu and PrintFilmSession classes to achieve this use case:
https://www.leadtools.co...cu-printfilmsession.html

I believe you will need to add the text annotations that contain the patient information to be printed as an overlay. You can extract information from a DicomDataSet using the FindElement methods:
https://www.leadtools.co.../dh/di/dicomdataset.html

Please let us know if you have any questions.
Tommy Thyen
Developer Support Engineer
LEAD Technologies, Inc.

LEAD Logo
 
#3 Posted : Wednesday, July 10, 2024 4:17:13 AM(UTC)

lehuy  
lehuy

Groups: Registered
Posts: 13


I also use this code but why printSCU.IsClassSupported(DicomPrintScuPrintManagementClassFlags.BasicAnnotationBoxSopClass)
returns false so int annotationBoxCount = printSCU.GetAnnotationBoxesCount();
returns value 0 Reason why
 
#4 Posted : Wednesday, July 10, 2024 9:25:38 AM(UTC)
Tommy Thyen

Groups: Registered, Manager, Tech Support, Administrators
Posts: 11


Hello Lehuy,

Whether or not this capability is supported will be determined by the specific DICOM printer/SCP that you are associating with. Additionally, for the SCU to properly acknowledge the supported capability, you will need to pass the corresponding DicomPrintScuPrintManagementClassFlags (https://www.leadtools.com/help/sdk/dh/di/dicomprintscuprintmanagementclassflags.html) to the Associate call. Using DICOM Jet v2.0 as my SCP, I am able to instantiate a DicomPrintScu and call Associate with the following code:

using (MyDicomPrintSCU printSCU = new MyDicomPrintSCU(null)) { //note this is a custom class that derives from DicomPrintScu
bool ret = printSCU.Associate(dicomServer.Address.ToString(), dicomServer.Port, dicomServer.AETitle, "TEST",
DicomPrintScuPrintManagementClassFlags.BasicGrayscalePmMetaSopClass |
DicomPrintScuPrintManagementClassFlags.BasicColorPmMetaSopClass |
DicomPrintScuPrintManagementClassFlags.BasicAnnotationBoxSopClass |
DicomPrintScuPrintManagementClassFlags.BasicPrintImageOverlayBoxSopClass |
DicomPrintScuPrintManagementClassFlags.PresentationLutSopClass |
DicomPrintScuPrintManagementClassFlags.PrintJobSopClass |
DicomPrintScuPrintManagementClassFlags.PrinterConfigurationRetrievalSopClass);

Console.WriteLine(printSCU.IsClassSupported(DicomPrintScuPrintManagementClassFlags.BasicAnnotationBoxSopClass));//returns true
}

Please let us know if you have any questions.
Tommy Thyen
Developer Support Engineer
LEAD Technologies, Inc.

LEAD Logo
 
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Powered by YAF.NET | YAF.NET © 2003-2024, Yet Another Forum.NET
This page was generated in 0.063 seconds.