message.mergeDICOM¶
Signature: message.mergeDICOM(otherDICOM)
Returns: void
Copies all DICOM tags from otherDICOM into the current DICOM object.
Note
Conflicting tags are replaced by the copied values.
Note
Nested sequences are deep copied.
Parameters¶
| Type | Name | Description | Default |
|---|---|---|---|
| DICOM Message | otherDICOM | the DICOM to copy |
Example¶
// Example: Merge all DICOM tags from another DICOM message into the current one.
// assumes `message` is a DICOM message model object
var otherDICOM = qie.parseDICOMFile("/tmp/second.dcm", false);
// Merge tags from otherDICOM into message
// Conflicting tags are replaced; nested sequences are deep-copied
message.mergeDICOM(otherDICOM);
// message now contains the combined DICOM tags