(0002,0002)
Media Storage SOP Class UID
Keyword: MediaStorageSOPClassUID
Uniquely identifies the SOP Class associated with the Data Set. Mirrors the (0008,0016) SOP Class UID in the dataset.
Tag Attributes
- Tag ID
- (0002,0002)
- Compact
- 00020002
- Keyword
- MediaStorageSOPClassUID
- VR
- UI — Unique Identifier (UID)
- VM
- 1
- Required
- Type 1 — required, with a value
- PS3.15
- Not listed in PS3.15 Table E.1-1
- Retired
- No
Defined in
What Media Storage SOP Class UID contains
It should be identical to SOP Class UID (0008,0016) in the data set. It lets a reader know what kind of object the file holds before parsing the data set.
Group 0002 is the File Meta Information defined in PS3.10. It sits at the start of every DICOM file, is always encoded in Explicit VR Little Endian, and is not part of the data set that is sent over the network.
Value format: UI (Unique Identifier (UID)), VM 1
(0002,0002) MediaStorageSOPClassUID has Value Representation UI (Unique Identifier (UID)) and Value Multiplicity 1, which means exactly one value.
UI — Unique Identifier (UID)
A globally unique identifier made of numeric components separated by periods, for example 1.2.840.10008.1.2.1. An odd-length value is padded with one trailing NULL byte.
- Length
- 64 bytes maximum
- Characters
- The digits 0–9 and the period.
Example value
1.2.840.10008.5.1.4.1.1.2
Format mistakes to avoid
- A component may not start with a zero unless it is the single digit 0, so 1.2.03 is invalid.
- Letters, spaces and values longer than 64 bytes are invalid.
Common values
| Value | Meaning |
|---|---|
| 1.2.840.10008.5.1.4.1.1.2 | CT Image Storage |
| 1.2.840.10008.5.1.4.1.1.4 | MR Image Storage |
| 1.2.840.10008.5.1.4.1.1.1 | Computed Radiography Image Storage |
| 1.2.840.10008.5.1.4.1.1.7 | Secondary Capture Image Storage |
| 1.2.840.10008.5.1.4.1.1.1.2 | Digital Mammography X-Ray Image Storage – For Presentation |
Where MediaStorageSOPClassUID appears
| Defined in | Type | Meaning |
|---|---|---|
| File Meta InformationPS3.10 Table 7.1-1 | 1 | Required, and it must have a value. |
A module lists the attributes an object must or may carry. Many IODs (CT Image, MR Image, Secondary Capture and others) include the same module, and an IOD-specific module can make an attribute stricter than the general one.
De-identification (PS3.15)
Media Storage SOP Class UID is not listed in PS3.15 Table E.1-1, so the Basic Application Level Confidentiality Profile gives no specific action for it.
To see how de-identification changes your own files, try the free DICOM Anonymizer, which runs in the browser and uploads nothing.
In archives and migrations
Group 0002 belongs to the file, not to the data set. A C-STORE sends only the data set, and the receiving system writes its own File Meta header when it saves the object. After a transfer, the File Meta values describe the system that wrote the copy you are looking at, which is not necessarily the system that created the image.
Common errors and how to fix them
Troubleshooting: A mismatch with SOP Class UID (0008,0016) means the file was edited or rewritten inconsistently. The File Meta header is not sent in a C-STORE, so a receiving system works from the data set and the negotiated presentation context; correct the file before importing it or writing it to media.
Check a file in seconds with the free DICOM Validator: it reads the header in your browser, lists the tags with their values, and flags missing or malformed key attributes.
Media Storage SOP Class UID: frequently asked questions
What is DICOM tag (0002,0002) Media Storage SOP Class UID?
Uniquely identifies the SOP Class associated with the Data Set. Mirrors the (0008,0016) SOP Class UID in the dataset.
What VR and VM does Media Storage SOP Class UID (0002,0002) have?
(0002,0002) MediaStorageSOPClassUID has Value Representation UI (Unique Identifier (UID)) and Value Multiplicity 1, which means exactly one value. A globally unique identifier made of numeric components separated by periods, for example 1.2.840.10008.1.2.1. An odd-length value is padded with one trailing NULL byte. Maximum length: 64 bytes maximum.
Is Media Storage SOP Class UID (0002,0002) required?
In the File Meta Information (PS3.10 Table 7.1-1) it is Type 1: required, and it must have a value.
How is Media Storage SOP Class UID handled when de-identifying DICOM files?
Media Storage SOP Class UID is not listed in PS3.15 Table E.1-1, so the Basic Application Level Confidentiality Profile gives no specific action for it.
How do I troubleshoot Media Storage SOP Class UID (0002,0002)?
A mismatch with SOP Class UID (0008,0016) means the file was edited or rewritten inconsistently. The File Meta header is not sent in a C-STORE, so a receiving system works from the data set and the negotiated presentation context; correct the file before importing it or writing it to media.
Check MediaStorageSOPClassUID in your files
The free DICOM Validator lists every header tag and flags problems. Files stay in your browser.
Open DICOM Validator →Remove patient data before sharing
The free DICOM Anonymizer applies a de-identification profile in your browser, with no upload.
Open DICOM Anonymizer →Sources
Checked against the DICOM standard, release 2026d. Module Types, query keys and de-identification actions come from these tables: