LEADTOOLS - The World Leader in Imaging SDKs LEAD Technologies
 
 

DICOM Specification Overview: Item Encoding Rules

 
less DICOM Specification Overview Home more

Each Item of a Data Element of Value Representation SQ shall be encoded as a DICOM Standard Data Element with a specific Data Element Tag of Value (FFFE,E000). The Item Tag is followed by a 4 byte Item Length field encoded in one of the following two ways:

Explicit Length: The number of bytes (even) contained in the Sequence Item Value (following but not including the Item Length Field) is encoded as a 32-bit unsigned integer value (see Section 7.1 of the DICOM StandardDICOMSpec). This length shall include the total length of all Data Elements conveyed by this Item. This Item Length shall be equal to 00000000H if the Item contains no Data Set.

Undefined Length: The Item Length Field shall contain the value FFFFFFFFH to indicate an undefined Item length. It shall be used in conjunction with an Item Delimitation Data Element. This Item Delimitation Data Element has a Data Element Tag of (FFFE,E00D) and shall follow the Data Elements encapsulated in the Item. No Value shall be present in the Item Delimitation Data Element and its Length shall be 00000000H.

The encoder of a Data Set may choose either one of the two ways of encoding. Both ways of encoding shall be supported by decoders of Data Sets. Data Element Tags (FFFF,eeee) are reserved by this standard and shall not be used.

Each Item Value shall contain a DICOM Data Set composed of Data Elements. Within the context of each Item, these Data Elements shall be ordered by increasing Data Element Tag value and appear only once (as Data Set is defined in Section 7.1 of the DICOM StandardDICOMSpec). There is no relationship between the ordering of the Data Elements contained within an Item and the ordering of the Data Element Tag of SQ Value Representation that contains that Item. One or more Data Elements in an Item may be of Value Representation SQ, thus allowing for recursion.

Section 7.8 of the DICOM StandardDICOMSpec specifies rules for incorporating Private Data Elements into Sequence Items.

 

Copyright Notices

Portions hereof reprinted with permission from the National Electrical Manufacturers Association ©Copyright 1998 by the National Electrical Manufacturers Association. All rights including translation into other languages, reserved under the Universal Copyright Convention, the Berne Convention or the Protection of Literacy and Artistic Works, and the International and Pan American Copyright Conventions.

LEADTOOLS PACS Imaging is a full featured PACS, raster, document, medical imaging SDK that includes functions to implement a complete PACS client and server solution as well as medical imaging functionality. LEADTOOLS PACS Imaging SDK supports the load, save, decompression and compression of over 150 image formats via C DLL, C++ classes, .NET classes, WIC codecs, WF activities and WCF services. Also includes extended grayscale and color support such as 12 and 16 bit grayscale data and 48 and 64 bit color data.

 

 
LEADTOOLS Sales: 704-332-5532 | sales@leadtools.com | LEADTOOLS Support: 704-372-9681 | support@leadtools.com