I've searched through the forums and haven't been able to isolate the source of my issue, I'm hoping someone here can help me out.
Goal: Insertion of custom private tags into DICOM images
Issue: If I add the creator identifier to the private dictionary definition then the DICOM tag name will display on a dump, but the tag value will not. If I do not include the identifier, then the value displays but the tag's name does not...
Environment: (Windows) MobaXterm Personal 20.2
DCMTK Version: 3.6.5
Example 'script':
BASEDIR='U:\Projects\DCM\DeIdent\'
DCMTK_EXE_LOC=$BASEDIR'dcmtk-3.6.5-win64-dynamic/bin/'
PATH=$PATH":$DCMTK_EXE_LOC"
cd $BASEDIR
# Confirming expected behavior, no private dictionary:
dcmodify --debug -i "(1337,0066)=HGRIC" -i "(1337,6600)=3.6.5" -i "(1337,6630)=A8675309" ./deidentified/study/DIRW0019
dcmdump --debug deidentified/study/DIRW0019 | grep 1337
# (1337,0066) LO [HGRIC] # 6, 1 PrivateCreator
# (1337,6600) UN 03\00 # 2, 1 Unknown Tag & Data
# (1337,6630) UN 03\00 # 2, 1 Unknown Tag & Data
# So we add in the following lines to the private.dic file
# # HGRIC addition:
# (1337,6600) ST DCMTKVersion 1 PrivateTag
# (1337,"HGRIC",6630) ST AnonJarSHA1 1 PrivateTag
# And enable it...
export DCMDICTPATH="$BASEDIR"'private.dic'
# Note, henceforth get "DcmDataDictionary: Loading file: (ourpath) " on dcmdump -d
dcmdump --debug +uc deidentified/study/DIRW0019 | grep 1337
# (1337,0066) LO [HGRIC] # 6, 1 PrivateCreator
# (1337,6600) ST [] # 2, 1 Unknown Tag & Data
# (1337,6630) ST [] # 2, 1 AnonJarSHA1
# Redo the modify command (on a new file), having DCMDICTPATH set...
dcmodify --debug -i "(1337,0066)=HGRIC" -i "(1337,6600)=3.6.5" -i "(1337,6630)=A8675309" ./deidentified/study/DIRW0020
dcmdump --debug +uc deidentified/study/DIRW0020 | grep 1337
# (1337,0066) LO [HGRIC] # 6, 1 PrivateCreator
# (1337,6600) ST [3.5.1] # 6, 1 Unknown Tag & Data
# (1337,6630) ST [] # 2, 1 AnonJarSHA1
# Values now correctly display for private.dic entries missing identifier value
# but are still missing their tag name...
#
# The entry that had the identifier value in the dictionary displays the tag
# name but the value isn't saved....