Skip to content

source.getDICOMFloats

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.getDICOMFloats.

Signature: source.getDICOMFloats(nodePath, instance*)

Returns: String result - the first node that matches the nodePath and instance

Get the result as a \\ delimited string of floats of the first node that matches the nodePath.

Note

When the optional instance value is specified, the nodePath should not include an instance identifier.

Parameters

Type Name Description Default
String nodePath the DICOM node path
Integer instance* (optional) the match instance to return. Use 1 for the first instance. 1

Example

// Example: Retrieve float values from a DICOM node.

// Get a backslash-delimited string of floats from the first matching node
var dicomFloats = source.getDICOMFloats(
    "0010,0030" // DICOM tag
);              // e.g. "1.5\\0.0\\-1.5\\0.0"

// Get the floats from a specific instance (useful for sequences)
var dicomFloatsInstance = source.getDICOMFloats(
    "0010,0030", // DICOM tag
    2            // instance
);