Skip to content

message.getNodeNamesMatchingPattern

Use when: You want to read values from the modified message during mapping. If you need the original incoming message, use source.getNodeNamesMatchingPattern.

Signature: message.getNodeNamesMatchingPattern(nodePath)

Returns: String[] tagPaths - the matching DICOM tag paths

Get the DICOM tags present in the message that match the nodePath pattern.

Note

The nodePath must be a full node path XXXX,XXXX with ? wild cards as needed (Example: 00??,0100).

Parameters

Type Name Description Default
String nodePath the DICOM node path pattern with optional ? wild cards

Example

// Given a DICOM message (message)
// Find the patient-group (0010) tags present in the message
var matchingTags = message.getNodeNamesMatchingPattern("0010,00??");

// matchingTags is a String[] of tag paths, e.g. ["0010,0010", "0010,0020", "0010,0030"]