message.hasDICOMGroup¶
Use when: You want to read values from the modified message during mapping. If you need the original incoming message, use source.hasDICOMGroup.
Signature: message.hasDICOMGroup(group)
Returns: Boolean hasGroup - true if any of the DICOM tags are part of the DICOM group
Determines if the current DICOM object contains any tags 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¶
// assumes `message` is a DICOM message model object
// Check whether the DICOM message contains any tags
// belonging to Group "0010" (Patient group)
if (message.hasDICOMGroup(
"0010" // Group portion of the DICOM tag (e.g. 0010,xxxx)
)) {
// Patient-level tags are present, so they can be read or de-identified.
}