Search Shortcut cmd + k | ctrl + k
dicom

DuckDB integration with medical imaging data (DICOM - Digital Imaging and Communication in Medicine).

Maintainer(s): nmontesg

Installing and Loading

INSTALL dicom FROM community;
LOAD dicom;

Example

INSTALL dicom FROM community;
LOAD dicom;
FROM read_dicom('path/to/dicom_file.dcm');

About dicom

The dicom extension for DuckDB provides functionality to import medical imaging data (DICOM, Digital Imaging and Communication in Medicine) directly into DuckDB. It uses the powerful DCMTK C++ library to read DICOM files and convert them into JSON format.

For full documentation and examples, see the project README.

Key functionality:

  • read_dicom() - Table function to import DICOM files directly into DuckDB, including support for local and remote files.
  • DICOM_TAG - Custom type to work with DICOM tags, including conversion to and from VARCHAR.
  • tag_group(), tag_element(), tag_name() - Scalar functions to work with DICOM tags.
  • dicom secret type - Store credentials to establish connection with remote DICOM modalities, such as PACS systems.
  • query_dicom() - Table function to retrieve DICOM datasets from a remote modality directly into DuckDB using C-FIND commands.

Added Functions

function_name function_type description comment examples
query_dicom table NULL NULL  
read_dicom table NULL NULL  
tag_element scalar NULL NULL  
tag_group scalar NULL NULL  
tag_name scalar NULL NULL  

Overloaded Functions

This extension does not add any function overloads.

Added Types

type_name type_size logical_type type_category internal
DICOM_TAG 0 STRUCT COMPOSITE true

Added Settings

This extension does not add any settings.