Export DICOM

Node Icon

Exports DICOM data to one or more files on disk. This node accepts either a single HeroStruct or a list of HeroStructs containing DICOM data and saves each as a .dcm file in the specified folder. When a list is provided, each file is automatically named using its SOPInstanceUID.

Inputs

Input

A HeroStruct or list of HeroStructs containing DICOM data to be exported. These can represent any valid DICOM objects, such as images, RT structures, or other types of medical datasets.

Type: Struct List, Required, Single or Multiple

Settings

Include Private Tags Boolean

When enabled, private DICOM tags from the input data will be preserved in the exported files. Disable this option to export only standard DICOM tags.

Folder Directory Path

The directory where the DICOM file(s) will be saved. If the specified directory doesn't exist, it will be created automatically.

Filename Selection

Determines how the output file(s) will be named:

  • SOPInstanceUID: Uses the SOPInstanceUID from the DICOM dataset(s)
  • Custom: Allows you to specify a custom filename (only applicable for single inputs)
    Note: If the input is a list, filenames will always default to SOPInstanceUID.

Values: SOPInstanceUID, Custom

Filename Text

Custom filename for the exported DICOM file. Only available when a single HeroStruct is provided and “Custom” is selected in the filename option.

Examples

  1. Exporting a Single DICOM File

    • Connect a single HeroStruct to the input
    • Select a target folder
    • Choose either SOPInstanceUID or Custom for the filename
    • The file will be saved with the selected name
  2. Exporting Multiple DICOM Files

    • Connect a list of HeroStructs to the input
    • Select a target folder
    • Each DICOM file will be named using its SOPInstanceUID automatically

See also

Keywords: DICOM, Export, File IO, DICOM Writer, Batch Export