L_DicomFindIndexCodedConcept

#include "ltdic.h"

pDICOMCODEDCONCEPT EXT_FUNCTION L_DicomFindIndexCodedConcept(pContextGroup, uIndex)

pDICOMCONTEXTGROUP pContextGroup;

/* pointer to a Context Group */

L_UINT32 uIndex;

/* index of the Coded Concept */

Returns a pointer to the Coded Concept in the specified Context Group with the specified index.

Parameter

Description

pContextGroup

Pointer to a DICOMCONTEXTGROUP structure that specifies the Context Group which contains the required Coded Concept.

uIndex

The index of the required Coded Concept in the specified Context Group. This index is zero-based. Valid values range from 0 to the count of Coded Concepts in the Context Group minus 1. Use the L_DicomGetCountCodedConcept to obtain the count.

Returns

!NULL

Pointer to a DICOMCODEDCONCEPT structure that specifies the Coded Concept at the specified index in the specified Context Group.

NULL

The specified index is invalid.

Comments

Use the L_DicomFindIndexCodedConcept function along with the L_DicomGetCountCodedConcept function as a way of enumerating the Coded Concepts in a Context Group.

To maneuver through the Coded Concepts of a Context Group, you can also use the following functions:

L_DicomGetFirstCodedConcept

L_DicomGetLastCodedConcept

L_DicomGetNextCodedConcept

L_DicomGetPrevCodedConcept

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_DicomGetCountCodedConcept, L_DicomGetFirstCodedConcept, L_DicomFindIndexContextGroup

Topics:

Working with Context Groups

Example

For an example, refer to L_DicomGetFirstCodedConcept.