Skip to content

source.getDICOMGroupSize

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

Signature: source.getDICOMGroupSize(group)

Returns: Integer groupSize - the number of DICOM tags are part of the DICOM group

Counts the number of DICOM tags within the object that are part of the given group.

Note

A Group is the first four digits of the DICOM tag: (Group,Element). "Patient Name" tag: (0010,0010). "Patient ID" tag: (0010,0020). "Patient DOB" tag: (0010,0030). All tags with a Group value of 0010 describe the Patient.

Parameters

Type Name Description Default
String group the Group portion of a DICOM tag: "0010"

Example

// Example: Count the number of DICOM tags in a specific DICOM group.

// Count all tags in the Patient group (0010)
var patientGroupSize = source.getDICOMGroupSize(
    "0010" // DICOM group (Patient information)
);

// patientGroupSize is the number of tags in Group 0010 (e.g. Patient Name, ID, DOB)