Compare Studies in Archive with CSV Entries - dcm4che/dcm4chee-arc-light GitHub Wiki

Compare studies present in an archive with entries of a CSV file using dcm4che utilities.

Steps

  1. If one has a CSV file with study entries and its attributes alongwith the headers, then skip steps 2 and 3.

  2. 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
    
  3. 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.

  4. Run the dcmdir tool to read records from csv file to have entries referenced in DICOMDIR

      dcmdir -c tmp/DICOMDIR --csv tmp/studies1.csv --record-config ~/dcm4che/etc/dcmdir/RecordFactory.xml tmp/DICOMDIR
    
  5. You may chosse to view the contents of DICOMDIR as shown below :

      dcmdir -l demo/DICOMDIR
    
  6. Start dcmqrscp tool which acts as a simple image archive.

      dcmqrscp -b DCMQRSCP:11113 --record-config ~/dcm4che/etc/dcmdir/RecordFactory.xml  --dicomdir tmp/DICOMDIR
    
  7. 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
    
⚠️ **GitHub.com Fallback** ⚠️