Skip to content

qie.parseDICOMFile

Signature: qie.parseDICOMFile(file, includePixelData*)

Returns: DICOM Message dicomMessage - the associated DICOM message object

Parse the file, as a DICOM message and return the associated DICOM message object.

Note

If you are keeping the pixel data and the channel is configured to separate pixel data, please note that the pixel data will be stored in the configured folder and unless the resulting DICOM message model is subsequently tied into the "message", then the separated pixel data will become orphaned and will need to occasionally be manually cleaned up by hand.

Note

The return value CAN NEVER be assigned to the bound-in message object; it should be assigned to a locally declared variable.

Parameters

Type Name Description Default
Object file must be one of the following types: String representing the path to the DICOM file, java.io.File, Qvera NetFile, java.io.InputStream
Boolean includePixelData* (optional) whether or not the resulting message model should include the pixel data true

Example

var dicomMessage = qie.parseDICOMFile("/tmp/out/lady.dcm"); // DICOM Message