Skip to content

Instantly share code, notes, and snippets.

@karchie
Created February 19, 2012 06:30
Show Gist options
  • Save karchie/1862254 to your computer and use it in GitHub Desktop.
Save karchie/1862254 to your computer and use it in GitHub Desktop.
Custom XNAT DICOM identifier config with multiple AE titles
<?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">
<bean name="dicomObjectIdentifier" class="org.nrg.dcm.id.ClassicDicomObjectIdentifier">
<property name="userProvider" ref="receivedFileUserProvider" />
</bean>
<bean name="dicomSCPExecutor" class="java.util.concurrent.Executors"
factory-method="newCachedThreadPool" />
<bean name="dcmtProjectIdent" class="org.nrg.dcm.id.FixedDicomProjectIdentifier">
<constructor-arg value="dcmt"/>
</bean>
<bean name="baseSubjectIdent" class="org.nrg.dcm.id.ClassicDicomObjectIdentifier" factory-method="getSessionExtractors"/>
<bean name="baseSessionIdent" class="org.nrg.dcm.id.ClassicDicomObjectIdentifier" factory-method="getSubjectExtractors"/>
<bean name="baseAAIdent" class="org.nrg.dcm.id.ClassicDicomObjectIdentifier" factory-method="getAAExtractors"/>
<bean name="dcmtObjectIdent" class="org.nrg.dcm.id.CompositeDicomObjectIdentifier">
<constructor-arg ref="dcmtProjectIdent"/>
<constructor-arg ref="baseSubjectIdent"/>
<constructor-arg ref="baseSessionIdent"/>
<constructor-arg ref="baseAAIdent"/>
<property name="userProvider" ref="receivedFileUserProvider"/>
</bean>
<util:map id="cstores">
<entry key="dcmt" value-ref="dcmtObjectIdent"/>
<entry key="XNAT" value-ref="dicomObjectIdentifier"/>
</util:map>
<bean name="dicomSCP" class="org.nrg.dcm.DicomSCP" factory-method="create">
<constructor-arg ref="dicomSCPExecutor" />
<constructor-arg value="8104" />
<constructor-arg ref="receivedFileUserProvider" />
<constructor-arg ref="cstores"/>
</bean>
</beans>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment