Skip to content

message.createFileMetaInformation

Signature: message.createFileMetaInformation()

Returns: Boolean isCreated - true when the File Meta Information was created

Creates the File Meta Information (group 0002) elements from the SOP Class UID and SOP Instance UID when the current DICOM object does not already have them.

Parameters

None

Example

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

// Clear any existing File Meta Information, then recreate it
// from the SOP Class and Instance UIDs
message.removeFileMetaInformation();
var created = message.createFileMetaInformation(); // true | false