[Dcmlib] Reading DICOMDIR and FILEDIR

Jean-Pierre Roux jpr at creatis.insa-lyon.fr
Mon Aug 31 16:38:45 CEST 2009


Tom Marynowski wrote:
> Hello.
> As asked i send you samples of DICOMDIR wiht DIRFILE.
> any informations  about the procedure for reading correctly this kind 
> of DICOMDIR will be apprecied.
> Thank you.
> Tom

Thank you for this samples, Tom.

A 'decent' DICOMDIR  should contain entries for PATIENT, STUDY, SERIE, 
IMAGES, and sometimes, some more strange stuff, as : Visit, Result, 
StudyComponent, Overlay, RtDose, SrDocument, and so on -not dealt with 
by gdcm 1.x.y-
But it *has* to start (as far as I underststood), by a PATIENT Entry, 
and is not supposed to refer to 'badformed dicomdir-like' files (e.g. 
DIRFILE)

Yours doesn't look too much decent :-(
And I'm affraid there is no hack to make it readable as a DIDOMDIR.

Depending on what you want to do with it, you could try to read it as a 
Dicom File
(run :  bin/PrintFile filein=yourDIRFILE  , it works)
Then get the 'Sequence' 0004|1220 (Directory Record Sequence),
and access each 'SQItem", to get information about the STUDies it 
contains (e.g. Study Description, Performed Procedure Step Description, 
Referenced File ID)

If you *need* a DICOMDIR, because one of your applications demands a 
'decent' DICOMDIR, you can build it yourself with
bin/MakeDicomDir dirname=rootDirectoryName  (the one with *images*, not 
DIRFILEs ...)

Hope this helps.

--> Mathieu : did you write anything about DIRFILEs, in gdcm2?

Jean-Pierre









More information about the Dcmlib mailing list