jmx-console->dcm4chee.archive->service=StudyPermission
UpdateOnSeriesStored=
True
UpdateOnNewStudy=True
jmx-console->dcm4chee.archive->service=QueryRetrieveScp
e Store_SCP
CallingAETitles: ANY?
UnrestrictedQueryPermissionsToAETitles=DCM4CHEE
UnrestrictedExportPermissionsToAETitles=DCM4CHEE
UnrestrictedReadPermissionsToAETitles=DCM4CHEE
On the AE Titles setup on the dcm4chee webconsole I have add the user and password corresponding and add that user a role.
After that I add the following code on the series-permission.xml
\dcm4chee\server\default\conf\dcm4chee-permission\series-permission.xml
--------------------------------------------------------------------------------------------------------------------
<xsl:variable
name="retrievAET" select="attr[@tag='00080054']" />
<xsl:when test="$retrievAET='OSIRIX1'">
<grant role="WebUser" action="Q,R,E,A,U,D" suid="{attr[@tag='0020000D']}"/>
</xsl:when>
------------------------------------------------------------------------------------
But when I send some study from OSIRIX1 to DCM4CHEE nothing happen and no permission is added to the study...
So what I´m missing here? How can I add automatically permissions to all studies depending on the source ae title, or Institution name... I see too many examples but they dont work!! .. on my installation.
This is the log when the image is sent to DCM4CHEE:
[org.dcm4chex.archive.hl7.StudyPermissionService] Failed to update permissions on Series stored
java.io.FileNotFoundException: I:\dcm4chee\server\default\conf\dcm4chee-permission\series-permission.xsl
at org.dcm4chex.archive.util.FileUtils.toExistingFile(FileUtils.java:181)
at org.dcm4chex.archive.hl7.StudyPermissionService.xslt(StudyPermissionService.java:549)
at org.dcm4chex.archive.hl7.StudyPermissionService.onSeriesStored(StudyPermissionService.java:507)
at org.dcm4chex.archive.hl7.StudyPermissionService.access$100(StudyPermissionService.java:88)
at org.dcm4chex.archive.hl7.StudyPermissionService$2.handleNotification(StudyPermissionService.java:403)
at sun.reflect.GeneratedMethodAccessor5.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.jboss.mx.notification.NotificationListenerProxy.invoke(NotificationListenerProxy.java:153)
at $Proxy11.handleNotification(Unknown Source)
at org.jboss.mx.util.JBossNotificationBroadcasterSupport.handleNotification(JBossNotificationBroadcasterSupport.java:127)
at org.jboss.mx.util.JBossNotificationBroadcasterSupport.sendNotification(JBossNotificationBroadcasterSupport.java:110)
at org.dcm4chex.archive.dcm.AbstractScpService.sendJMXNotification(AbstractScpService.java:856)
at org.dcm4chex.archive.dcm.storescp.StoreScpService.sendSeriesStoredNotification(StoreScpService.java:932)
at org.dcm4chex.archive.dcm.storescp.StoreScpService.checkPendingSeriesStored(StoreScpService.java:970)
at org.dcm4chex.archive.dcm.storescp.StoreScpService.access$300(StoreScpService.java:109)
at org.dcm4chex.archive.dcm.storescp.StoreScpService$3$1.run(StoreScpService.java:150)
at java.lang.Thread.run(Thread.java:662)
AND
[org.dcm4chex.archive.dcm.storescp.StoreScpService] No permission to append existing Study
org.dcm4che.net.DcmServiceException: No permission to append existing Study
at org.dcm4chex.archive.dcm.storescp.StoreScp.checkAppendPermission(StoreScp.java:910)
at org.dcm4chex.archive.dcm.storescp.StoreScp.doActualCStore(StoreScp.java:510)
at org.dcm4chex.archive.dcm.storescp.StoreScp.doCStore(StoreScp.java:471)
at org.dcm4che.net.DcmServiceBase.c_store(DcmServiceBase.java:116)
at org.dcm4cheri.net.ActiveAssociationImpl.run(ActiveAssociationImpl.java:230)
at org.dcm4cheri.util.LF_ThreadPool.join(LF_ThreadPool.java:174)
at org.dcm4cheri.net.ActiveAssociationImpl.run(ActiveAssociationImpl.java:164)
at org.dcm4cheri.server.DcmHandlerImpl.handle(DcmHandlerImpl.java:249)
at org.dcm4cheri.server.ServerImpl.run(ServerImpl.java:288)
at org.dcm4cheri.util.LF_ThreadPool.join(LF_ThreadPool.java:174)
at org.dcm4cheri.server.ServerImpl$1.run(ServerImpl.java:242)
at java.lang.Thread.run(Thread.java:662)
Any contribution to understand what is wrong I would appreciate.
Best Regards,
Tiago Vieira
<xsl:stylesheet xmlns:xsl=
"http://www.w3.org/1999/XSL/Transform"
version=
"1.0"
>
<xsl:output method=
"xml"
/>
<xsl:param name=
"calling"
select=
"'SAMPLE_MOD'"
/>
<xsl:template match=
"dataset"
>
<xsl:variable name=
"reqservice"
select=
"string(attr[@tag='00321033'])"
/>
<permissions>
<xsl:choose>
<xsl:when test=
"$calling='HOSPITAL1'"
>
<grant role=
"HOSP1"
action=
"Q,E,U,D,R,A"
suid=
"{attr[@tag='0020000D']}"
/>
</xsl:when>
<xsl:when test=
"$calling='HOSPITAL2'"
>
<grant role=
"HOSP2"
action=
"Q,E,U,D,R,A"
suid=
"{attr[@tag='0020000D']}"
/>
</xsl:when>
<xsl:otherwise>
<grant role=
"UNKNOWN"
action=
"Q,E,U,D,R,A"
suid=
"{attr[@tag='0020000D']}"
/>
</xsl:otherwise>
</xsl:choose>
</permissions>
</xsl:template>
</xsl:stylesheet>
do you make it work?
Column | Description |
---|---|
pk | The primary key |
study_iuid | DICOM Study Instance UID (0020,000D). |
action | Allowed Actions |
roles | Roles granted Access |