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.
To build the plugin:
- Clone this repository and cd to the newly cloned folder.
- 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
- Copy the plugin jar to the plugins folder:
scp build/libs/vuiis-dicom-import-plugin-X.Y.Z.jar xnat:~/xnat/home/plugins
- Restart tomcat