Label injection (custom private tags)
Write ground-truth labels into custom private tags for model training.
Problem
You need to inject custom metadata labels across all instances in a DICOM study — e.g. add a Clinical Trial Protocol ID to every file, or inject private tags with custom vendor-specific data. Manually editing every instance is impractical for studies with hundreds of slices. Batch label injection applies the same tag and value to every instance in one operation.
Steps
Standard Tag Injection
-
Open the DICOM file (⌘O) and switch to Edit mode (⌘3).
-
Open the Batch Label Injection modal — ⌘K → type “inject” → select the command.
-
Add a row — enter the tag ID
(0012,0020)(Clinical Trial Protocol ID) and valuePROTO-7. -
Verify the Inject button is enabled and click it.
-
Verify the injected tag — filter for
(0012,0020). The tag is present with valuePROTO-7and gold highlighting.
Private Tag Injection
-
Set a Private Creator ID — enter
ACMEin the creator field. -
Add a private tag — enter
(0019,1001)and valuePRIVATE-VAL. -
Click Inject.
-
Verify both elements — filter for
(0019,1001)→ value isPRIVATE-VAL. Filter for(0019,0010)→ the Private Creator element is auto-created with valueACME(per DICOM PS3.5 §7.8.1).
Validation
- Attempt an invalid value — add a row with tag
(0008,0020)(Study Date, DA VR) and valueNOTADATE. A validation error (“8 digits”) appears and the Inject button is disabled.
Result
Standard tags are injected across all instances in gold, and private tags automatically get their Private Creator reservation. VR validation catches bad values before injection (an invalid date disables the button with an “8 digits” error), and the dirty counter reflects the count.