Last active
August 29, 2015 14:07
-
-
Save rherrick/b1d2a6b9a23345294293 to your computer and use it in GitHub Desktop.
Site-wide split PET-MR session configuration. This should only be used to test fail-over for sessions going to projects without project-specific scripts, since it adds a big "PSYCH-" prefix to the session name, which is silly.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"event": "dicomImport", | |
"content": "import org.dcm4che2.data.Tag\n\nlogger.info(\"Now running the site-wide splitPetMrSession script, I was passed ${defaultValue}\")\ndef sopClassUID = dicom.getString(Tag.SOPClassUID)\ndef modality = dicom.getString(Tag.Modality)\ndef seriesDescription = dicom.getString(Tag.SeriesDescription)\ndef isPet = \"PT\".equals(modality) || (\"1.3.12.2.1107.5.9.1\".equals(sopClassUID) && \"PET Start\".equals(seriesDescription))\nlogger.info(\"Found sopClassUID: ${sopClassUID}\")\nlogger.info(\"Found modality: ${modality}\")\nlogger.info(\"Found seriesDescription: ${seriesDescription}\")\nlogger.info(\"Found isPet: ${isPet}\")\ndef returnValue = \"PSYCH-${defaultValue}\"\nlogger.info(\"Result: ${returnValue} (cause I'm not actually doing much)\")\n\"${returnValue}\"\n", | |
"language": "groovy", | |
"languageVersion": "2.3.6" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This can be PUT to the server with a URL like this:
http://server/data/automation/scripts/splitPetMrSessionSite