-
Notifications
You must be signed in to change notification settings - Fork 244
Compare Studies in Archive with CSV Entries
Compare studies present in an archive with entries of a CSV file using dcm4che utilities.
-
If one has a CSV file with study entries and its attributes alongwith the headers, then skip steps 2 and 3.
-
To get studies from an archive in a csv file, use the findscu tool as shown below
findscu -c DCM4CHEE@localhost:11112 --out-dir /tmp --out-file studies.csv --out-cat -x ~/dcm4che/etc/findscu/study.csv.xsl -- ~/dcm4che/etc/findscu/study.xml
-
To be able to store the references of entries present in this csv file to a DICOMDIR, one needs to first add the headers to the generated csv. Paste the headers from the file
~/dcm4che/etc/findscu/study.csv
to the generated csv file. -
Run the
dcmdir
tool to read records from csv file to have entries referenced in DICOMDIRdcmdir -c tmp/DICOMDIR --csv tmp/studies1.csv --record-config ~/dcm4che/etc/dcmdir/RecordFactory.xml tmp/DICOMDIR
-
You may chosse to view the contents of DICOMDIR as shown below :
dcmdir -l demo/DICOMDIR
-
Start dcmqrscp tool which acts as a simple image archive.
dcmqrscp -b DCMQRSCP:11113 --record-config ~/dcm4che/etc/dcmdir/RecordFactory.xml --dicomdir tmp/DICOMDIR
-
Use findscu tool to query the DCMQRSCP to verify/compare the results from step 2
findscu -c DCMQRSCP@localhost:11113 /home/vrinda/work/dcm4che/dcm4che/dcm4che-assembly/src/etc/findscu/study.xml
DCM4CHEE 5 Documentation