Skip to content

qie.convertDICOMtoXML

Signature: qie.convertDICOMtoXML(message)

Returns: String xmlString - the XML String representing the DICOM

Converts a DICOM message object to an XML formatted string.

Note

This helper method can be used to produce an XML 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 an XML-formatted string
var dicomXml = qie.convertDICOMtoXML(dicomMessage); // XML string