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
package org.nrg.xnat.bootstrap.configuration; | |
import org.springframework.context.annotation.Bean; | |
import org.springframework.context.annotation.Configuration; | |
import java.util.Arrays; | |
import java.util.List; | |
@Configuration | |
public class ConfigServiceConfiguration { |
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
package org.nrg.xnat.bootstrap.configuration; | |
import org.springframework.beans.factory.BeanFactory; | |
import org.springframework.context.annotation.Bean; | |
import org.springframework.context.annotation.Configuration; | |
import java.util.Arrays; | |
import java.util.List; | |
@Configuration |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xmlns:context="http://www.springframework.org/schema/context" | |
xmlns:util="http://www.springframework.org/schema/util" | |
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context.xsd http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util.xsd"> | |
<context:property-placeholder location="WEB-INF/conf/services.properties,WEB-INF/conf/services-custom.properties" ignore-resource-not-found="true" ignore-unresolvable="true"/> | |
<bean name="projectIdent1" class="org.nrg.dcm.id.FixedDicomProjectIdentifier"> | |
<constructor-arg value="project1"/> |
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
1:36:15 PM 0 Grape dependency jars added | |
@Grab(group = 'org.codehaus.groovy.modules.http-builder', module = 'http-builder', version = '0.7.2'): 0 jars | |
org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed: | |
General error during conversion: No such property: canonicalPath for class: java.net.URL | |
groovy.lang.MissingPropertyException: No such property: canonicalPath for class: java.net.URL | |
at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.unwrap(ScriptBytecodeAdapter.java:50) | |
at org.codehaus.groovy.runtime.callsite.GetEffectivePojoPropertySite.getProperty(GetEffectivePojoPropertySite.java:63) | |
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callGetProperty(AbstractCallSite.java:227) | |
at groovy.grape.GrapeIvy.(GrapeIvy.groovy:96) | |
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) |
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
/* | |
* org.nrg.xnat.restlet.extensions.GetRandomSubjectRestlet | |
* TIP is developed by the Neuroinformatics Research Group | |
* XNAT http://www.xnat.org | |
* Copyright (c) 2014, Washington University School of Medicine | |
* All Rights Reserved | |
* | |
* Released under the Simplified BSD. | |
* | |
* Last modified 7/22/14 9:24 AM |
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
insert into xdat_r_xdat_role_type_assign_xdat_user (xdat_user_xdat_user_id,xdat_role_type_role_name) values ((select xdat_user_id from xdat_user where login = '$USER$'),'Administrator'); | |
delete from xs_item_cache where contents like '%$USER$%'; |
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" | |
} |
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 splitPetMrSession script for project ${projectId}, 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 = isPet ? defaultValue.reverse().replaceFirst(\"RM\", \"TEP\").reverse() : defaultValue\nlogger.info(\"Result: ${returnValue}\")\n\"${returnValue}\"\n", | |
"language": "groovy", | |
"languageVersion": "2.3.6" | |
} |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<xs:schema targetNamespace="http://foo.edu/schemas" | |
xmlns:foo="http://foo.edu/schemas" | |
xmlns:xs="http://www.w3.org/2001/XMLSchema" | |
xmlns:xnat="http://nrg.wustl.edu/xnat" | |
elementFormDefault="qualified" | |
attributeFormDefault="unqualified"> | |
<xs:import namespace="http://nrg.wustl.edu/xnat" schemaLocation="../xnat/xnat.xsd"/> |
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
import org.dcm4che2.data.Tag | |
logger.info("Now running the splitPetMrSession script for project ${projectId}, I was passed ${defaultValue}") | |
def sopClassUID = dicom.getString(Tag.SOPClassUID) | |
def modality = dicom.getString(Tag.Modality) | |
def seriesDescription = dicom.getString(Tag.SeriesDescription) | |
def isPet = "PT".equals(modality) || ("1.3.12.2.1107.5.9.1".equals(sopClassUID) && "PET Start".equals(seriesDescription)) | |
logger.info("Found sopClassUID: ${sopClassUID}") | |
logger.info("Found modality: ${modality}") | |
logger.info("Found seriesDescription: ${seriesDescription}") |
OlderNewer