Skip to content

qie.convertDICOMtoJSON

Signature: qie.convertDICOMtoJSON(message)

Returns: String jsonString - a JSON String representing the DICOM

Converts a DICOM message object to a JSON-formatted string.

Note

This helper method can be used to produce a JSON string which represents a DICOM message object.

Parameters

Type Name Description Default
DICOM Message message the DICOM message object to convert

Example

// Parse a DICOM file into a DICOM message
var dicomMessage = qie.parseDICOMFile("/tmp/lady.dcm");

// Convert the DICOM message to a JSON-formatted string
var dicomJson = qie.convertDICOMtoJSON(dicomMessage); // JSON string