Skip to content

Files

Latest commit

Apr 17, 2021
17b7fcb · Apr 17, 2021

History

History

vuiis-dicom-import

VUIIS DICOM Import Plugin

This plugin provides custom behavior for importing DICOM into the XNAT at VUIIS. If the DICOM has a value in the PatientComments field, the default XNAT behavior will be run. Otherwise, it will parse the PatientID field to extract the Project and Subject values where the syntax should be PROJECT_Subject. Session will use the same value as Subject.

Building

To build the plugin:

  1. Clone this repository and cd to the newly cloned folder.
  2. Build the plugin: ./gradlew jar. This will build the plugin in the file build/libs/vuiis-dicom-import-plugin-X.Y.Z.jar where X.Y.Z is the version.

You can update the gradle wrapper with: ./gradlew wrapper --gradle-version X.Y

If there are issues building, try deleting gradle cached files in ~/.gradle. XNAT requires Java 8 JDK instead of the system default of 10+. To set in mac os: export JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_192.jdk/Contents/Home export PATH=$JAVA_HOME/bin:$PATH

Deploying

  1. Copy the plugin jar to the plugins folder: scp build/libs/vuiis-dicom-import-plugin-X.Y.Z.jar xnat:~/xnat/home/plugins
  2. Restart tomcat