Project

General

Profile

Actions

Feature #1151

closed

Properly implement BulkDataURI support in JSON export

Added by Marco Eichelberg 7 months ago. Updated 3 months ago.

Status:
Closed
Priority:
Normal
Category:
Library
Target version:
-
Start date:
2025-02-05
Due date:
% Done:

100%

Estimated time:
10:00 h
Module:
dcmdata
Operating System:
Compiler:

Description

The mechanism for BulkDataURI in the writeJson() code in dcmdata is not really well thought out. Each DcmElement instance calls asBulkDataURI(), passes its tag key, and expects to receive a unique URI. This cannot work for attributes that may occur multiple times (i.e. in sequence items). Furthermore, there is no mechanism (e.g. in the form of an virtual method that can be re-implemented) for actually creating the files/resources that the URI would point to.

Unfortunately, at the point where asBulkDataURI() is called, the information about the "path" within the dataset is not available. Each element calls asBulkDataURI() individually, and elements do not know where in the overall data structure they "live".

I don't see any simple way of fixing that short of a major re-design of the writeJson() code where for example a DcmStack indicating the position in the dataset would be passed to writeJson(), and updated in the DcmSequenceOfItems and DcmItem implementations of the method.

Feature requested 2025-02-05 by Mathieu Malaterre <>

Actions

Also available in: Atom PDF