L_LTDIC_API L_UINT16 L_DicomDirInsertDS(hDicomDir, phDataSet, pszFileName)
Adds a DICOM Data Set to the Dicom Directory.
A DICOMDIR handle
The DICOMDS handle that holds the Data Set to be added to the Dicom Directory.
Character string that contains the name of the DICOM file referenced by the handle "phDataSet".
|0||The function was successful.|
|> 0||An error occurred. Refer to Return Codes.|
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
For a listing of the exact DLLs and Libraries needed, based on the toolkit version, refer to Files To Be Included With Your Application
Medical Web Viewer .NET
.NET, Java, Android, and iOS/macOS Assemblies
C API/C++ Class Libraries