L_DicomDirInsertDS

#include "ltdic.h"

L_LTDIC_API L_UINT16 L_DicomDirInsertDS(hDicomDir, phDataSet, pszFileName)

Adds a DICOM Data Set to the Dicom Directory.

Parameters

HDICOMDIR hDicomDir

A DICOMDIR handle

HDICOMDS *phDataSet

The DICOMDS handle that holds the Data Set to be added to the Dicom Directory.

L_TCHAR *pszFileName

Character string that contains the name of the DICOM file referenced by the handle "phDataSet".

Returns

Value Meaning
0 The function was successful.
> 0 An error occurred. Refer to Return Codes.

Comments

If the name of a DICOM file is to be specified, then before using this function, a destination folder must have been specified, either when it was constructed or by the function L_DicomDirReset. Otherwise, the function will fail.

The DICOM filename must refer to an existing file that resides in the destination folder or in a subfolder of the destination folder. Otherwise, the function will fail and the Data Set will not be added to the Dicom Directory. Please notice that the filename passed to the function must specify the absolute path of the file, not the relative one.

If the parameter pszFileName is set to NULL, a Data Set can still be added, even if no destination folder is specified. (That is, if pszFileName is set to NULL and the destination folder has not been set, a Data Set can still be added.) In this case, no DICOM file will be referenced for this Data Set (i.e., the corresponding Referenced File ID (0004,1500) will have an empty value).

Required DLLs and Libraries

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

LEADTOOLS DICOM C API Help