Had a few cases where we needed to go through every scan in an XNAT project and send them to an external dicom node (XNAT pacs destination).
This PR adds a hopefully generic version which is configured for separate projects by passing a yaml formatted config file.
Ideally, we expand the functionality of the function and add addition config options to fine-tune the export - for example inclusion/exclusion criteria.
Had a few cases where we needed to go through every scan in an XNAT project and send them to an external dicom node (XNAT pacs destination).
This PR adds a hopefully generic version which is configured for separate projects by passing a yaml formatted config file.
Ideally, we expand the functionality of the function and add addition config options to fine-tune the export - for example inclusion/exclusion criteria.
e.g.
config.yml
Excecuted by running:
python export-to-pacs.py config.yml
This will try all the values listed under
value
against the scan object'sfield
property and if any of the results are true the scan is sent.Current known limitations (can be fixed with updates by me or anyone):