Creating DICOM File with new SOP

All other questions regarding DCMTK

Moderator: Moderator Team

Post Reply
Message
Author
amvb
Posts: 8
Joined: Fri, 2006-09-29, 11:41

Creating DICOM File with new SOP

#1 Post by amvb »

Hi people,

I am testing a new IOD and I want to create a new DataSet its Storage SOP. Is that possible with DCMTK?

What i really want is to insert a new SOP UID for Storage in the Meta File Header and in the dataset created by editing a dump file. I have used dcmdump.exe and dump2dcm.exe tools without good results.

Example:

I have tried dump2dcm the following text file

---------------------

# Dicom-File-Format

# Dicom-Meta-Information-Header
# Used TransferSyntax: LittleEndianExplicit
(0002,0000) UL 184 # 4, 1 MetaElementGroupLength
(0002,0001) OB 00\01 # 2, 1 FileMetaInformationVersion
(0002,0002) UI =[1.2.840.10008.5.1.4.1.1.66.5] # 28, 1 MediaStorageSOPClassUID
(0002,0003) UI [1.3.12.2.1107.5.1.4.38364.4.0.2204104785261335] # 46, 1 MediaStorageSOPInstanceUID
(0002,0010) UI =LittleEndianExplicit # 20, 1 TransferSyntaxUID
(0002,0012) UI [1.3.12.2.1107.5.1.4] # 20, 1 ImplementationClassUID
(0002,0013) SH [SIEMENS_S5VA40A] # 16, 1 ImplementationVersionName

---------------------------

And the result after applying dcmdump to the outfile of the previous command is

---------------------------
# Dicom-Meta-Information-Header
# Used TransferSyntax: LittleEndianExplicit
(0002,0000) UL 164 # 4, 1 MetaElementGroupLength
(0002,0001) OB 00\01 # 2, 1 FileMetaInformationVersion
(0002,0002) UI (no value available) # 0, 0 MediaStorageSOPClassUID
(0002,0003) UI [1.3.12.2.1107.5.1.4.38364.4.0.2204104785261335] # 46, 1 MediaStorageSOPInstanceUID
(0002,0010) UI =LittleEndianExplicit # 20, 1 TransferSyntaxUID
(0002,0012) UI [1.2.276.0.7230010.3.0.3.5.4] # 28, 1 ImplementationClassUID
(0002,0013) SH [OFFIS_DCMTK_354] # 16, 1 ImplementationVersionName


---------------------------
As you can see in the Tag (0002,0002) the message (no value available) appears. Why? What does it mean? What should I do to construct Meta File Headers and Data Set with private SOP UIDs?

Thanks in advance and have a nice weekend!

Best,

Adrian ;-)

Marco Eichelberg
OFFIS DICOM Team
OFFIS DICOM Team
Posts: 1461
Joined: Tue, 2004-11-02, 17:22
Location: Oldenburg, Germany
Contact:

#2 Post by Marco Eichelberg »

dump2dcm ignores the meta-header and re-creates it from the content of the main dataset. If you want to change the SOP class, just change the SOP Class UID in the main dataset, not the Media Storage SOP Class UID in the meta-header.

Post Reply

Who is online

Users browsing this forum: Baidu [Spider], Google [Bot] and 1 guest