←Select platform

DicomEncapsulatedDocumentType Enumeration

Summary
Specifies the type of a DicomEncapsulatedDocument.
Syntax
C#
Objective-C
C++/CLI
Java
public enum DicomEncapsulatedDocumentType   
typedef NS_ENUM(NSInteger, LTDicomEncapsulatedDocumentType) { 
	LTDicomEncapsulatedDocumentTypeUnknown = 0,  
	LTDicomEncapsulatedDocumentTypePdf = 1,  
	LTDicomEncapsulatedDocumentTypeCda = 2,  
}; 
public enum DicomEncapsulatedDocumentType 
public enum class DicomEncapsulatedDocumentType   
Members
ValueMemberDescription
0Unknown Unknown.
1Pdf PDF document type
2Cda CDA (Clinical Document Architecture) type
Example
C#
using Leadtools; 
using Leadtools.Dicom; 
 
 
///  
void DicomDataSet_SetEncapsulatedDocumentExample(DicomElement element, bool child, DicomDataSet ds, string sFileDocumentIn) 
{ 
   DicomEncapsulatedDocument encapsulatedDocument = new DicomEncapsulatedDocument(); 
 
   encapsulatedDocument.Type = DicomEncapsulatedDocumentType.Pdf; 
   encapsulatedDocument.InstanceNumber = 123; 
   encapsulatedDocument.ContentDate = new DicomDateValue(2008, 12, 31); 
 
   encapsulatedDocument.ContentTime = new DicomTimeValue(12, 30, 00, 1); 
 
   encapsulatedDocument.AcquisitionDateTime = new DicomDateTimeValue(2008, 12, 31, 12, 30, 00, 01, -3); 
 
   encapsulatedDocument.BurnedInAnnotation = "YES"; 
   encapsulatedDocument.DocumentTitle = sFileDocumentIn; 
   encapsulatedDocument.VerificationFlag = "UNVERIFIED"; 
   encapsulatedDocument.HL7InstanceIdentifier = string.Empty; 
 
   // The 'pszMIMETypeOfEncapsulatedDocument' field is ignored when calling SetEncapsulatedDocument 
   // It is filled in when calling 'SetEncapsulatedDocument' 
   encapsulatedDocument.MimeTypeOfEncapsulatedDocument = "***** This is ignored when calling SetEncapsulatedDocument *****"; 
 
   string[] sListOfMimeTypes = new string[] { "image/jpeg", "application/pdf" }; 
   encapsulatedDocument.SetListOfMimeTypes(sListOfMimeTypes); 
   //encapsulatedDocument.nListOfMIMETypesCount               = 2; 
 
   DicomCodeSequenceItem conceptNameCodeSequence = new DicomCodeSequenceItem(); 
   conceptNameCodeSequence.CodingSchemeDesignator = "LN"; 
   conceptNameCodeSequence.CodeValue = "12345"; 
   conceptNameCodeSequence.CodeMeaning = "Sample Code Meaning"; 
 
   ds.SetEncapsulatedDocument(element, child, sFileDocumentIn, encapsulatedDocument, conceptNameCodeSequence); 
 
   // You can also use the overload that takes a stream 
   using (FileStream stream = new FileStream(sFileDocumentIn, FileMode.Open)) 
   { 
      ds.SetEncapsulatedDocument(element, child, stream, encapsulatedDocument, conceptNameCodeSequence); 
   } 
} 
Requirements

Target Platforms

Help Version 22.0.2023.1.29
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Dicom Assembly
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.