Skip to content

source.isPixelDataStoredSeparately

Use when: You want to read values from the original incoming message before any mapping changes. If you need the modified message during mapping, use message.isPixelDataStoredSeparately.

Signature: source.isPixelDataStoredSeparately()

Returns: Boolean isStoredSeparately - true if the pixel data is stored in a separate folder

Check whether the DICOM Pixel Data was extracted and stored in a separate folder when the message was received - the source node option "Enable storing DICOM Pixel Data in a separate folder".

Note

Returns false when the option was not enabled or the received instance carried no pixel data.

Parameters

None

Example

// assumes `source` is a DICOM message model object

// Check if the pixel data was stored in a separate folder when received
if (source.isPixelDataStoredSeparately()) {
    // The pixel data lives outside the message; read it with getSeparatePixelDataLength().
}