zdavatz / gdt2dicom

Convert a gdt file and an image folder to a dicom file
GNU General Public License v3.0
0 stars 1 forks source link

Create Worklist file from GDT file with `gdt2dcm` #16

Closed zdavatz closed 1 year ago

zdavatz commented 1 year ago
  1. Create the binary gdt2dcm
  2. This command takes the GDT file as input and converts it to a DICOM Worklists file with the ending .wl.
  3. See: https://forum.dcmtk.org/viewtopic.php?t=1475
  4. Sample worklist dump files: https://github.com/InsightSoftwareConsortium/DCMTK/blob/master/dcmwlm/data/wlistdb/OFFIS/
  5. A worklist file does not contain images.
  6. The worklist file then has to be served using the command wlmscpfs (not part of gdt2dcm).
  7. Currently testing with: wlmscpfs.exe -v -dfp C:\Users\medi-lan\gdt2dicom\dicom\medilan_MWL\ 107
  8. Still getting this error:
    I: Association Received (SDS-SRV1:CorScribe -> medilan_MWL)
    I: Refusing Association (bad application entity service)

You can test the worklist file using these steps:

  1. Create a directory, i.e. dicom
  2. Create a subdirectory, i.e. medilan_MWL
  3. Create an empty file in the subdirectory medilan_MWL called lockfile
  4. Convert a dump file to worklist file with: dump2dcm.exe .\wklist1.dump.txt .\wklist1.wl in the medilan_MWL dir.
  5. Start the worklist server with: wlmscpfs.exe -v -dfp C:\Users\zdava\dicom\ 107
  6. Query the worklist server with Worklist Client (WL SCU) by @bettar
  7. query_wlmscpfs
  8. You can also use the commandline tool to test: findscu -aet zeno -aec medilan_MWL -k "(0010,0010)=HEWETT*" localhost 107 do not confuse calling and called.
zdavatz commented 1 year ago

Vielleicht ist das interessant: https://github.com/crispinus2/orthanc-gdt/blob/master/orthanc-gdt/restworklist.py