message.getDICOMSignedLongs¶
Use when: You want to read values from the modified message during mapping. If you need the original incoming message, use source.getDICOMSignedLongs.
Signature: message.getDICOMSignedLongs(nodePath, instance*)
Returns: String result - the first node that matches the nodePath and instance
Get the result as a \\ delimited string of signed longs 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¶
// assumes `message` is a DICOM message model object
// Retrieve signed long values for a DICOM tag
// Returned as a backslash-delimited string
var signedLongs = message.getDICOMSignedLongs(
"0020,0010" // Example DICOM tag
);
// Optionally retrieve a specific instance
var signedLongsInstance = message.getDICOMSignedLongs(
"0020,0010", // node path
2 // instance (1 = first instance)
);
// Result:
// - signedLongs contains a string like: "123\\456\\789"
// - signedLongsInstance contains the values for the specified instance