L_DicomFindIndexContextGroup

#include "ltdic.h"

L_LTDIC_API pDICOMCONTEXTGROUP L_DicomFindIndexContextGroup(uIndex)

L_UINT32 uIndex;

/* index of Context Group */

Returns a pointer to the Context Group located at the specified index in the Context Group Table.

Parameter

Description

uIndex

The zero-based index of the required Context Group (the index should be a number from 0 to the count of Context Groups in the table minus 1). Use the L_DicomGetCountContextGroup function to obtain the count of Context Groups in the table.

Returns

!NULL

Pointer to a DICOMCONTEXTGROUP structure that specifies the Context Group in the Context Group Table which is located at the specified index.

NULL

The specified index is invalid.

Comments

Use the L_DicomFindIndexContextGroup function along with the L_DicomGetCountContextGroup function as a way of enumerating the Context Groups in the Context Group Table.

LEADTOOLS also provides the following functions for maneuvering through the Context Groups in the Context Group Table:

L_DicomGetFirstContextGroup

L_DicomGetLastContextGroup

L_DicomGetNextContextGroup

L_DicomGetPrevContextGroup

To investigate the Coded Concepts of a Context Group, use the following functions:

L_DicomGetFirstCodedConcept

L_DicomGetLastCodedConcept

L_DicomGetNextCodedConcept

L_DicomGetPrevCodedConcept

L_DicomGetCountCodedConcept

L_DicomFindIndexCodedConcept

Required DLLs and Libraries

LTDIC

For a listing of the exact DLLs and Libraries needed, based on the toolkit version, refer to Files To Be Included With Your Application

See Also

Functions:

L_DicomLoadContextGroup, L_DicomInsertContextGroup, L_DicomGetCountContextGroup, L_DicomGetFirstContextGroup, L_DicomFindIndexCodedConcept

Topics:

Working with Context Groups

 

How to Disable the Automatic Loading of the default DICOM Context Group Table

Example

For an example, refer to L_DicomGetFirstContextGroup.