Skip to content

source.getNodeNamesMatchingPattern

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

Signature: source.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 source message (source)
// Find the patient-group (0010) tags present in the message
var matchingTags = source.getNodeNamesMatchingPattern("0010,00??");

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