/python_script_library

Place to collect free-standing and/or Orthanc Python Plug-ins, mostly for development, with a focus on Modality Worklist Management for Orthanc or PACS in general.

Primary LanguagePythonGNU General Public License v3.0GPL-3.0

USAGE:

json_to_mwl.py

  1. INSTALL the PIP module for pydicom if not already on your system: https://github.com/pydicom/pydicom, sudo python3 -m pip install pydicom

  2. SET 'WORKLIST_DIR' in the script to a PATH on your system where you want to store the generated MWL file.

  3. The script already has a sample JSON description of a MWL. Just type:

    cd /path/to/directoryfor/son_to_mwl.py
    python3 json_to_mwl.py
    
  1. A sample mwl will be created the the WORKLIST_DIR.