[Dcmlib] Reading DICOMDIR and FILEDIR

Mathieu Malaterre mathieu.malaterre at gmail.com
Mon Aug 31 17:15:06 CEST 2009


On Mon, Aug 31, 2009 at 4:38 PM, Jean-Pierre
Roux<jpr at creatis.insa-lyon.fr> wrote:
> 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?

gdcmgendir:

http://sourceforge.net/apps/mediawiki/gdcm/index.php?title=Gdcmgendir

You could recreate the DICOMDIR using this tool, but there is nothing
in gdcm 2.x to read your recusive DICOMDIR/DIRFILE files

HTH
-- 
Mathieu



More information about the Dcmlib mailing list