DicomTagId class

An immutable identifier for a DICOM data element (group, element).

Used with DicomMetadata.tag for generic tag lookup beyond the 32 typed getters.

final tag = DicomTagId.fromHex('00100010');        // PatientName
final tag = DicomTagId.fromParts(0x0020, 0x0032);  // ImagePositionPatient

Constructors

DicomTagId.fromHex(String hex)
Creates a DicomTagId from an 8-character hex string (e.g. "00100010"). This constructor cannot be used in const contexts; use fromParts for compile-time constants.
DicomTagId.fromParts(int group, int element)
Creates a DicomTagId from separate group and element values. This is the const-safe constructor.
const

Properties

element int
The DICOM element number (low 4 hex digits).
final
group int
The DICOM group number (high 4 hex digits).
final
hashCode int
The hash code for this object.
no setteroverride
hex String
The canonical 8-character hex representation, e.g. "00100010".
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
override

Constants

acquisitionDate → const DicomTagId
Acquisition Date (0008,0022).
bitsAllocated → const DicomTagId
Bits Allocated (0028,0100).
bitsStored → const DicomTagId
Bits Stored (0028,0101).
bodyPartExamined → const DicomTagId
Body Part Examined (0018,0015).
contentDate → const DicomTagId
Content Date (0008,0023).
height → const DicomTagId
Rows / height (0028,0010).
highBit → const DicomTagId
High Bit (0028,0102).
imageOrientationPatient → const DicomTagId
Image Orientation Patient (0020,0037) — direction cosines of the first row and first column.
imagePositionPatient → const DicomTagId
Image Position Patient (0020,0032) — x, y, z coordinates of the top-left pixel in mm.
imagerPixelSpacing → const DicomTagId
Imager Pixel Spacing (0018,1164) — alternative to Pixel Spacing, commonly found in CR/DX (computed/digital radiography) X-ray files.
instanceNumber → const DicomTagId
Instance Number (0020,0013).
institutionName → const DicomTagId
Institution Name (0008,0080).
manufacturer → const DicomTagId
Manufacturer (0008,0070).
manufacturerModelName → const DicomTagId
Manufacturer Model Name (0008,1090).
modality → const DicomTagId
Modality (0008,0060).
numberOfFrames → const DicomTagId
Number of Frames (0028,0008) — number of frames in a multi-frame image; 1 for single-frame.
patientId → const DicomTagId
Patient ID (0010,0020).
patientName → const DicomTagId
Patient's Name (0010,0010).
photometricInterpretation → const DicomTagId
Photometric Interpretation (0028,0004).
pixelRepresentation → const DicomTagId
Pixel Representation (0028,0103).
pixelSpacing → const DicomTagId
Pixel Spacing (0028,0030).
planarConfiguration → const DicomTagId
Planar Configuration (0028,0006).
rescaleIntercept → const DicomTagId
Rescale Intercept (0028,1052).
rescaleSlope → const DicomTagId
Rescale Slope (0028,1053).
samplesPerPixel → const DicomTagId
Samples per Pixel (0028,0002).
seriesDate → const DicomTagId
Series Date (0008,0021).
seriesDescription → const DicomTagId
Series Description (0008,103E).
seriesInstanceUid → const DicomTagId
Series Instance UID (0020,000E).
sliceLocation → const DicomTagId
Slice Location (0020,1041) — relative position of the slice in mm.
sliceThickness → const DicomTagId
Slice Thickness (0018,0050).
sopInstanceUid → const DicomTagId
SOP Instance UID (0008,0018).
spacingBetweenSlices → const DicomTagId
Spacing Between Slices (0018,0088) — center-to-center distance between adjacent slices in mm.
studyDate → const DicomTagId
Study Date (0008,0020).
studyDescription → const DicomTagId
Study Description (0008,1030).
studyInstanceUid → const DicomTagId
Study Instance UID (0020,000D).
toothNumber → const DicomTagId
Tooth Number (0018,6032) — ISO 3950 FDI notation.
toothRegion → const DicomTagId
Tooth Region (0018,6033).
width → const DicomTagId
Columns / width (0028,0011).
windowCenter → const DicomTagId
Window Center (0028,1050).
windowWidth → const DicomTagId
Window Width (0028,1051).